代码提交

This commit is contained in:
glj 2023-04-21 19:36:51 +08:00
parent fd2f43e882
commit 1a82c09598
22 changed files with 659 additions and 688 deletions

View File

@ -1,7 +1,7 @@
<template> <template>
<el-dialog title="Collection robot" v-model="state.isShowDialog" width="700px"> <el-dialog title="Collection robot" v-model="state.isShowDialog" width="700px">
<el-row> <el-row>
<el-col :span="5" style="text-align:center ;"> <el-col :span="3" style="text-align:center ;">
<el-image style="height:40px ; width:100px!" src="/baidu.jpg"></el-image> <el-image style="height:40px ; width:100px!" src="/baidu.jpg"></el-image>
</el-col> </el-col>
<el-col :span="9"> <el-col :span="9">
@ -10,7 +10,7 @@
</el-input> </el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="5"> <el-col :span="3">
<el-form-item label="page" style="text-align:center ; margin-left: 10px;"> <el-form-item label="page" style="text-align:center ; margin-left: 10px;">
<el-input v-model="state.baidu.page" type="number" style="width: 70px ;"></el-input> <el-input v-model="state.baidu.page" type="number" style="width: 70px ;"></el-input>
</el-form-item> </el-form-item>
@ -30,7 +30,7 @@
</el-col> </el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="5" style="text-align:center ;"> <el-col :span="3" style="text-align:center ;">
<el-image style="height:40px ; width:100px!" src="/bing.webp"></el-image> <el-image style="height:40px ; width:100px!" src="/bing.webp"></el-image>
</el-col> </el-col>
<el-col :span="9" > <el-col :span="9" >
@ -38,7 +38,7 @@
<el-input v-model="state.bing.keywords"></el-input> <el-input v-model="state.bing.keywords"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="5" > <el-col :span="3" >
<el-form-item label="page" style="text-align:center; margin-left: 10px;"> <el-form-item label="page" style="text-align:center; margin-left: 10px;">
<el-input v-model="state.bing.page" type="number" style="width: 70px ;"></el-input> <el-input v-model="state.bing.page" type="number" style="width: 70px ;"></el-input>
</el-form-item> </el-form-item>

View File

@ -23,9 +23,9 @@
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-pagination @size-change="onHandleDisasterSizeChange" @current-change="onHandleDisasterCurrentChange" <el-pagination @size-change="onHandleDisasterSizeChange" @current-change="onHandleDisasterCurrentChange"
class="mt15" :pager-count="5" :page-sizes="[10, 20, 30]" class="mt15" :pager-count="2" :page-sizes="[10, 20, 30]"
v-model:current-page="state.disasterData.param.pageNum" background v-model:current-page="state.disasterData.param.pageNum" background
v-model:page-size="state.disasterData.param.pageSize" layout="total, sizes, prev, pager, next, jumper" v-model:page-size="state.disasterData.param.pageSize" layout="total, sizes, prev, pager, next"
:total="state.disasterData.total"> :total="state.disasterData.total">
</el-pagination> </el-pagination>
</div> </div>
@ -68,7 +68,8 @@
@selection-change=" handleSelectionChange " style="width: 100%"> @selection-change=" handleSelectionChange " style="width: 100%">
<el-table-column type="selection" width="55" /> <el-table-column type="selection" width="55" />
<el-table-column type="index" label="ID" width="50" /> <el-table-column type="index" label="ID" width="50" />
<el-table-column v-if = "state.searchName=='1'" prop="title" label="title" show-overflow-tooltip></el-table-column> <el-table-column v-if=" state.searchName == '1' " prop="title" label="title"
show-overflow-tooltip></el-table-column>
<el-table-column prop="content" label="content" show-overflow-tooltip></el-table-column> <el-table-column prop="content" label="content" show-overflow-tooltip></el-table-column>
<el-table-column prop="type" label="type" show-overflow-tooltip> <el-table-column prop="type" label="type" show-overflow-tooltip>
<template #default=" scope "> <template #default=" scope ">
@ -94,15 +95,18 @@
<el-table-column prop="uploadTime" label="Upload time" show-overflow-tooltip></el-table-column> --> <el-table-column prop="uploadTime" label="Upload time" show-overflow-tooltip></el-table-column> -->
<el-table-column prop="Operate" label="Operate" show-overflow-tooltip> <el-table-column prop="Operate" label="Operate" show-overflow-tooltip>
<template #default=" scope "> <template #default=" scope ">
<el-button size="small" text type="info" v-if="scope.row.status == 0" @click="openDialog(scope.row,true)">review</el-button> <el-button size="small" text type="info" v-if=" scope.row.status == 0 "
<el-button size="small" text type="success" v-if="scope.row.status == 1" @click="openDialog(scope.row,false)">review</el-button> @click=" openDialog(scope.row, true) ">review</el-button>
<el-button size="small" text type="danger" v-if="scope.row.status == 2" @click="openDialog(scope.row,false)">review</el-button> <el-button size="small" text type="success" v-if=" scope.row.status == 1 "
@click=" openDialog(scope.row, false) ">review</el-button>
<el-button size="small" text type="danger" v-if=" scope.row.status == 2 "
@click=" openDialog(scope.row, false) ">review</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-pagination @size-change="onHandleSizeChange" @current-change="onHandleCurrentChange" class="mt15" <el-pagination style="margin-left: 20px;" @size-change=" onHandleSizeChange " @current-change=" onHandleCurrentChange " class="mt15"
:pager-count="5" :page-sizes="[10, 20, 30]" v-model:current-page="state.tableData.param.pageNum" background :pager-count="3" :page-sizes=" [10, 20, 30] " v-model:current-page=" state.tableData.param.pageNum " background
v-model:page-size="state.tableData.param.pageSize" layout="total, sizes, prev, pager, next, jumper" v-model:page-size=" state.tableData.param.pageSize " layout="total, sizes, prev, pager, next"
:total=" state.tableData.total" > :total=" state.tableData.total" >
</el-pagination> </el-pagination>
</div> </div>
@ -370,10 +374,13 @@ onMounted(() => {
.system-role-container { .system-role-container {
.system-role-padding { .system-role-padding {
padding: 15px; padding: 15px;
.el-table { .el-table {
flex: 1; flex: 1;
} }
} }
} }
.mt15 {
float: right;
margin-bottom: 15px;
}
</style> </style>

View File

@ -12,9 +12,9 @@
<el-table-column prop="disasterTime" label="disaster time" show-overflow-tooltip></el-table-column> <el-table-column prop="disasterTime" label="disaster time" show-overflow-tooltip></el-table-column>
</el-table> </el-table>
<el-pagination @size-change="onHandleDisasterSizeChange" @current-change="onHandleDisasterCurrentChange" <el-pagination @size-change="onHandleDisasterSizeChange" @current-change="onHandleDisasterCurrentChange"
class="mt15" :pager-count="5" :page-sizes="[10, 20, 30]" class="mt15" :pager-count="3" :page-sizes="[10, 20, 30]"
v-model:current-page="state.disasterData.param.pageNum" background v-model:current-page="state.disasterData.param.pageNum" background
v-model:page-size="state.disasterData.param.pageSize" layout="total, sizes, prev, pager, next, jumper" v-model:page-size="state.disasterData.param.pageSize" layout="total, sizes, prev, pager, next"
:total="state.disasterData.total"> :total="state.disasterData.total">
</el-pagination> </el-pagination>
</div> </div>
@ -68,8 +68,8 @@
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-pagination @size-change="onHandleSizeChange" @current-change="onHandleCurrentChange" class="mt15" <el-pagination @size-change="onHandleSizeChange" @current-change="onHandleCurrentChange" class="mt15"
:pager-count="5" :page-sizes="[10, 20, 30]" v-model:current-page="state.tableData.param.pageNum" background :pager-count="3" :page-sizes="[10, 20, 30]" v-model:current-page="state.tableData.param.pageNum" background
v-model:page-size="state.tableData.param.pageSize" layout="total, sizes, prev, pager, next, jumper" v-model:page-size="state.tableData.param.pageSize" layout="total, sizes, prev, pager, next"
:total="state.tableData.total"> :total="state.tableData.total">
</el-pagination> </el-pagination>
</div> </div>
@ -277,4 +277,8 @@ onMounted(() => {
} }
} }
} }
.mt15 {
float: right;
margin-bottom: 15px;
}
</style> </style>

