glj-代码提交
This commit is contained in:
parent
d5181a32e4
commit
87789a672b
|
@ -19,16 +19,23 @@
|
||||||
<div class="system-user-search mb15" style="display: flex;margin-left: 10px;margin-top: 10px;">
|
<div class="system-user-search mb15" style="display: flex;margin-left: 10px;margin-top: 10px;">
|
||||||
<!-- 选择灾害类型 -->
|
<!-- 选择灾害类型 -->
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-col :span="8">
|
<el-col :span="6">
|
||||||
<el-tree-select v-model="state.value_satelliteType" :data="state.options_satelliteType" multiple
|
<el-tree-select v-model="state.value_satelliteType" :data="state.options_satelliteType" multiple
|
||||||
collapse-tags collapse-tags-tooltip :render-after-expand="false" show-checkbox clearable
|
collapse-tags collapse-tags-tooltip :render-after-expand="false" show-checkbox clearable
|
||||||
placeholder="Select satellite type" />
|
placeholder="Select satellite type" />
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="8" style="padding-left:1%;">
|
<el-col :span="6" style="margin-left: 1%;">
|
||||||
<el-tree-select v-model="state.value_resolution" :data="state.options_resolution" multiple collapse-tags
|
<el-tree-select v-model="state.value_resolution" :data="state.options_resolution" multiple collapse-tags
|
||||||
collapse-tags-tooltip :render-after-expand="false" show-checkbox clearable
|
collapse-tags-tooltip :render-after-expand="false" show-checkbox clearable
|
||||||
placeholder="Select resolution" />
|
placeholder="Select resolution" />
|
||||||
</el-col>
|
</el-col>
|
||||||
|
<el-col :span="6" style="margin-left: 1%;">
|
||||||
|
<el-select class="form-select" size="default" clearable placeholder="Select status"
|
||||||
|
v-model="state.status">
|
||||||
|
<el-option v-for="(item, index) in state.options_status" :value="item.value" :key="index"
|
||||||
|
:label="item.label" />
|
||||||
|
</el-select>
|
||||||
|
</el-col>
|
||||||
<el-col :span="3">
|
<el-col :span="3">
|
||||||
<el-button size="default" type="primary" class="ml10" @click="searchRemoteSensingSourceData">
|
<el-button size="default" type="primary" class="ml10" @click="searchRemoteSensingSourceData">
|
||||||
<el-icon>
|
<el-icon>
|
||||||
|
@ -57,11 +64,11 @@
|
||||||
show-overflow-tooltip sortable></el-table-column>
|
show-overflow-tooltip sortable></el-table-column>
|
||||||
<el-table-column prop="downloadUrl" label="Download url" align="center" width="200" show-overflow-tooltip>
|
<el-table-column prop="downloadUrl" label="Download url" align="center" width="200" show-overflow-tooltip>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<!-- <el-table-column prop="Operate" label="Operate" align="center" width="200" show-overflow-tooltip>
|
<el-table-column prop="Operate" label="Operate" align="center" width="200" show-overflow-tooltip>
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-button size="small" text type="primary" @click="reviseDownload(scope.row)">start</el-button>
|
<el-button v-if="scope.row.status === 2" size="small" text type="primary" @click="reviseDownload(scope.row)">start</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 @size-change="onHandleSizeChange" @current-change="onHandleCurrentChange" class="mt15"
|
||||||
style="margin-right: 20px;" :page-sizes="[10, 20, 30]" background
|
style="margin-right: 20px;" :page-sizes="[10, 20, 30]" background
|
||||||
|
@ -71,7 +78,7 @@
|
||||||
</div>
|
</div>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
<reviseDownloadUrl ref="reviseDownloadUrlRef" @callback="getTableData"/>
|
<reviseDownloadUrl ref="reviseDownloadUrlRef" @callback="getTableData" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -114,6 +121,25 @@ const state = reactive({
|
||||||
// value_disasterDate: '',
|
// value_disasterDate: '',
|
||||||
// options_disasterCountry: [],
|
// options_disasterCountry: [],
|
||||||
// value_disasterCountry: [],
|
// value_disasterCountry: [],
|
||||||
|
//0-爬虫获取,1-未审核,2-,已审核,上传源数据未补充下载 链接,3-已审核上传源数据已补充下载链接
|
||||||
|
options_status: [
|
||||||
|
{
|
||||||
|
label: 'Crawler acquisition',
|
||||||
|
value: '0'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: 'Unapproved',
|
||||||
|
value: '1'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: 'Approved',
|
||||||
|
value: '2'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: 'Finish',
|
||||||
|
value: '3'
|
||||||
|
},
|
||||||
|
],
|
||||||
options_resolution: [{
|
options_resolution: [{
|
||||||
label: '<0.8m',
|
label: '<0.8m',
|
||||||
value: '<0.8m'
|
value: '<0.8m'
|
||||||
|
@ -263,21 +289,23 @@ const searchRemoteSensingSourceData = () => {
|
||||||
dataNew = {
|
dataNew = {
|
||||||
disasterId: state.disasterId,
|
disasterId: state.disasterId,
|
||||||
satelliteCodeList: state.satelliteCodeList.join(","),
|
satelliteCodeList: state.satelliteCodeList.join(","),
|
||||||
productResolutionVos: state.listData
|
productResolutionVos: state.listData,
|
||||||
|
status: state.status
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
dataNew = {
|
dataNew = {
|
||||||
disasterId: state.disasterId,
|
disasterId: state.disasterId,
|
||||||
productResolutionVos: state.listData
|
productResolutionVos: state.listData,
|
||||||
|
status: state.status
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
getDataByCondition(state.tableData.param.pageNum, state.tableData.param.pageSize, dataNew)
|
getDataByCondition(state.tableData.param.pageNum, state.tableData.param.pageSize, dataNew)
|
||||||
}
|
}
|
||||||
|
|
||||||
const reviseDownload = (row) =>{
|
const reviseDownload = (row) => {
|
||||||
|
|
||||||
console.log(row,"rowrowrow");
|
console.log(row, "rowrowrow");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,324 +1,171 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="system-role-container layout-padding">
|
<div class="system-role-container layout-padding">
|
||||||
<el-config-provider :locale="en"
|
<el-config-provider :locale="en" style="position: relative;">
|
||||||
style="position: relative;">
|
|
||||||
<div class="system-role-padding layout-padding-auto layout-padding-view">
|
<div class="system-role-padding layout-padding-auto layout-padding-view">
|
||||||
<el-tabs v-model="activeName"
|
<el-tabs v-model="activeName" class="demo-tabs" @tab-click="handleClick" style="margin-left: 20px">
|
||||||
class="demo-tabs"
|
<el-tab-pane label="Unapproved" name="first">
|
||||||
@tab-click="handleClick"
|
<el-table :data="state.tableData.data" v-loading="state.tableData.loading" style="width: 100%">
|
||||||
style="margin-left: 20px">
|
<el-table-column prop="username" label="User name" show-overflow-tooltip sortable></el-table-column>
|
||||||
<el-tab-pane label="Unapproved"
|
<el-table-column prop="organization" label="Organization" show-overflow-tooltip sortable></el-table-column>
|
||||||
name="first">
|
<el-table-column prop="disasterType" label="Disaster type" show-overflow-tooltip sortable>
|
||||||
<el-table :data="state.tableData.data"
|
|
||||||
v-loading="state.tableData.loading"
|
|
||||||
style="width: 100%">
|
|
||||||
<el-table-column prop="username"
|
|
||||||
label="User name"
|
|
||||||
show-overflow-tooltip
|
|
||||||
sortable></el-table-column>
|
|
||||||
<el-table-column prop="organization"
|
|
||||||
label="Organization"
|
|
||||||
show-overflow-tooltip
|
|
||||||
sortable></el-table-column>
|
|
||||||
<el-table-column prop="disasterType"
|
|
||||||
label="Disaster type"
|
|
||||||
show-overflow-tooltip
|
|
||||||
sortable>
|
|
||||||
<!-- 在disasterType中获取dictKey 对应的dictValue -->
|
<!-- 在disasterType中获取dictKey 对应的dictValue -->
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-tag type="info">{{ getValue(scope.row.disasterType) }}</el-tag>
|
<el-tag type="info">{{ getValue(scope.row.disasterType) }}</el-tag>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="disasterKeyword"
|
<el-table-column prop="disasterKeyword" label="Disaster keyword" show-overflow-tooltip
|
||||||
label="Disaster keyword"
|
sortable></el-table-column>
|
||||||
show-overflow-tooltip
|
<el-table-column prop="disasterTime" label="Disaster time" show-overflow-tooltip sortable>
|
||||||
sortable></el-table-column>
|
|
||||||
<el-table-column prop="disasterTime"
|
|
||||||
label="Disaster time"
|
|
||||||
show-overflow-tooltip
|
|
||||||
sortable>
|
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<!-- 格式化去除时分秒 -->
|
<!-- 格式化去除时分秒 -->
|
||||||
{{ dateFormat(scope.row.disasterTime) }}
|
{{ dateFormat(scope.row.disasterTime) }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="respondStatus"
|
<el-table-column prop="respondStatus" label="Response status" show-overflow-tooltip sortable>
|
||||||
label="Response status"
|
|
||||||
show-overflow-tooltip
|
|
||||||
sortable>
|
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-tag type="info"
|
<el-tag type="info" v-if="scope.row.respondStatus === 0">Awaiting approval</el-tag>
|
||||||
v-if="scope.row.respondStatus === 0">Awaiting approval</el-tag>
|
<el-tag type="info" v-if="scope.row.respondStatus === 1">Rejected</el-tag>
|
||||||
<el-tag type="info"
|
|
||||||
v-if="scope.row.respondStatus === 1">Rejected</el-tag>
|
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="Operate"
|
<el-table-column prop="Operate" label="Operate" show-overflow-tooltip sortable>
|
||||||
label="Operate"
|
|
||||||
show-overflow-tooltip
|
|
||||||
sortable>
|
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-button size="small"
|
<el-button size="small" text type="primary"
|
||||||
text
|
@click="onOpenEditRole('edit', scope.row)">Approve</el-button>
|
||||||
type="primary"
|
|
||||||
@click="onOpenEditRole('edit', scope.row)">Approve</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="5" :page-sizes="[10, 20, 30]" v-model:current-page="state.tableData.param.current" background
|
||||||
class="mt15"
|
v-model:page-size="state.tableData.param.size" layout="total, sizes, prev, pager, next, jumper"
|
||||||
:pager-count="5"
|
:total="state.tableData.total">
|
||||||
: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"
|
|
||||||
:total="state.tableData.total">
|
|
||||||
</el-pagination>
|
</el-pagination>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
|
|
||||||
<el-tab-pane label="Rejected"
|
<el-tab-pane label="Rejected" name="firstNew">
|
||||||
name="firstNew">
|
<el-table :data="state.tableData.data" v-loading="state.tableData.loading" style="width: 100%">
|
||||||
<el-table :data="state.tableData.data"
|
<el-table-column prop="username" label="User name" show-overflow-tooltip sortable></el-table-column>
|
||||||
v-loading="state.tableData.loading"
|
<el-table-column prop="organization" label="Organization" show-overflow-tooltip sortable></el-table-column>
|
||||||
style="width: 100%">
|
<el-table-column prop="disasterType" label="Disaster type" show-overflow-tooltip sortable>
|
||||||
<el-table-column prop="username"
|
|
||||||
label="User name"
|
|
||||||
show-overflow-tooltip
|
|
||||||
sortable></el-table-column>
|
|
||||||
<el-table-column prop="organization"
|
|
||||||
label="Organization"
|
|
||||||
show-overflow-tooltip
|
|
||||||
sortable></el-table-column>
|
|
||||||
<el-table-column prop="disasterType"
|
|
||||||
label="Disaster type"
|
|
||||||
show-overflow-tooltip
|
|
||||||
sortable>
|
|
||||||
<!-- 在disasterType中获取dictKey 对应的dictValue -->
|
<!-- 在disasterType中获取dictKey 对应的dictValue -->
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-tag type="info">{{ getValue(scope.row.disasterType) }}</el-tag>
|
<el-tag type="info">{{ getValue(scope.row.disasterType) }}</el-tag>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="disasterKeyword"
|
<el-table-column prop="disasterKeyword" label="Disaster keyword" show-overflow-tooltip
|
||||||
label="Disaster keyword"
|
sortable></el-table-column>
|
||||||
show-overflow-tooltip
|
<el-table-column prop="disasterTime" label="Disaster time" show-overflow-tooltip sortable>
|
||||||
sortable></el-table-column>
|
|
||||||
<el-table-column prop="disasterTime"
|
|
||||||
label="Disaster time"
|
|
||||||
show-overflow-tooltip
|
|
||||||
sortable>
|
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<!-- 格式化去除时分秒 -->
|
<!-- 格式化去除时分秒 -->
|
||||||
{{ dateFormat(scope.row.disasterTime) }}
|
{{ dateFormat(scope.row.disasterTime) }}
|
||||||
</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="5" :page-sizes="[10, 20, 30]" v-model:current-page="state.tableData.param.current" background
|
||||||
class="mt15"
|
v-model:page-size="state.tableData.param.size" layout="total, sizes, prev, pager, next, jumper"
|
||||||
:pager-count="5"
|
:total="state.tableData.total">
|
||||||
: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"
|
|
||||||
:total="state.tableData.total">
|
|
||||||
</el-pagination>
|
</el-pagination>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
|
|
||||||
<el-tab-pane label="Approved"
|
<el-tab-pane label="Approved" name="second">
|
||||||
name="second">
|
<el-table :data="state.tableData.data" v-loading="state.tableData.loading" style="width: 100%">
|
||||||
<el-table :data="state.tableData.data"
|
|
||||||
v-loading="state.tableData.loading"
|
|
||||||
style="width: 100%">
|
|
||||||
|
|
||||||
<el-table-column prop="username"
|
<el-table-column prop="username" label="User name" show-overflow-tooltip sortable></el-table-column>
|
||||||
label="User name"
|
<el-table-column prop="organization" label="Organization" show-overflow-tooltip sortable></el-table-column>
|
||||||
show-overflow-tooltip
|
<el-table-column prop="email" label="Email" show-overflow-tooltip sortable></el-table-column>
|
||||||
sortable></el-table-column>
|
<el-table-column prop="disasterType" label="Disaster type" show-overflow-tooltip sortable>
|
||||||
<el-table-column prop="organization"
|
|
||||||
label="Organization"
|
|
||||||
show-overflow-tooltip
|
|
||||||
sortable></el-table-column>
|
|
||||||
<el-table-column prop="email"
|
|
||||||
label="Email"
|
|
||||||
show-overflow-tooltip
|
|
||||||
sortable></el-table-column>
|
|
||||||
<el-table-column prop="disasterType"
|
|
||||||
label="Disaster type"
|
|
||||||
show-overflow-tooltip
|
|
||||||
sortable>
|
|
||||||
<!-- 在disasterType中获取dictKey 对应的dictValue -->
|
<!-- 在disasterType中获取dictKey 对应的dictValue -->
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-tag type="info">{{ getValue(scope.row.disasterType) }}</el-tag>
|
<el-tag type="info">{{ getValue(scope.row.disasterType) }}</el-tag>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="disasterKeyword"
|
<el-table-column prop="disasterKeyword" label="Disaster keyword" show-overflow-tooltip
|
||||||
label="Disaster keyword"
|
sortable></el-table-column>
|
||||||
show-overflow-tooltip
|
<el-table-column prop="disasterTime" label="Disaster time" show-overflow-tooltip sortable>
|
||||||
sortable></el-table-column>
|
|
||||||
<el-table-column prop="disasterTime"
|
|
||||||
label="Disaster time"
|
|
||||||
show-overflow-tooltip
|
|
||||||
sortable>
|
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<!-- 格式化去除时分秒 -->
|
<!-- 格式化去除时分秒 -->
|
||||||
{{ dateFormat(scope.row.disasterTime) }}
|
{{ dateFormat(scope.row.disasterTime) }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="chiefName"
|
<el-table-column prop="chiefName" label="Answer" show-overflow-tooltip sortable></el-table-column>
|
||||||
label="Answer"
|
<el-table-column prop="reviewTime" label="reviewTime" show-overflow-tooltip sortable />
|
||||||
show-overflow-tooltip
|
<el-table-column width="170" prop="respondStatus" label="Response status" show-overflow-tooltip sortable>
|
||||||
sortable></el-table-column>
|
|
||||||
<el-table-column prop="reviewTime"
|
|
||||||
label="reviewTime"
|
|
||||||
show-overflow-tooltip
|
|
||||||
sortable />
|
|
||||||
<el-table-column width="170"
|
|
||||||
prop="respondStatus"
|
|
||||||
label="Response status"
|
|
||||||
show-overflow-tooltip
|
|
||||||
sortable>
|
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-tag type="info"
|
<el-tag type="info" v-if="scope.row.respondStatus === 2">Approved</el-tag>
|
||||||
v-if="scope.row.respondStatus === 2">Approved</el-tag>
|
<el-tag type="info" v-if="scope.row.respondStatus === 1">Rejected</el-tag>
|
||||||
<el-tag type="info"
|
<el-tag type="success" v-if="scope.row.respondStatus === 3">Complete response</el-tag>
|
||||||
v-if="scope.row.respondStatus === 1">Rejected</el-tag>
|
|
||||||
<el-tag type="success"
|
|
||||||
v-if="scope.row.respondStatus === 3">Complete response</el-tag>
|
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column width="200"
|
<el-table-column width="200" prop="Operate" label="Operate" show-overflow-tooltip sortable>
|
||||||
prop="Operate"
|
|
||||||
label="Operate"
|
|
||||||
show-overflow-tooltip
|
|
||||||
sortable>
|
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-button size="small"
|
<el-button size="small" text type="primary" @click="onAllocation(scope.row)">Allocation</el-button>
|
||||||
text
|
<el-button size="small" text type="danger" @click="responseEnded(scope.row)">Response ended</el-button>
|
||||||
type="primary"
|
|
||||||
@click="onAllocation(scope.row)">Allocation</el-button>
|
|
||||||
<el-button size="small"
|
|
||||||
text
|
|
||||||
type="danger"
|
|
||||||
@click="responseEnded(scope.row)">Response ended</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="5" :page-sizes="[10, 20, 30]" v-model:current-page="state.tableData.param.current" background
|
||||||
class="mt15"
|
v-model:page-size="state.tableData.param.size" layout="total, sizes, prev, pager, next, jumper"
|
||||||
:pager-count="5"
|
:total="state.tableData.total">
|
||||||
: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"
|
|
||||||
:total="state.tableData.total">
|
|
||||||
</el-pagination>
|
</el-pagination>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
|
|
||||||
|
|
||||||
<el-tab-pane label="Finish"
|
<el-tab-pane label="Finish" name="firstNewOne">
|
||||||
name="firstNewOne">
|
<el-table :data="state.tableData.data" v-loading="state.tableData.loading" style="width: 100%">
|
||||||
<el-table :data="state.tableData.data"
|
<el-table-column prop="username" label="User name" show-overflow-tooltip sortable></el-table-column>
|
||||||
v-loading="state.tableData.loading"
|
<el-table-column prop="organization" label="Organization" show-overflow-tooltip sortable></el-table-column>
|
||||||
style="width: 100%">
|
<el-table-column prop="disasterType" label="Disaster type" show-overflow-tooltip sortable>
|
||||||
<el-table-column prop="username"
|
|
||||||
label="User name"
|
|
||||||
show-overflow-tooltip
|
|
||||||
sortable></el-table-column>
|
|
||||||
<el-table-column prop="organization"
|
|
||||||
label="Organization"
|
|
||||||
show-overflow-tooltip
|
|
||||||
sortable></el-table-column>
|
|
||||||
<el-table-column prop="disasterType"
|
|
||||||
label="Disaster type"
|
|
||||||
show-overflow-tooltip
|
|
||||||
sortable>
|
|
||||||
<!-- 在disasterType中获取dictKey 对应的dictValue -->
|
<!-- 在disasterType中获取dictKey 对应的dictValue -->
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-tag type="info">{{ getValue(scope.row.disasterType) }}</el-tag>
|
<el-tag type="info">{{ getValue(scope.row.disasterType) }}</el-tag>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="disasterKeyword"
|
<el-table-column prop="disasterKeyword" label="Disaster keyword" show-overflow-tooltip
|
||||||
label="Disaster keyword"
|
sortable></el-table-column>
|
||||||
show-overflow-tooltip
|
<el-table-column prop="disasterTime" label="Disaster time" show-overflow-tooltip sortable>
|
||||||
sortable></el-table-column>
|
|
||||||
<el-table-column prop="disasterTime"
|
|
||||||
label="Disaster time"
|
|
||||||
show-overflow-tooltip
|
|
||||||
sortable>
|
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<!-- 格式化去除时分秒 -->
|
<!-- 格式化去除时分秒 -->
|
||||||
{{ dateFormat(scope.row.disasterTime) }}
|
{{ dateFormat(scope.row.disasterTime) }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="respondedTime"
|
<el-table-column prop="respondedTime" label="Responded time" show-overflow-tooltip sortable>
|
||||||
label="Responded time"
|
|
||||||
show-overflow-tooltip
|
|
||||||
sortable>
|
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<!-- 格式化去除时分秒 -->
|
<!-- 格式化去除时分秒 -->
|
||||||
{{ dateFormat(scope.row.respondedTime) }}
|
{{ dateFormat(scope.row.respondedTime) }}
|
||||||
</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="5" :page-sizes="[10, 20, 30]" v-model:current-page="state.tableData.param.current" background
|
||||||
class="mt15"
|
v-model:page-size="state.tableData.param.size" layout="total, sizes, prev, pager, next, jumper"
|
||||||
:pager-count="5"
|
:total="state.tableData.total">
|
||||||
: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"
|
|
||||||
:total="state.tableData.total">
|
|
||||||
</el-pagination>
|
</el-pagination>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
</el-tabs>
|
</el-tabs>
|
||||||
</div>
|
</div>
|
||||||
<el-dialog v-model="state.dialogVisible"
|
<el-dialog v-model="state.dialogVisible" title="Approval" width="45%">
|
||||||
title="Approval"
|
|
||||||
width="35%">
|
|
||||||
<el-container style="margin-top: -2%;margin-bottom: 2%;">
|
<el-container style="margin-top: -2%;margin-bottom: 2%;">
|
||||||
<el-radio v-model="state.radio"
|
<el-radio v-model="state.radio" label='1' @click="mapEvents('1')">Point</el-radio>
|
||||||
label='1'
|
<el-radio v-model="state.radio" label='2' @click="mapEvents('2')">Area</el-radio>
|
||||||
@click="mapEvents('1')">Point</el-radio>
|
<el-radio v-model="state.radio" label='3' @click="mapEvents('3')">Edit</el-radio>
|
||||||
<el-radio v-model="state.radio"
|
<el-button type="primary" style="margin-left: 5%;" @click="ClearSubmit">Clear</el-button>
|
||||||
label='2'
|
|
||||||
@click="mapEvents('2')">Area</el-radio>
|
|
||||||
<el-radio v-model="state.radio"
|
|
||||||
label='3'
|
|
||||||
@click="mapEvents('3')">Edit</el-radio>
|
|
||||||
<el-button type="primary"
|
|
||||||
style="margin-left: 5%;"
|
|
||||||
@click="ClearSubmit">Clear</el-button>
|
|
||||||
</el-container>
|
</el-container>
|
||||||
<el-container style="margin-top: 2%;margin-bottom: 2%;"
|
<el-container style="margin-top: 2%;margin-bottom: 2%;" v-if="state.radio === '1' ? true : false">
|
||||||
v-if="state.radio === '1' ? true : false">
|
|
||||||
<span style="line-height: 35px;"> Latitude:</span>
|
<span style="line-height: 35px;"> Latitude:</span>
|
||||||
<el-input placeholder="wait……"
|
<el-input placeholder="wait……" style="height:35px;margin-right: 1%;" v-model="state.dislat">
|
||||||
style="height:35px;margin-right: 1%;"
|
|
||||||
v-model="state.dislat">
|
|
||||||
</el-input>
|
</el-input>
|
||||||
<span style="line-height: 35px;">Longitude:</span>
|
<span style="line-height: 35px;">Longitude:</span>
|
||||||
<el-input placeholder="wait……"
|
<el-input placeholder="wait……" style="height:35px;" v-model="state.dislon"></el-input>
|
||||||
style="height:35px;"
|
|
||||||
v-model="state.dislon"></el-input>
|
|
||||||
</el-container>
|
</el-container>
|
||||||
<el-container style="margin-top: 2%;margin-bottom: 2%;"
|
<el-container style="margin-top: 2%;margin-bottom: 2%;" v-if="state.radio === '3' ? true : false">
|
||||||
v-if="state.radio === '3' ? true : false">
|
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-col :span="3">
|
<el-col :span="3">
|
||||||
<span style="line-height: 35px;"> Latitude:</span>
|
<span style="line-height: 35px;"> Latitude:</span>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="7">
|
<el-col :span="7">
|
||||||
<el-input placeholder="wait……"
|
<el-input placeholder="wait……" style="height:35px;margin-right: 1%;" v-model="state.dislat"
|
||||||
style="height:35px;margin-right: 1%;"
|
:onchange="manualLat">
|
||||||
v-model="state.dislat"
|
|
||||||
:onchange="manualLat">
|
|
||||||
</el-input>
|
</el-input>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="2"></el-col>
|
<el-col :span="2"></el-col>
|
||||||
|
@ -326,56 +173,53 @@
|
||||||
<span style="line-height: 35px;">Longitude:</span>
|
<span style="line-height: 35px;">Longitude:</span>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="7">
|
<el-col :span="7">
|
||||||
<el-input placeholder="wait……"
|
<el-input placeholder="wait……" style="height:35px;" v-model="state.dislon" :onchange="manualLon"></el-input>
|
||||||
style="height:35px;"
|
|
||||||
v-model="state.dislon"
|
|
||||||
:onchange="manualLon"></el-input>
|
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
</el-container>
|
</el-container>
|
||||||
<MapPage style="height:350px ; width:100% ;margin-bottom: 10px;"
|
<MapPage style="height:350px ; width:100% ;margin-bottom: 10px;" ref="mapRef">
|
||||||
ref="mapRef">
|
|
||||||
</MapPage>
|
</MapPage>
|
||||||
<div class="latLon-div"> {{ state.popupLat }} , {{ state.popupLon }} </div>
|
<div class="latLon-div"> {{ state.popupLat }} , {{ state.popupLon }} </div>
|
||||||
|
|
||||||
<el-form :inline="true" :model="formInline" class="demo-form-inline">
|
<el-form :inline="true" label-width="auto" :label-position="labelPosition" :model="formInline"
|
||||||
|
class="demo-form-inline">
|
||||||
|
|
||||||
<el-form-item label="Disaster Time">
|
<el-form-item label="Disaster Time">
|
||||||
<el-date-picker style="width: 200px;" v-model="state.edit.disasterTime" type="date" value-format="YYYY-MM-DD"
|
<el-date-picker style="width: 200px;" v-model="state.edit.disasterTime" type="date" value-format="YYYY-MM-DD"
|
||||||
placeholder="Select date and time" />
|
placeholder="Select date and time" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
<el-form-item label="Disaster type">
|
<el-form-item label="Disaster type">
|
||||||
<el-select style="width: 200px; height: 40px;" class="form-select" size="default" clearable placeholder="Disaster Type"
|
<el-select style="width: 200px; height: 40px;" class="form-select" size="default" clearable
|
||||||
v-model="state.edit.disasterType">
|
placeholder="Disaster Type" v-model="state.edit.disasterType">
|
||||||
<el-option v-for="(item, index) in state.dictList" :value="item.dictKey" :key="index"
|
<el-option v-for="(item, index) in state.dictList" :value="item.dictKey" :key="index"
|
||||||
:label="item.dictValue" />
|
:label="item.dictValue" />
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
<el-form-item label="Disaster country">
|
<el-form-item label="Disaster country">
|
||||||
<el-input style="width: 200px;" v-model="state.edit.disasterCountry" placeholder="please Disaster country" clearable></el-input>
|
<el-input style="width: 200px;" v-model="state.edit.disasterCountry" placeholder="please Disaster country"
|
||||||
|
clearable></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="Theme keywords">
|
<el-form-item label="Theme keywords">
|
||||||
<el-input style="width: 200px;" v-model="state.edit.disasterKeyword" placeholder="please Theme keywords" clearable></el-input>
|
<el-input style="width: 200px;" v-model="state.edit.disasterKeyword" placeholder="please Theme keywords"
|
||||||
|
clearable></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
</el-form>
|
</el-form>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<span class="dialog-footer">
|
<span class="dialog-footer">
|
||||||
<el-button @click="dialogVisible = false">Cancel</el-button>
|
<el-button @click="dialogVisible = false">Cancel</el-button>
|
||||||
<el-button type="danger"
|
<el-button type="danger" @click="reviews(1)">
|
||||||
@click="reviews(1)">
|
|
||||||
Reject
|
Reject
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button type="primary"
|
<el-button type="primary" @click="reviews(2)">
|
||||||
@click="reviews(2)">
|
|
||||||
Approve
|
Approve
|
||||||
</el-button>
|
</el-button>
|
||||||
</span>
|
</span>
|
||||||
</template>
|
</template>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
<selectUser ref="select"
|
<selectUser ref="select" @callback="getTableData"></selectUser>
|
||||||
@callback="getTableData"></selectUser>
|
|
||||||
</el-config-provider>
|
</el-config-provider>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -724,35 +568,42 @@ const getValue = (key) => {
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
.demo-tabs > .el-tabs__content {
|
.demo-tabs>.el-tabs__content {
|
||||||
padding: 0px;
|
padding: 0px;
|
||||||
color: #6b778c;
|
color: #6b778c;
|
||||||
font-size: 32px;
|
font-size: 32px;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
|
|
||||||
.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 {
|
.mt15 {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: end;
|
justify-content: end;
|
||||||
float: right;
|
float: right;
|
||||||
margin-bottom: 15px;
|
margin-bottom: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.latLon-div {
|
.latLon-div {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 60%;
|
top: 60%;
|
||||||
right: 5%;
|
right: 5%;
|
||||||
z-index: 1000;
|
z-index: 1000;
|
||||||
color: white;
|
color: white;
|
||||||
font-size: 15px;
|
font-size: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-select {
|
||||||
|
.el-input__wrapper {
|
||||||
|
height: 40px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -86,7 +86,7 @@ const batchDelete = () => {
|
||||||
type: 'warning',
|
type: 'warning',
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
let id = state.multipleSelection.map(item => ({ id: item.id, chiefId: null }))
|
let id = state.multipleSelection.map(item => ({ id: item.disasterId, chiefId: null }))
|
||||||
removeManage(id).then(res => {
|
removeManage(id).then(res => {
|
||||||
getTableData();
|
getTableData();
|
||||||
ElMessage.success('delete successfully');
|
ElMessage.success('delete successfully');
|
||||||
|
@ -101,7 +101,7 @@ const deleteDisaster = (row) => {
|
||||||
type: 'warning',
|
type: 'warning',
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
let delData = [{ "id": row.id, "cheif": null }]
|
let delData = [{ "id": row.disasterId, "cheif": null }]
|
||||||
removeManage(delData).then(res => {
|
removeManage(delData).then(res => {
|
||||||
getTableData();
|
getTableData();
|
||||||
ElMessage.success('Deleted successfully');
|
ElMessage.success('Deleted successfully');
|
||||||
|
|
Loading…
Reference in New Issue