View File

@ -4,41 +4,24 @@
<el-row :gutter="22"> <el-row :gutter="22">
<el-col :span="10"> <el-col :span="10">
<div class="system-role-padding layout-padding-auto layout-padding-view"> <div class="system-role-padding layout-padding-auto layout-padding-view">
<el-table :data="state.disasterData.data" <el-table :data="state.disasterData.data" v-loading="state.disasterData.loading" style="width: 100%"
v-loading="state.disasterData.loading" highlight-current-row @row-click="tableClick">
style="width: 100%" <el-table-column type="index" label="ID" width="50" />
highlight-current-row <el-table-column prop="disasterType" label="Disaster type" show-overflow-tooltip></el-table-column>
@row-click="tableClick"> <el-table-column prop="disasterCountry" label="disaster country" show-overflow-tooltip></el-table-column>
<el-table-column type="index" <el-table-column prop="disasterTime" label="disaster time" show-overflow-tooltip></el-table-column>
label="ID"
width="50" />
<el-table-column prop="disasterType"
label="Disaster type"
show-overflow-tooltip></el-table-column>
<el-table-column prop="disasterCountry"
label="disaster country"
show-overflow-tooltip></el-table-column>
<el-table-column prop="disasterTime"
label="disaster time"
show-overflow-tooltip></el-table-column>
</el-table> </el-table>
<el-pagination @size-change="onHandleDisasterSizeChange" <el-pagination @size-change="onHandleDisasterSizeChange" @current-change="onHandleDisasterCurrentChange"
@current-change="onHandleDisasterCurrentChange" class="mt15" :pager-count="3" :page-sizes="[10, 20, 30]"
class="mt15" v-model:current-page="state.disasterData.param.pageNum" background
:pager-count="5" v-model:page-size="state.disasterData.param.pageSize" layout="total, sizes, prev, pager, next"
:page-sizes="[10, 20, 30]"
v-model:current-page="state.disasterData.param.pageNum"
background
v-model:page-size="state.disasterData.param.pageSize"
layout="total, sizes, prev, pager, next, jumper"
:total="state.disasterData.total"> :total="state.disasterData.total">
</el-pagination> </el-pagination>
</div> </div>
</el-col> </el-col>
<el-col :span="14"> <el-col :span="14">
<div class="system-role-padding layout-padding-auto layout-padding-view"> <div class="system-role-padding layout-padding-auto layout-padding-view">
<div class="system-user-search mb15" <div class="system-user-search mb15" style="display: flex;margin-left: 10px;margin-top: 10px;">
style="display: flex;margin-left: 10px;margin-top: 10px;">
<!-- <el-input size="default" placeholder="please enter username" style="max-width: 180px" v-model="state.searchName" <!-- <el-input size="default" placeholder="please enter username" style="max-width: 180px" v-model="state.searchName"
clearable></el-input> clearable></el-input>
<el-button size="default" type="primary" class="ml10" @click="getTableData"> <el-button size="default" type="primary" class="ml10" @click="getTableData">
@ -47,19 +30,13 @@
</el-icon> </el-icon>
search search
</el-button>--> </el-button>-->
<el-button size="default" <el-button size="default" type="success" class="ml10" @click="uploadData">
type="success"
class="ml10"
@click="uploadData">
<el-icon> <el-icon>
<ele-Upload /> <ele-Upload />
</el-icon> </el-icon>
upload upload
</el-button> </el-button>
<el-button size="default" <el-button size="default" type="danger" class="ml10" @click="batchDel">
type="danger"
class="ml10"
@click="batchDel">
<el-icon> <el-icon>
<ele-Delete /> <ele-Delete />
</el-icon> </el-icon>
@ -67,40 +44,24 @@
</el-button> </el-button>
</div> </div>
<el-table :data="state.tableData.data" <el-table :data="state.tableData.data" v-loading="state.tableData.loading"
v-loading="state.tableData.loading" @selection-change="handleSelectionChange" style="width: 100%">
@selection-change="handleSelectionChange" <el-table-column type="selection" width="55" />
style="width: 100%"> <el-table-column type="index" label="ID" width="50" />
<el-table-column type="selection" <el-table-column prop="name" label="name" show-overflow-tooltip>
width="55" />
<el-table-column type="index"
label="ID"
width="50" />
<el-table-column prop="name"
label="name"
show-overflow-tooltip>
<template #default="scope"> <template #default="scope">
{{ formatName(scope.row.name) }} {{ formatName(scope.row.name) }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="link" <el-table-column prop="link" label="image" show-overflow-tooltip>
label="image"
show-overflow-tooltip>
<template #default="scope"> <template #default="scope">
<el-popover trigger="hover" <el-popover trigger="hover" placement="right" popper-class="max-h-300px overflow-auto" :width="330">
placement="right"
popper-class="max-h-300px overflow-auto"
:width="330">
<!-- table中原本显示的图片 --> <!-- table中原本显示的图片 -->
<template #reference> <template #reference>
<img :src="scope.row.link" <img :src="scope.row.link" :alt="scope.row.link" style="max-height: 130px;max-width: 130px">
:alt="scope.row.link"
style="max-height: 130px;max-width: 130px">
</template> </template>
<!-- 鼠标移入时弹出的图片 --> <!-- 鼠标移入时弹出的图片 -->
<img :src="scope.row.link" <img :src="scope.row.link" alt="" style="height: 150px;width: 300px">
alt=""
style="height: 150px;width: 300px">
</el-popover> </el-popover>
</template> </template>
</el-table-column> </el-table-column>
@ -114,42 +75,26 @@
<el-table-column prop="type" <el-table-column prop="type"
label="type" label="type"
show-overflow-tooltip></el-table-column>--> show-overflow-tooltip></el-table-column>-->
<el-table-column prop="Operate" <el-table-column prop="Operate" label="Operate" show-overflow-tooltip>
label="Operate"
show-overflow-tooltip>
<template #default="scope"> <template #default="scope">
<el-button size="small" <el-button size="small" text type="primary" @click="editData(scope.row)">Edit</el-button>
text <el-button size="small" text type="primary" @click="del(scope.row)">Delete</el-button>
type="primary"
@click="editData(scope.row)">Edit</el-button>
<el-button size="small"
text
type="primary"
@click="del(scope.row)">Delete</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-pagination @size-change="onHandleSizeChange" <el-pagination @size-change="onHandleSizeChange" @current-change="onHandleCurrentChange" class="mt15"
@current-change="onHandleCurrentChange" :pager-count="3" :page-sizes="[10, 20, 30]"
class="mt15" v-model:current-page="state.tableData.param.pageNum" background
:pager-count="5" v-model:page-size="state.tableData.param.pageSize" layout="total, sizes, prev, pager, next"
:page-sizes="[10, 20, 30]"
v-model:current-page="state.tableData.param.pageNum"
background
v-model:page-size="state.tableData.param.pageSize"
layout="total, sizes, prev, pager, next, jumper"
:total="state.tableData.total"> :total="state.tableData.total">
</el-pagination> </el-pagination>
</div> </div>
</el-col> </el-col>
</el-row> </el-row>
</el-config-provider> </el-config-provider>
<RoleDialog ref="roleDialogRef" <RoleDialog ref="roleDialogRef" @refresh="getTableData()" />
@refresh="getTableData()" /> <Upload ref="uploadRef" @callback="getTableData" />
<Upload ref="uploadRef" <EditPicture ref="editUploadRef" @callback="getTableData" />
@callback="getTableData" />
<EditPicture ref="editUploadRef"
@callback="getTableData" />
</div> </div>
</template> </template>
@ -345,6 +290,11 @@ onMounted(() => {
}); });
</script> </script>
<style> <style>
.mt15 {
float: right;
margin-bottom: 15px;
}
.demo-tabs>.el-tabs__content { .demo-tabs>.el-tabs__content {
padding: 32px; padding: 32px;
color: #6b778c; color: #6b778c;
@ -355,11 +305,13 @@ onMounted(() => {
.system-role-container { .system-role-container {
.system-role-padding { .system-role-padding {
padding: 15px; padding: 15px;
.el-table { .el-table {
flex: 1; flex: 1;
} }
} }
} }
.demo-tabs>.el-tabs__content { .demo-tabs>.el-tabs__content {
padding: 32px; padding: 32px;
color: #6b778c; color: #6b778c;

View File

@ -25,12 +25,12 @@
<el-pagination @size-change="onHandleDisasterSizeChange" <el-pagination @size-change="onHandleDisasterSizeChange"
@current-change="onHandleDisasterCurrentChange" @current-change="onHandleDisasterCurrentChange"
class="mt15" class="mt15"
:pager-count="5" :pager-count="3"
:page-sizes="[10, 20, 30]" :page-sizes="[10, 20, 30]"
v-model:current-page="state.disasterData.param.pageNum" v-model:current-page="state.disasterData.param.pageNum"
background background
v-model:page-size="state.disasterData.param.pageSize" v-model:page-size="state.disasterData.param.pageSize"
layout="total, sizes, prev, pager, next, jumper" layout="total, sizes, prev, pager, next"
:total="state.disasterData.total"> :total="state.disasterData.total">
</el-pagination> </el-pagination>
</div> </div>
@ -96,7 +96,7 @@
clearable clearable
placeholder="Select resolution" /> placeholder="Select resolution" />
</el-col> </el-col>
<el-col :span="5"> <el-col :span="3">
<el-button size="default" <el-button size="default"
type="primary" type="primary"
class="ml10" class="ml10"
@ -188,12 +188,12 @@
<el-pagination @size-change="onHandleSizeChange" <el-pagination @size-change="onHandleSizeChange"
@current-change="onHandleCurrentChange" @current-change="onHandleCurrentChange"
class="mt15" class="mt15"
:pager-count="5" :pager-count="3"
:page-sizes="[10, 20, 30]" :page-sizes="[10, 20, 30]"
background background
v-model:current-page="state.tableData.param.pageNum" v-model:current-page="state.tableData.param.pageNum"
v-model:page-size="state.tableData.param.pageSize" v-model:page-size="state.tableData.param.pageSize"
layout="total, sizes, prev, pager, next, jumper" layout="total, sizes, prev, pager, next"
:total="state.tableData.total"> :total="state.tableData.total">
</el-pagination> </el-pagination>
</div> </div>
@ -640,4 +640,8 @@ const searchDisasterDate = () => {
.el-pagination { .el-pagination {
padding-left: 1%; padding-left: 1%;
} }
.mt15 {
float: right;
margin-bottom: 15px;
}
</style> </style>

View File

@ -7,7 +7,7 @@
<el-card class="box-card"> <el-card class="box-card">
<span>Select time range</span> <span>Select time range</span>
<el-row class="block"> <el-row class="block">
<el-col :span="5"> <el-col :span="3">
<span class="demonstration">Start time</span> <span class="demonstration">Start time</span>
</el-col> </el-col>
<el-col :span="19"> <el-col :span="19">
@ -19,7 +19,7 @@
</el-col> </el-col>
</el-row> </el-row>
<el-row class="block"> <el-row class="block">
<el-col :span="5"> <el-col :span="3">
<span class="demonstration">End time</span> <span class="demonstration">End time</span>
</el-col> </el-col>
<el-col :span="19"> <el-col :span="19">

View File

@ -4,33 +4,17 @@
<el-row :gutter="22"> <el-row :gutter="22">
<el-col :span="10"> <el-col :span="10">
<div class="system-role-padding layout-padding-auto layout-padding-view"> <div class="system-role-padding layout-padding-auto layout-padding-view">
<el-table :data="state.disasterData.data" <el-table :data="state.disasterData.data" v-loading="state.disasterData.loading" style="width: 100%"
v-loading="state.disasterData.loading" highlight-current-row @row-click="tableClick">
style="width: 100%" <el-table-column type="index" label="ID" width="50" />
highlight-current-row <el-table-column prop="disasterType" label="Disaster type" show-overflow-tooltip></el-table-column>
@row-click="tableClick"> <el-table-column prop="disasterCountry" label="disaster country" show-overflow-tooltip></el-table-column>
<el-table-column type="index" <el-table-column prop="disasterTime" label="disaster time" show-overflow-tooltip></el-table-column>
label="ID"
width="50" />
<el-table-column prop="disasterType"
label="Disaster type"
show-overflow-tooltip></el-table-column>
<el-table-column prop="disasterCountry"
label="disaster country"
show-overflow-tooltip></el-table-column>
<el-table-column prop="disasterTime"
label="disaster time"
show-overflow-tooltip></el-table-column>
</el-table> </el-table>
<el-pagination @size-change="onHandleDisasterSizeChange" <el-pagination @size-change="onHandleDisasterSizeChange" @current-change="onHandleDisasterCurrentChange"
@current-change="onHandleDisasterCurrentChange" class="mt15" :pager-count="3" :page-sizes="[10, 20, 30]"
class="mt15" v-model:current-page="state.disasterData.param.pageNum" background
:pager-count="5" v-model:page-size="state.disasterData.param.pageSize" layout="total, sizes, prev, pager, next"
:page-sizes="[10, 20, 30]"
v-model:current-page="state.disasterData.param.pageNum"
background
v-model:page-size="state.disasterData.param.pageSize"
layout="total, sizes, prev, pager, next, jumper"
:total="state.disasterData.total"> :total="state.disasterData.total">
</el-pagination> </el-pagination>
</div> </div>
@ -61,81 +45,45 @@
</div> </div>
<el-tabs v-model="activeName" class="demo-tabs" @tab-change="handleClick" type="card"> <el-tabs v-model="activeName" class="demo-tabs" @tab-change="handleClick" type="card">
<el-tab-pane label="wordclouds" name="first"> <el-tab-pane label="wordclouds" name="first">
<el-table :data="state.tableData.data" <el-table :data="state.tableData.data" v-loading="state.tableData.loading"
v-loading="state.tableData.loading" @selection-change="handleSelectionChange" style="width: 100%">
@selection-change="handleSelectionChange"
style="width: 100%">
<el-table-column type="selection" width="55" /> <el-table-column type="selection" width="55" />
<el-table-column type="index" <el-table-column type="index" label="ID" width="50" />
label="ID" <el-table-column prop="time" label="time" show-overflow-tooltip></el-table-column>
width="50" /> <el-table-column prop="frequency" label="frequency" show-overflow-tooltip></el-table-column>
<el-table-column prop="time" <el-table-column prop="word" label="word" show-overflow-tooltip></el-table-column>
label="time" <el-table-column prop="Operate" label="Operate" show-overflow-tooltip>
show-overflow-tooltip></el-table-column>
<el-table-column prop="frequency"
label="frequency"
show-overflow-tooltip></el-table-column>
<el-table-column prop="word"
label="word"
show-overflow-tooltip></el-table-column>
<el-table-column prop="Operate"
label="Operate"
show-overflow-tooltip>
<template #default="scope"> <template #default="scope">
<el-button size="small" text type="primary" @click="editWordCloud(scope.row)">Edit</el-button> <el-button size="small" text type="primary" @click="editWordCloud(scope.row)">Edit</el-button>
<el-button size="small" text type="primary" @click="delWordCloud(scope.row)">Delete</el-button> <el-button size="small" text type="primary" @click="delWordCloud(scope.row)">Delete</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-pagination @size-change="onHandleSizeChange" <el-pagination @size-change="onHandleSizeChange" @current-change="onHandleCurrentChange" class="mt15"
@current-change="onHandleCurrentChange" :pager-count="3" :page-sizes="[10, 20, 30]" v-model:current-page="state.tableData.param.pageNum"
class="mt15" background v-model:page-size="state.tableData.param.pageSize"
:pager-count="5" layout="total, sizes, prev, pager, next" :total="state.tableData.total">
:page-sizes="[10, 20, 30]"
v-model:current-page="state.tableData.param.pageNum"
background
v-model:page-size="state.tableData.param.pageSize"
layout="total, sizes, prev, pager, next, jumper"
:total="state.tableData.total">
</el-pagination> </el-pagination>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="hotspot" name="second"> <el-tab-pane label="hotspot" name="second">
<el-table :data="state.tableData.data" <el-table :data="state.tableData.data" v-loading="state.tableData.loading"
v-loading="state.tableData.loading" @selection-change="handleSelectionHotspotChange" style="width: 100%">
@selection-change="handleSelectionHotspotChange"
style="width: 100%">
<el-table-column type="selection" width="55" /> <el-table-column type="selection" width="55" />
<el-table-column type="index" <el-table-column type="index" label="ID" width="50" />
label="ID" <el-table-column prop="areaCn" label="area cn" show-overflow-tooltip></el-table-column>
width="50" /> <el-table-column prop="areaEn" label="area en" show-overflow-tooltip></el-table-column>
<el-table-column prop="areaCn" <el-table-column prop="frequency" label="frequency" show-overflow-tooltip></el-table-column>
label="area cn" <el-table-column prop="Operate" label="Operate" show-overflow-tooltip>
show-overflow-tooltip></el-table-column>
<el-table-column prop="areaEn"
label="area en"
show-overflow-tooltip></el-table-column>
<el-table-column prop="frequency"
label="frequency"
show-overflow-tooltip></el-table-column>
<el-table-column prop="Operate"
label="Operate"
show-overflow-tooltip>
<template #default="scope"> <template #default="scope">
<el-button size="small" text type="primary" @click="editHotspot(scope.row)">Edit</el-button> <el-button size="small" text type="primary" @click="editHotspot(scope.row)">Edit</el-button>
<el-button size="small" text type="primary" @click="delHotspot(scope.row)">Delete</el-button> <el-button size="small" text type="primary" @click="delHotspot(scope.row)">Delete</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-pagination @size-change="onHandleSizeChange" <el-pagination @size-change="onHandleSizeChange" @current-change="onHandleCurrentChange" class="mt15"
@current-change="onHandleCurrentChange" :pager-count="3" :page-sizes="[10, 20, 30]" v-model:current-page="state.tableData.param.pageNum"
class="mt15" background v-model:page-size="state.tableData.param.pageSize"
:pager-count="5" layout="total, sizes, prev, pager, next" :total="state.tableData.total">
:page-sizes="[10, 20, 30]"
v-model:current-page="state.tableData.param.pageNum"
background
v-model:page-size="state.tableData.param.pageSize"
layout="total, sizes, prev, pager, next, jumper"
:total="state.tableData.total">
</el-pagination> </el-pagination>
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
@ -143,8 +91,7 @@
</el-col> </el-col>
</el-row> </el-row>
</el-config-provider> </el-config-provider>
<RoleDialog ref="roleDialogRef" <RoleDialog ref="roleDialogRef" @refresh="getTableData()" />
@refresh="getTableData()" />
<HotspotForm ref="hotspotRef" @callback="getTableData" /> <HotspotForm ref="hotspotRef" @callback="getTableData" />
<WordClouds ref="wordCloudsRef" @callback="getTableData" /> <WordClouds ref="wordCloudsRef" @callback="getTableData" />
<EditHotspotForm ref="editHotspotRef" @callback="getTableData" /> <EditHotspotForm ref="editHotspotRef" @callback="getTableData" />
@ -406,15 +353,21 @@ onMounted(() => {
.system-role-container { .system-role-container {
.system-role-padding { .system-role-padding {
padding: 15px; padding: 15px;
.el-table { .el-table {
flex: 1; flex: 1;
} }
} }
} }
.demo-tabs>.el-tabs__content { .demo-tabs>.el-tabs__content {
padding: 32px; padding: 10px;
color: #6b778c; color: #6b778c;
font-size: 32px; font-size: 32px;
font-weight: 600; font-weight: 600;
} }
.mt15 {
float: right;
margin-bottom: 15px;
}
</style> </style>

View File

@ -90,12 +90,12 @@
@size-change="onHandleSizeChange" @size-change="onHandleSizeChange"
@current-change="onHandleCurrentChange" @current-change="onHandleCurrentChange"
class="mt15" class="mt15"
:pager-count="5" :pager-count="3"
:page-sizes="[10, 20, 30]" :page-sizes="[10, 20, 30]"
v-model:current-page="state.tableData.param.pageNum" v-model:current-page="state.tableData.param.pageNum"
background background
v-model:page-size="state.tableData.param.pageSize" v-model:page-size="state.tableData.param.pageSize"
layout="total, sizes, prev, pager, next, jumper" layout="total, sizes, prev, pager, next"
:total="state.tableData.total" :total="state.tableData.total"
> >
</el-pagination> --> </el-pagination> -->

View File

@ -90,12 +90,12 @@
@size-change="onHandleSizeChange" @size-change="onHandleSizeChange"
@current-change="onHandleCurrentChange" @current-change="onHandleCurrentChange"
class="mt15" class="mt15"
:pager-count="5" :pager-count="3"
:page-sizes="[10, 20, 30]" :page-sizes="[10, 20, 30]"
v-model:current-page="state.tableData.param.pageNum" v-model:current-page="state.tableData.param.pageNum"
background background
v-model:page-size="state.tableData.param.pageSize" v-model:page-size="state.tableData.param.pageSize"
layout="total, sizes, prev, pager, next, jumper" layout="total, sizes, prev, pager, next"
:total="state.tableData.total" :total="state.tableData.total"
> >
</el-pagination> --> </el-pagination> -->

View File

@ -24,7 +24,7 @@
</el-form-item> </el-form-item>
<el-form-item class="login-animation3" v-if="state.captchaMode"> <el-form-item class="login-animation3" v-if="state.captchaMode">
<el-col :span="15"> <el-col :span="15">
<el-input text maxlength="5" placeholder="Please input validate code" v-model="state.ruleForm.code" clearable autocomplete="off"> <el-input text maxlength="3" placeholder="Please input validate code" v-model="state.ruleForm.code" clearable autocomplete="off">
<template #prefix> <template #prefix>
<el-icon class="el-input__icon"><ele-Position /></el-icon> <el-icon class="el-input__icon"><ele-Position /></el-icon>
</template> </template>

View File

@ -57,9 +57,9 @@
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-pagination @size-change="onHandleSizeChange" @current-change="onHandleCurrentChange" class="mt15" <el-pagination @size-change="onHandleSizeChange" @current-change="onHandleCurrentChange" class="mt15"
:pager-count="5" :page-sizes="[10, 20, 30]" v-model:current-page="state.tableData.param.pageNum" :pager-count="3" :page-sizes="[10, 20, 30]" v-model:current-page="state.tableData.param.pageNum"
background v-model:page-size="state.tableData.param.pageSize" background v-model:page-size="state.tableData.param.pageSize"
layout="total, sizes, prev, pager, next, jumper" :total="state.tableData.total"> layout="total, sizes, prev, pager, next" :total="state.tableData.total">
</el-pagination> </el-pagination>
</el-card> </el-card>
</el-col> </el-col>
@ -217,3 +217,10 @@ onMounted(() => {
}); });
</script> </script>
<style>
.mt15 {
float: right;
margin-bottom: 15px;
}
</style>

View File

@ -12,9 +12,9 @@
<el-table-column prop="disasterTime" label="disaster time" show-overflow-tooltip></el-table-column> <el-table-column prop="disasterTime" label="disaster time" show-overflow-tooltip></el-table-column>
</el-table> </el-table>
<el-pagination @size-change="onHandleDisasterSizeChange" @current-change="onHandleDisasterCurrentChange" <el-pagination @size-change="onHandleDisasterSizeChange" @current-change="onHandleDisasterCurrentChange"
class="mt15" :pager-count="5" :page-sizes="[10, 20, 30]" class="mt15" :pager-count="3" :page-sizes="[10, 20, 30]"
v-model:current-page="state.disasterData.param.pageNum" background v-model:current-page="state.disasterData.param.pageNum" background
v-model:page-size="state.disasterData.param.pageSize" layout="total, sizes, prev, pager, next, jumper" v-model:page-size="state.disasterData.param.pageSize" layout="total, sizes, prev, pager, next"
:total="state.disasterData.total"> :total="state.disasterData.total">
</el-pagination> </el-pagination>
</div> </div>
@ -50,8 +50,8 @@
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-pagination @size-change="onHandleSizeChange" @current-change="onHandleCurrentChange" class="mt15" <el-pagination @size-change="onHandleSizeChange" @current-change="onHandleCurrentChange" class="mt15"
:pager-count="5" :page-sizes="[10, 20, 30]" v-model:current-page="state.tableData.param.pageNum" background :pager-count="3" :page-sizes="[10, 20, 30]" v-model:current-page="state.tableData.param.pageNum" background
v-model:page-size="state.tableData.param.pageSize" layout="total, sizes, prev, pager, next, jumper" v-model:page-size="state.tableData.param.pageSize" layout="total, sizes, prev, pager, next"
:total="state.tableData.total"> :total="state.tableData.total">
</el-pagination> </el-pagination>
</div> </div>
@ -241,4 +241,8 @@ onMounted(() => {
} }
} }
} }
.mt15 {
float: right;
margin-bottom: 15px;
}
</style> </style>

View File

@ -62,10 +62,10 @@
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-pagination @size-change="onHandleSizeChange" @current-change="onHandleCurrentChange" <el-pagination @size-change="onHandleSizeChange" @current-change="onHandleCurrentChange"
class="mt15" :pager-count="5" :page-sizes="[10, 20, 30]" class="mt15" :pager-count="3" :page-sizes="[10, 20, 30]"
v-model:current-page="state.tableData.param.pageNum" background v-model:current-page="state.tableData.param.pageNum" background
v-model:page-size="state.tableData.param.pageSize" v-model:page-size="state.tableData.param.pageSize"
layout="total, sizes, prev, pager, next, jumper" :total="state.tableData.total"> layout="total, sizes, prev, pager, next" :total="state.tableData.total">
</el-pagination> </el-pagination>
</el-card> </el-card>
</el-col> </el-col>
@ -171,3 +171,10 @@ onMounted(() => {
}); });
</script> </script>
<style>
.mt15 {
float: right;
margin-bottom: 15px;
}
</style>

View File

@ -18,9 +18,9 @@
<el-table-column prop="email" label="E-mail" show-overflow-tooltip></el-table-column> <el-table-column prop="email" label="E-mail" show-overflow-tooltip></el-table-column>
</el-table> </el-table>
<el-pagination @size-change="onHandleSizeChange" @current-change="onHandleCurrentChange" class="mt15" <el-pagination @size-change="onHandleSizeChange" @current-change="onHandleCurrentChange" class="mt15"
:pager-count="5" :page-sizes="[10, 20, 30]" v-model:current-page="state.tableData.param.pageNum" :pager-count="3" :page-sizes="[10, 20, 30]" v-model:current-page="state.tableData.param.pageNum"
background v-model:page-size="state.tableData.param.pageSize" background v-model:page-size="state.tableData.param.pageSize"
layout="total, sizes, prev, pager, next, jumper" :total="state.tableData.total"> layout="total, sizes, prev, pager, next" :total="state.tableData.total">
</el-pagination> </el-pagination>
</el-card> </el-card>
<template #footer> <template #footer>
@ -131,3 +131,9 @@ defineExpose({
openDialog, openDialog,
}); });
</script> </script>
<style>
.mt15 {
float: right;
margin-bottom: 15px;
}
</style>

View File

@ -33,7 +33,8 @@
</el-table-column> </el-table-column>
<el-table-column prop="Operate" label="Operate" show-overflow-tooltip> <el-table-column prop="Operate" label="Operate" show-overflow-tooltip>
<template #default="scope"> <template #default="scope">
<el-button size="small" text type="primary" @click="onOpenEditRole('edit', scope.row)">Review</el-button> <el-button size="small" text type="primary"
@click="onOpenEditRole('edit', scope.row)">Review</el-button>
</template> </template>
</el-table-column> </el-table-column>
@ -57,8 +58,8 @@
</el-table-column> --> </el-table-column> -->
</el-table> </el-table>
<el-pagination @size-change="onHandleSizeChange" @current-change="onHandleCurrentChange" class="mt15" <el-pagination @size-change="onHandleSizeChange" @current-change="onHandleCurrentChange" class="mt15"
:pager-count="5" :page-sizes="[10, 20, 30]" v-model:current-page="state.tableData.param.current" background :pager-count="3" :page-sizes="[10, 20, 30]" v-model:current-page="state.tableData.param.current" background
v-model:page-size="state.tableData.param.size" layout="total, sizes, prev, pager, next, jumper" v-model:page-size="state.tableData.param.size" layout="total, sizes, prev, pager, next"
:total="state.tableData.total"> :total="state.tableData.total">
</el-pagination> </el-pagination>
</el-tab-pane> </el-tab-pane>
@ -97,8 +98,8 @@
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-pagination @size-change="onHandleSizeChange" @current-change="onHandleCurrentChange" class="mt15" <el-pagination @size-change="onHandleSizeChange" @current-change="onHandleCurrentChange" class="mt15"
:pager-count="5" :page-sizes="[10, 20, 30]" v-model:current-page="state.tableData.param.current" background :pager-count="3" :page-sizes="[10, 20, 30]" v-model:current-page="state.tableData.param.current" background
v-model:page-size="state.tableData.param.size" layout="total, sizes, prev, pager, next, jumper" v-model:page-size="state.tableData.param.size" layout="total, sizes, prev, pager, next"
:total="state.tableData.total"> :total="state.tableData.total">
</el-pagination> </el-pagination>
</el-tab-pane> </el-tab-pane>
@ -384,4 +385,8 @@ const getValue = (key) => {
} }
} }
} }
.mt15 {
float: right;
margin-bottom: 15px;
}
</style> </style>

View File

@ -38,12 +38,12 @@
@size-change="onHandleSizeChange" @size-change="onHandleSizeChange"
@current-change="onHandleCurrentChange" @current-change="onHandleCurrentChange"
class="mt15" class="mt15"
:pager-count="5" :pager-count="3"
:page-sizes="[10, 20, 30]" :page-sizes="[10, 20, 30]"
v-model:current-page="state.tableData.param.pageNum" v-model:current-page="state.tableData.param.pageNum"
background background
v-model:page-size="state.tableData.param.pageSize" v-model:page-size="state.tableData.param.pageSize"
layout="total, sizes, prev, pager, next, jumper" layout="total, sizes, prev, pager, next"
:total="state.tableData.total" :total="state.tableData.total"
> >
</el-pagination> --> </el-pagination> -->

View File

@ -74,12 +74,12 @@
<el-pagination @size-change="onHandleSizeChange" <el-pagination @size-change="onHandleSizeChange"
@current-change="onHandleCurrentChange" @current-change="onHandleCurrentChange"
class="mt15" class="mt15"
:pager-count="5" :pager-count="3"
:page-sizes="[10, 20, 30]" :page-sizes="[10, 20, 30]"
v-model:current-page="state.tableData.param.pageNum" v-model:current-page="state.tableData.param.pageNum"
background background
v-model:page-size="state.tableData.param.pageSize" v-model:page-size="state.tableData.param.pageSize"
layout="total, sizes, prev, pager, next, jumper" layout="total, sizes, prev, pager, next"
:total="state.tableData.total"> :total="state.tableData.total">
</el-pagination> </el-pagination>
</div> </div>
@ -175,4 +175,8 @@ onMounted(() => {
} }
} }
} }
.mt15 {
float: right;
margin-bottom: 15px;
}
</style> </style>

View File

@ -42,8 +42,8 @@
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-pagination @size-change="onHandleSizeChange" @current-change="onHandleCurrentChange" class="mt15" <el-pagination @size-change="onHandleSizeChange" @current-change="onHandleCurrentChange" class="mt15"
:pager-count="5" :page-sizes="[10, 20, 30]" v-model:current-page="state.tableData.param.pageNum" background :pager-count="3" :page-sizes="[10, 20, 30]" v-model:current-page="state.tableData.param.pageNum" background
v-model:page-size="state.tableData.param.pageSize" layout="total, sizes, prev, pager, next, jumper" v-model:page-size="state.tableData.param.pageSize" layout="total, sizes, prev, pager, next"
:total="state.tableData.total"> :total="state.tableData.total">
</el-pagination> </el-pagination>
</el-card> </el-card>
@ -148,4 +148,8 @@ onMounted(() => {
} }
} }
} }
.mt15 {
float: right;
margin-bottom: 15px;
}
</style> </style>

View File

@ -59,12 +59,12 @@
<el-pagination @size-change="onHandleSizeChange" <el-pagination @size-change="onHandleSizeChange"
@current-change="onHandleCurrentChange" @current-change="onHandleCurrentChange"
class="mt15" class="mt15"
:pager-count="5" :pager-count="3"
:page-sizes="[10, 20, 30]" :page-sizes="[10, 20, 30]"
v-model:current-page="state.tableData.param.pageNum" v-model:current-page="state.tableData.param.pageNum"
background background
v-model:page-size="state.tableData.param.pageSize" v-model:page-size="state.tableData.param.pageSize"
layout="total, sizes, prev, pager, next, jumper" layout="total, sizes, prev, pager, next"
:total="state.tableData.total"> :total="state.tableData.total">
</el-pagination> </el-pagination>
</el-config-provider> </el-config-provider>
@ -201,4 +201,8 @@ onMounted(() => {
} }
} }
} }
.mt15 {
float: right;
margin-bottom: 15px;
}
</style> </style>

View File

@ -22,12 +22,12 @@
<el-pagination @size-change="onHandleSizeChange" <el-pagination @size-change="onHandleSizeChange"
@current-change="onHandleCurrentChange" @current-change="onHandleCurrentChange"
class="mt15" class="mt15"
:pager-count="5" :pager-count="3"
:page-sizes="[10, 20, 30]" :page-sizes="[10, 20, 30]"
v-model:current-page="state.tableData.param.pageNum" v-model:current-page="state.tableData.param.pageNum"
background background
v-model:page-size="state.tableData.param.pageSize" v-model:page-size="state.tableData.param.pageSize"
layout="total, sizes, prev, pager, next, jumper" layout="total, sizes, prev, pager, next"
:total="state.tableData.total"> :total="state.tableData.total">
</el-pagination> </el-pagination>
</el-config-provider> </el-config-provider>
@ -125,5 +125,8 @@ defineExpose({
</script> </script>
<style scoped> <style scoped>
.mt15 {
float: right;
margin-bottom: 15px;
}
</style> </style>

View File

@ -44,12 +44,12 @@
<el-pagination @size-change="onHandleSizeChange" <el-pagination @size-change="onHandleSizeChange"
@current-change="onHandleCurrentChange" @current-change="onHandleCurrentChange"
class="mt15" class="mt15"
:pager-count="5" :pager-count="3"
:page-sizes="[10, 20, 30]" :page-sizes="[10, 20, 30]"
v-model:current-page="state.tableData.param.pageNum" v-model:current-page="state.tableData.param.pageNum"
background background
v-model:page-size="state.tableData.param.pageSize" v-model:page-size="state.tableData.param.pageSize"
layout="total, sizes, prev, pager, next, jumper" layout="total, sizes, prev, pager, next"
:total="state.tableData.total"> :total="state.tableData.total">
</el-pagination> </el-pagination>
<DisasterInfo ref="disasterInfoRef" @callback="getTableData"/> <DisasterInfo ref="disasterInfoRef" @callback="getTableData"/>
@ -154,5 +154,8 @@ defineExpose({
</script> </script>
<style scoped> <style scoped>
.mt15 {
float: right;
margin-bottom: 15px;
}
</style> </style>

View File

@ -60,12 +60,12 @@
<el-pagination @size-change="onHandleSizeChange" <el-pagination @size-change="onHandleSizeChange"
@current-change="onHandleCurrentChange" @current-change="onHandleCurrentChange"
class="mt15" class="mt15"
:pager-count="5" :pager-count="3"
:page-sizes="[10, 20, 30]" :page-sizes="[10, 20, 30]"
v-model:current-page="state.tableData.param.pageNum" v-model:current-page="state.tableData.param.pageNum"
background background
v-model:page-size="state.tableData.param.pageSize" v-model:page-size="state.tableData.param.pageSize"
layout="total, sizes, prev, pager, next, jumper" layout="total, sizes, prev, pager, next"
:total="state.tableData.total"> :total="state.tableData.total">
</el-pagination> </el-pagination>
</el-config-provider> </el-config-provider>
@ -234,4 +234,8 @@ onMounted(() => {
} }
} }
} }
.mt15 {
float: right;
margin-bottom: 15px;
}
</style> </style>