Merge branch 'main' of http://47.92.168.204:3000/VoRDM/vordm-admin
This commit is contained in:
commit
624fa36db7
File diff suppressed because it is too large
Load Diff
|
@ -13,6 +13,7 @@
|
||||||
"@element-plus/icons-vue": "^2.1.0",
|
"@element-plus/icons-vue": "^2.1.0",
|
||||||
"@geoman-io/leaflet-geoman-free": "^2.14.2",
|
"@geoman-io/leaflet-geoman-free": "^2.14.2",
|
||||||
"@mapbox/leaflet-omnivore": "^0.3.4",
|
"@mapbox/leaflet-omnivore": "^0.3.4",
|
||||||
|
"@turf/turf": "^6.5.0",
|
||||||
"@vueup/vue-quill": "^1.0.0-alpha.40",
|
"@vueup/vue-quill": "^1.0.0-alpha.40",
|
||||||
"axios": "^1.3.4",
|
"axios": "^1.3.4",
|
||||||
"echarts": "^5.4.2",
|
"echarts": "^5.4.2",
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
import request, {crawlModule ,moduleName } from '/@/utils/request';
|
import request, { crawlModule, moduleName } from '/@/utils/request';
|
||||||
|
|
||||||
|
export const geoserve = (vordm_id, link, disaster_id, name) => {
|
||||||
|
|
||||||
export const geoserve = (vordm_id , link , disaster_id, name) =>{
|
|
||||||
return request({
|
return request({
|
||||||
url: '/api/' + crawlModule + '/geoserve/pushing',
|
url: '/api/' + crawlModule + '/geoserve/pushing',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
|
@ -10,59 +8,61 @@ export const geoserve = (vordm_id , link , disaster_id, name) =>{
|
||||||
vordm_id,
|
vordm_id,
|
||||||
link,
|
link,
|
||||||
disaster_id,
|
disaster_id,
|
||||||
name
|
name,
|
||||||
}
|
},
|
||||||
});
|
});
|
||||||
}
|
};
|
||||||
export const news = (disaster_id, keywords, page,isBaidu,id) =>{
|
export const news = (disaster_id, keywords, page, isBaidu, id) => {
|
||||||
return request({
|
return request({
|
||||||
url: '/api/' + crawlModule + '/news/'+(isBaidu?"baidu":"bing"),
|
url: '/api/' + crawlModule + '/news/' + (isBaidu ? 'baidu' : 'bing'),
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: {
|
data: {
|
||||||
disaster_id,
|
disaster_id,
|
||||||
keywords,
|
keywords,
|
||||||
page,
|
page,
|
||||||
id
|
id,
|
||||||
}
|
},
|
||||||
});
|
});
|
||||||
}
|
};
|
||||||
export const rs = (stime, etime, disaster_id,ranges ,type =1) =>{
|
export const rs = (stime, etime, disaster_id, ranges, type = 1) => {
|
||||||
let method = 'sentinel';
|
let method = 'sentinel';
|
||||||
if(type == 1){
|
if (type == 1) {
|
||||||
method = 'sentinel';
|
method = 'sentinel';
|
||||||
}else if(type == 2){
|
} else if (type == 2) {
|
||||||
method = 'landsat';
|
method = 'landsat';
|
||||||
}else {
|
} else {
|
||||||
method = 'searchone';
|
method = 'searchone';
|
||||||
}
|
}
|
||||||
|
|
||||||
return request({
|
return request({
|
||||||
url: '/api/' + crawlModule + '/news/'+method,
|
url: '/api/' + crawlModule + '/rs/' + method,
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: {
|
data: {
|
||||||
stime, etime, disaster_id,ranges
|
stime,
|
||||||
}
|
etime,
|
||||||
|
disaster_id,
|
||||||
|
ranges,
|
||||||
|
},
|
||||||
});
|
});
|
||||||
}
|
};
|
||||||
export const submit = (row) => {
|
export const submit = (row) => {
|
||||||
return request({
|
return request({
|
||||||
url: '/api/'+moduleName+'/ui/crawlInfo/submit',
|
url: '/api/' + moduleName + '/ui/crawlInfo/submit',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: row
|
data: row,
|
||||||
})
|
});
|
||||||
}
|
};
|
||||||
export const getList = (current, size, param) => {
|
export const getList = (current, size, param) => {
|
||||||
let params = {
|
let params = {
|
||||||
current,
|
current,
|
||||||
size,
|
size,
|
||||||
};
|
};
|
||||||
if(param){
|
if (param) {
|
||||||
params = Object.assign(params, param);
|
params = Object.assign(params, param);
|
||||||
}
|
}
|
||||||
return request({
|
return request({
|
||||||
url: '/api/'+moduleName+'/ui/crawlInfo/list',
|
url: '/api/' + moduleName + '/ui/crawlInfo/list',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params: params
|
params: params,
|
||||||
});
|
});
|
||||||
|
};
|
||||||
}
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
class="container"></div>
|
class="container"></div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { ref, onMounted } from 'vue'
|
import { ref, onMounted } from 'vue'
|
||||||
import WKT from 'terraformer-wkt-parser'
|
import WKT from 'terraformer-wkt-parser'
|
||||||
|
|
||||||
|
@ -22,6 +22,7 @@ let homeMap = null
|
||||||
let text = null
|
let text = null
|
||||||
let featureLayerG_area = null
|
let featureLayerG_area = null
|
||||||
let featureLayerG_point = null
|
let featureLayerG_point = null
|
||||||
|
let layerRectangle = null
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
homeMap = L.map(map.value, {
|
homeMap = L.map(map.value, {
|
||||||
|
@ -419,10 +420,29 @@ const mapOperations = {
|
||||||
text.enable()
|
text.enable()
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
drawRectangle: () => {
|
||||||
|
if (layerRectangle != null) {
|
||||||
|
homeMap.removeLayer(layerRectangle)
|
||||||
|
layerRectangle = null
|
||||||
|
}
|
||||||
|
homeMap.pm.enableDraw('Rectangle', {
|
||||||
|
snappable: true,
|
||||||
|
snapDistance: 20,
|
||||||
|
});
|
||||||
|
homeMap.on('pm:create', (e) => {
|
||||||
|
L.PM.reInitLayer(e.layer);
|
||||||
|
layerRectangle = e.layer
|
||||||
|
});
|
||||||
|
},
|
||||||
|
deleteRectangle: () => {
|
||||||
|
homeMap.removeLayer(layerRectangle)
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
//omnivore.wkt.parse('POINT(-80 0)').addTo(homeMap);
|
//omnivore.wkt.parse('POINT(-80 0)').addTo(homeMap);
|
||||||
|
|
||||||
defineExpose({
|
defineExpose({
|
||||||
mapOperations,
|
mapOperations,
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
<el-sub-menu :index="val.path" v-if="val.children && val.children.length > 0" :key="val.path">
|
<el-sub-menu :index="val.path" v-if="val.children && val.children.length > 0" :key="val.path">
|
||||||
<template #title>
|
<template #title>
|
||||||
<SvgIcon :name="val.meta.icon" />
|
<SvgIcon :name="val.meta.icon" />
|
||||||
<span v-text="useTranslateStore.translate_control===1?val.meta.title :val.meta.zh"></span>
|
<span v-text="val.meta.title"></span>
|
||||||
</template>
|
</template>
|
||||||
<SubItem :chil="val.children" />
|
<SubItem :chil="val.children" />
|
||||||
</el-sub-menu>
|
</el-sub-menu>
|
||||||
|
@ -20,7 +20,7 @@
|
||||||
<el-menu-item :index="val.path" :key="val.path">
|
<el-menu-item :index="val.path" :key="val.path">
|
||||||
<SvgIcon :name="val.meta.icon" />
|
<SvgIcon :name="val.meta.icon" />
|
||||||
<template #title v-if="!val.meta.isLink || (val.meta.isLink && val.meta.isIframe)">
|
<template #title v-if="!val.meta.isLink || (val.meta.isLink && val.meta.isIframe)">
|
||||||
<span v-text="useTranslateStore.translate_control===1?val.meta.title :val.meta.zh"></span>
|
<span v-text="val.meta.title "></span>
|
||||||
</template>
|
</template>
|
||||||
<template #title v-else>
|
<template #title v-else>
|
||||||
<a class="w100" @click.prevent="onALinkClick(val)">{{ val.meta.title }}</a>
|
<a class="w100" @click.prevent="onALinkClick(val)">{{ val.meta.title }}</a>
|
||||||
|
|
|
@ -181,7 +181,7 @@ export const dynamicRoutes = [
|
||||||
name: 'otherData',
|
name: 'otherData',
|
||||||
component: () => import('/@/views/dataService/otherData/index.vue'),
|
component: () => import('/@/views/dataService/otherData/index.vue'),
|
||||||
meta: {
|
meta: {
|
||||||
title: 'other data service',
|
title: 'Other data service',
|
||||||
isLink: '',
|
isLink: '',
|
||||||
isHide: false,
|
isHide: false,
|
||||||
isKeepAlive: true,
|
isKeepAlive: true,
|
||||||
|
@ -197,7 +197,7 @@ export const dynamicRoutes = [
|
||||||
name: 'visualData',
|
name: 'visualData',
|
||||||
component: () => import('/@/views/dataService/visualData/index.vue'),
|
component: () => import('/@/views/dataService/visualData/index.vue'),
|
||||||
meta: {
|
meta: {
|
||||||
title: 'visual data service',
|
title: 'Visual data service',
|
||||||
isLink: '',
|
isLink: '',
|
||||||
isHide: false,
|
isHide: false,
|
||||||
isKeepAlive: true,
|
isKeepAlive: true,
|
||||||
|
@ -213,7 +213,7 @@ export const dynamicRoutes = [
|
||||||
name: 'pictureInfo',
|
name: 'pictureInfo',
|
||||||
component: () => import('/@/views/dataService/pictureInfo/index.vue'),
|
component: () => import('/@/views/dataService/pictureInfo/index.vue'),
|
||||||
meta: {
|
meta: {
|
||||||
title: 'picture info service',
|
title: 'Picture info service',
|
||||||
isLink: '',
|
isLink: '',
|
||||||
isHide: false,
|
isHide: false,
|
||||||
isKeepAlive: true,
|
isKeepAlive: true,
|
||||||
|
@ -280,7 +280,7 @@ export const dynamicRoutes = [
|
||||||
name: 'systemDic',
|
name: 'systemDic',
|
||||||
component: () => import('/@/views/system/dic/index.vue'),
|
component: () => import('/@/views/system/dic/index.vue'),
|
||||||
meta: {
|
meta: {
|
||||||
title: '字典管理',
|
title: 'Dictionary management',
|
||||||
isLink: '',
|
isLink: '',
|
||||||
isHide: false,
|
isHide: false,
|
||||||
isKeepAlive: true,
|
isKeepAlive: true,
|
||||||
|
|
|
@ -56,6 +56,7 @@ export const useVariableStore = defineStore(Names.TEST, {
|
||||||
// Data_upload_agency:""
|
// Data_upload_agency:""
|
||||||
// }
|
// }
|
||||||
],
|
],
|
||||||
|
// 存储wkt格式数据
|
||||||
layerGroupPoint:null,
|
layerGroupPoint:null,
|
||||||
layerGroupPoly:null,
|
layerGroupPoly:null,
|
||||||
polygoncontrol:null,
|
polygoncontrol:null,
|
||||||
|
|
|
@ -4,8 +4,8 @@ import qs from 'qs';
|
||||||
import { Session } from '/@/utils/storage';
|
import { Session } from '/@/utils/storage';
|
||||||
|
|
||||||
// export const moduleName = 'zqq-biz-vordm';
|
// export const moduleName = 'zqq-biz-vordm';
|
||||||
export const moduleName = 'biz-vordm';
|
export const moduleName = 'glj-biz-vordm';
|
||||||
export const crawlModule = "vordm-crawl";
|
export const crawlModule = 'vordm-crawl';
|
||||||
// 配置新建一个 axios 实例
|
// 配置新建一个 axios 实例
|
||||||
const service = axios.create({
|
const service = axios.create({
|
||||||
//baseURL: import.meta.env.VITE_API_URL,
|
//baseURL: import.meta.env.VITE_API_URL,
|
||||||
|
@ -53,7 +53,6 @@ service.interceptors.response.use(
|
||||||
return Promise.reject(service.interceptors.response);
|
return Promise.reject(service.interceptors.response);
|
||||||
} else {
|
} else {
|
||||||
return res.data || res;
|
return res.data || res;
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
(error) => {
|
(error) => {
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
<template>
|
<template>
|
||||||
<el-dialog title="Collection robot" v-model="state.isShowDialog" width="700px">
|
<el-dialog title="Collection robot" v-model="state.isShowDialog" width="1100px">
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-col :span="3" 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="12">
|
||||||
<el-form-item label="Confirm keywords" style="text-align:center;">
|
<el-form-item label="Confirm keywords" style="text-align:center;">
|
||||||
<el-input v-model="state.baidu.keywords">
|
<el-input v-model="state.baidu.keywords">
|
||||||
</el-input>
|
</el-input>
|
||||||
|
@ -15,7 +15,7 @@
|
||||||
<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>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="4" style="text-align:center ;">
|
<el-col :span="3" style="text-align:center ;">
|
||||||
<el-icon :size="40" style="cursor:pointer ;" :title="state.baidu.status==0?'Waiting in queue……':'start'" :color="state.baidu.status==0?'#4f4':'blue'" @click="state.baidu.status==0?confirmBox('baidu'):start('baidu')" v-if="state.baiduOption.buttonIs&&(state.baidu.status==0||!state.baidu.status)">
|
<el-icon :size="40" style="cursor:pointer ;" :title="state.baidu.status==0?'Waiting in queue……':'start'" :color="state.baidu.status==0?'#4f4':'blue'" @click="state.baidu.status==0?confirmBox('baidu'):start('baidu')" v-if="state.baiduOption.buttonIs&&(state.baidu.status==0||!state.baidu.status)">
|
||||||
<svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" data-v-ea893728=""><path fill="currentColor" d="m249.6 417.088 319.744 43.072 39.168 310.272L845.12 178.88 249.6 417.088zm-129.024 47.168a32 32 0 0 1-7.68-61.44l777.792-311.04a32 32 0 0 1 41.6 41.6l-310.336 775.68a32 32 0 0 1-61.44-7.808L512 516.992l-391.424-52.736z"></path></svg>
|
<svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" data-v-ea893728=""><path fill="currentColor" d="m249.6 417.088 319.744 43.072 39.168 310.272L845.12 178.88 249.6 417.088zm-129.024 47.168a32 32 0 0 1-7.68-61.44l777.792-311.04a32 32 0 0 1 41.6 41.6l-310.336 775.68a32 32 0 0 1-61.44-7.808L512 516.992l-391.424-52.736z"></path></svg>
|
||||||
</el-icon>
|
</el-icon>
|
||||||
|
@ -33,7 +33,7 @@
|
||||||
<el-col :span="3" 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="12" >
|
||||||
<el-form-item label="Confirm keywords" style="text-align:center ;">
|
<el-form-item label="Confirm keywords" style="text-align:center ;">
|
||||||
<el-input v-model="state.bing.keywords"></el-input>
|
<el-input v-model="state.bing.keywords"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
@ -43,7 +43,7 @@
|
||||||
<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>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="4" style="text-align:center ;">
|
<el-col :span="3" style="text-align:center ;">
|
||||||
<el-icon :size="40" style="cursor:pointer ;" :title="state.bing.status==0?'Waiting in queue……':'start'" :color="state.bing.status==0?'#4f4':'blue'" @click="state.bing.status==0?confirmBox('bing'):start('bing')" v-if="state.bingOption.buttonIs&&(state.bing.status==0||!state.bing.status)">
|
<el-icon :size="40" style="cursor:pointer ;" :title="state.bing.status==0?'Waiting in queue……':'start'" :color="state.bing.status==0?'#4f4':'blue'" @click="state.bing.status==0?confirmBox('bing'):start('bing')" v-if="state.bingOption.buttonIs&&(state.bing.status==0||!state.bing.status)">
|
||||||
<svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" data-v-ea893728=""><path fill="currentColor" d="m249.6 417.088 319.744 43.072 39.168 310.272L845.12 178.88 249.6 417.088zm-129.024 47.168a32 32 0 0 1-7.68-61.44l777.792-311.04a32 32 0 0 1 41.6 41.6l-310.336 775.68a32 32 0 0 1-61.44-7.808L512 516.992l-391.424-52.736z"></path></svg>
|
<svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" data-v-ea893728=""><path fill="currentColor" d="m249.6 417.088 319.744 43.072 39.168 310.272L845.12 178.88 249.6 417.088zm-129.024 47.168a32 32 0 0 1-7.68-61.44l777.792-311.04a32 32 0 0 1 41.6 41.6l-310.336 775.68a32 32 0 0 1-61.44-7.808L512 516.992l-391.424-52.736z"></path></svg>
|
||||||
</el-icon>
|
</el-icon>
|
||||||
|
@ -119,6 +119,8 @@ const confirmBox = (text)=>{
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
const openDialog = (row) => {
|
const openDialog = (row) => {
|
||||||
|
state.baidu={};
|
||||||
|
state.bing={};
|
||||||
state.data = row;
|
state.data = row;
|
||||||
state.baidu.keywords = row.disasterKeyword;
|
state.baidu.keywords = row.disasterKeyword;
|
||||||
state.baidu.disaster_id = row.id
|
state.baidu.disaster_id = row.id
|
||||||
|
@ -136,7 +138,7 @@ const getDate = ()=>{
|
||||||
state.baidu = element;
|
state.baidu = element;
|
||||||
}
|
}
|
||||||
if(element.type == 1){
|
if(element.type == 1){
|
||||||
state.baidu = element;
|
state.bing = element;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="disasterKeyword" label="Disaster keyword" show-overflow-tooltip></el-table-column>
|
<el-table-column prop="disasterKeyword" label="Disaster keyword" show-overflow-tooltip></el-table-column>
|
||||||
<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-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="startBot(scope.row)">start</el-button>
|
<el-button size="small" text type="primary" @click="startBot(scope.row)">start</el-button>
|
||||||
|
@ -33,45 +33,45 @@
|
||||||
<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" 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-form-item label="type" label-width="100px">
|
<el-form-item label="Type" label-width="100px">
|
||||||
<el-select v-model="state.searchName" placeholder="Please select data type" style="max-width: 200px"
|
<el-select v-model="state.searchName" placeholder="Please select data type" style="max-width: 200px"
|
||||||
size="default" clearable @change="getTableData(); state.queryTitle = ''">
|
size="default" clearable @change="getTableData(); state.queryTitle = ''">
|
||||||
<el-option value="1" label="news"></el-option>
|
<el-option value="1" label="News"></el-option>
|
||||||
<el-option value="2" label="socialMedia"></el-option>
|
<el-option value="2" label="SocialMedia"></el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="stateus" label-width="100px">
|
<el-form-item label=" Review status" label-width="100px">
|
||||||
<el-select v-model=" state.srarchType " placeholder="Please select data type" style="max-width: 200px"
|
<el-select v-model=" state.srarchType " placeholder="Please select data type" style="max-width: 200px"
|
||||||
size="default" clearable>
|
size="default" clearable>
|
||||||
<el-option value="0" label="No review"></el-option>
|
<el-option value="0" label="Awaiting approval"></el-option>
|
||||||
<el-option value="1" label="reserve"></el-option>
|
<el-option value="1" label="Approved"></el-option>
|
||||||
<el-option value="2" label="not retain"></el-option>
|
<el-option value="2" label="Rejected"></el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="title" label-width="100px" v-if=" state.searchName == '1' ">
|
<el-form-item label="Title" label-width="100px" v-if=" state.searchName == '1' ">
|
||||||
<el-input v-model=" state.queryTitle " placeholder="Please enter a title"></el-input>
|
<el-input v-model=" state.queryTitle " placeholder="Please enter a title"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-button size="default" type="primary" class="ml10" @click=" getTableData ">
|
<el-button size="default" type="primary" class="ml10" @click=" getTableData ">
|
||||||
<el-icon>
|
<el-icon>
|
||||||
<ele-Search />
|
<ele-Search />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
search
|
Search
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button size="default" type="success" class="ml10" @click=" openDialog ">
|
<el-button size="default" type="success" class="ml10" @click=" openDialog ">
|
||||||
<el-icon>
|
<el-icon>
|
||||||
<ele-Upload />
|
<ele-Upload />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
review
|
Batch operation
|
||||||
</el-button>
|
</el-button>
|
||||||
</div>
|
</div>
|
||||||
<el-table :data=" state.tableData.data " v-loading=" state.tableData.loading "
|
<el-table :data=" state.tableData.data " 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" 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"
|
<el-table-column v-if=" state.searchName == '1' " prop="title" label="Title"
|
||||||
show-overflow-tooltip></el-table-column>
|
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 ">
|
||||||
<el-tag type="info" v-if=" state.searchName == '1' && scope.row.type == 0 ">baidu(中文)</el-tag>
|
<el-tag type="info" v-if=" state.searchName == '1' && scope.row.type == 0 ">baidu(中文)</el-tag>
|
||||||
<el-tag type="info" v-if=" state.searchName == '1' && scope.row.type == 1 ">bing</el-tag>
|
<el-tag type="info" v-if=" state.searchName == '1' && scope.row.type == 1 ">bing</el-tag>
|
||||||
|
@ -79,7 +79,7 @@
|
||||||
<el-tag type="info" v-if=" state.searchName == '2' && scope.row.type == 1 ">weibo</el-tag>
|
<el-tag type="info" v-if=" state.searchName == '2' && scope.row.type == 1 ">weibo</el-tag>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="content" label="link" show-overflow-tooltip>
|
<el-table-column prop="content" label="Link" show-overflow-tooltip>
|
||||||
<template #default=" scope ">
|
<template #default=" scope ">
|
||||||
<a :href=" scope.row.link " target="_blank">goto link</a>
|
<a :href=" scope.row.link " target="_blank">goto link</a>
|
||||||
</template>
|
</template>
|
||||||
|
@ -96,11 +96,11 @@
|
||||||
<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 "
|
<el-button size="small" text type="info" v-if=" scope.row.status == 0 "
|
||||||
@click=" openDialog(scope.row, true) ">review</el-button>
|
@click=" openDialog(scope.row, true) ">Awaiting approval</el-button>
|
||||||
<el-button size="small" text type="success" v-if=" scope.row.status == 1 "
|
<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, false) ">Approved</el-button>
|
||||||
<el-button size="small" text type="danger" v-if=" scope.row.status == 2 "
|
<el-button size="small" text type="danger" v-if=" scope.row.status == 2 "
|
||||||
@click=" openDialog(scope.row, false) ">review</el-button>
|
@click=" openDialog(scope.row, false) ">Rejected</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
|
|
@ -8,8 +8,8 @@
|
||||||
highlight-current-row @row-click="tableClick">
|
highlight-current-row @row-click="tableClick">
|
||||||
<el-table-column type="index" label="ID" width="50" />
|
<el-table-column type="index" label="ID" width="50" />
|
||||||
<el-table-column prop="disasterType" label="Disaster type" show-overflow-tooltip></el-table-column>
|
<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="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-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="3" :page-sizes="[10, 20, 30]"
|
class="mt15" :pager-count="3" :page-sizes="[10, 20, 30]"
|
||||||
|
@ -22,7 +22,7 @@
|
||||||
<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" 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-select v-model="state.searchName" placeholder="please select data type" style="max-width: 200px"
|
<el-select v-model="state.searchName" placeholder="Please select data type" style="max-width: 200px"
|
||||||
size="default" clearable>
|
size="default" clearable>
|
||||||
<el-option value="0" label="basic data"></el-option>
|
<el-option value="0" label="basic data"></el-option>
|
||||||
<el-option value="1" label="responded report"></el-option>
|
<el-option value="1" label="responded report"></el-option>
|
||||||
|
@ -32,26 +32,26 @@
|
||||||
<el-icon>
|
<el-icon>
|
||||||
<ele-Search />
|
<ele-Search />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
search
|
Search
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button size="default" type="success" class="ml10" @click="uploadData">
|
<el-button size="default" type="success" class="ml10" @click="uploadData">
|
||||||
<el-icon>
|
<el-icon>
|
||||||
<ele-Upload />
|
<ele-Upload />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
upload
|
Add
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button size="default" type="danger" class="ml10" @click="batchDel">
|
<el-button size="default" type="danger" class="ml10" @click="batchDel">
|
||||||
<el-icon>
|
<el-icon>
|
||||||
<ele-Delete />
|
<ele-Delete />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
batch delete
|
Delete
|
||||||
</el-button>
|
</el-button>
|
||||||
</div>
|
</div>
|
||||||
<el-table :data="state.tableData.data" v-loading="state.tableData.loading"
|
<el-table :data="state.tableData.data" 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" label="ID" width="50" />
|
<el-table-column type="index" label="ID" width="50" />
|
||||||
<el-table-column prop="uploaderName" label="uploader Name" show-overflow-tooltip></el-table-column>
|
<el-table-column prop="uploaderName" label="Uploader name" show-overflow-tooltip></el-table-column>
|
||||||
<el-table-column prop="sourceOrganization" label="Organization" show-overflow-tooltip></el-table-column>
|
<el-table-column prop="sourceOrganization" label="Organization" show-overflow-tooltip></el-table-column>
|
||||||
<el-table-column prop="title" label="Professional title" show-overflow-tooltip
|
<el-table-column prop="title" label="Professional title" show-overflow-tooltip
|
||||||
width="150"></el-table-column>
|
width="150"></el-table-column>
|
||||||
|
|
|
@ -8,8 +8,8 @@
|
||||||
highlight-current-row @row-click="tableClick">
|
highlight-current-row @row-click="tableClick">
|
||||||
<el-table-column type="index" label="ID" width="50" />
|
<el-table-column type="index" label="ID" width="50" />
|
||||||
<el-table-column prop="disasterType" label="Disaster type" show-overflow-tooltip></el-table-column>
|
<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="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-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="3" :page-sizes="[10, 20, 30]"
|
class="mt15" :pager-count="3" :page-sizes="[10, 20, 30]"
|
||||||
|
@ -34,13 +34,13 @@
|
||||||
<el-icon>
|
<el-icon>
|
||||||
<ele-Upload />
|
<ele-Upload />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
upload
|
Upload
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button size="default" type="danger" class="ml10" @click="batchDel">
|
<el-button size="default" type="danger" class="ml10" @click="batchDel">
|
||||||
<el-icon>
|
<el-icon>
|
||||||
<ele-Delete />
|
<ele-Delete />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
batch delete
|
Batch delete
|
||||||
</el-button>
|
</el-button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -48,12 +48,12 @@
|
||||||
@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 prop="name" label="name" show-overflow-tooltip>
|
<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" label="image" show-overflow-tooltip>
|
<el-table-column prop="link" label="Image" show-overflow-tooltip>
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-popover trigger="hover" placement="right" popper-class="max-h-300px overflow-auto" :width="330">
|
<el-popover trigger="hover" placement="right" popper-class="max-h-300px overflow-auto" :width="330">
|
||||||
<!-- table中原本显示的图片 -->
|
<!-- table中原本显示的图片 -->
|
||||||
|
|
|
@ -16,10 +16,10 @@
|
||||||
label="Disaster type"
|
label="Disaster type"
|
||||||
show-overflow-tooltip></el-table-column>
|
show-overflow-tooltip></el-table-column>
|
||||||
<el-table-column prop="disasterCountry"
|
<el-table-column prop="disasterCountry"
|
||||||
label="disaster country"
|
label="Disaster country"
|
||||||
show-overflow-tooltip></el-table-column>
|
show-overflow-tooltip></el-table-column>
|
||||||
<el-table-column prop="disasterTime"
|
<el-table-column prop="disasterTime"
|
||||||
label="disaster time"
|
label="Disaster time"
|
||||||
show-overflow-tooltip></el-table-column>
|
show-overflow-tooltip></el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
<el-pagination @size-change="onHandleDisasterSizeChange"
|
<el-pagination @size-change="onHandleDisasterSizeChange"
|
||||||
|
|
|
@ -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="3">
|
<el-col :span="5">
|
||||||
<span class="demonstration">Start time</span>
|
<span class="demonstration">Start time</span>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="19">
|
<el-col :span="19">
|
||||||
|
@ -15,11 +15,12 @@
|
||||||
v-model="state.startTime"
|
v-model="state.startTime"
|
||||||
type="datetime"
|
type="datetime"
|
||||||
placeholder="Select start time"
|
placeholder="Select start time"
|
||||||
:shortcuts="shortcuts" />
|
value-format="YYYY-MM-DD HH:mm:ss"
|
||||||
|
:shortcuts="state.shortcuts" />
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-row class="block">
|
<el-row class="block">
|
||||||
<el-col :span="3">
|
<el-col :span="5">
|
||||||
<span class="demonstration">End time</span>
|
<span class="demonstration">End time</span>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="19">
|
<el-col :span="19">
|
||||||
|
@ -27,7 +28,8 @@
|
||||||
v-model="state.endTime"
|
v-model="state.endTime"
|
||||||
type="datetime"
|
type="datetime"
|
||||||
placeholder="Select end time"
|
placeholder="Select end time"
|
||||||
:shortcuts="shortcuts" />
|
value-format="YYYY-MM-DD HH:mm:ss"
|
||||||
|
:shortcuts="state.shortcuts" />
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
</el-card>
|
</el-card>
|
||||||
|
@ -82,7 +84,7 @@
|
||||||
<span>Select satellite type</span>
|
<span>Select satellite type</span>
|
||||||
<el-tree-select class="satelliteSelect"
|
<el-tree-select class="satelliteSelect"
|
||||||
v-model="state.satelliteSelected"
|
v-model="state.satelliteSelected"
|
||||||
:data="sensor"
|
:data="state.sensor"
|
||||||
multiple
|
multiple
|
||||||
collapse-tags
|
collapse-tags
|
||||||
collapse-tags-tooltip
|
collapse-tags-tooltip
|
||||||
|
@ -98,7 +100,7 @@
|
||||||
v-model="state.selectID"
|
v-model="state.selectID"
|
||||||
clearable
|
clearable
|
||||||
placeholder="Select VoRDM ID">
|
placeholder="Select VoRDM ID">
|
||||||
<el-option v-for="item in idOptions"
|
<el-option v-for="item in state.idOptions"
|
||||||
:key="item.value"
|
:key="item.value"
|
||||||
:label="item.label"
|
:label="item.label"
|
||||||
:value="item.value" />
|
:value="item.value" />
|
||||||
|
@ -118,19 +120,32 @@
|
||||||
</div>
|
</div>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="16">
|
<el-col :span="16">
|
||||||
<Map id="map"></Map>
|
<Map id="map"
|
||||||
|
ref="map">
|
||||||
|
</Map>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
|
||||||
</el-row>
|
</el-row>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import Map from "/@/components/Map.vue";
|
import Map from "/@/components/Map.vue";
|
||||||
import { ref, reactive } from 'vue';
|
import { ref, reactive, watch } from 'vue';
|
||||||
|
import { rs, submit } from '/@/api/crawl/index';
|
||||||
|
import { useUserInfo } from '/@/stores/userInfo';
|
||||||
|
const userInfo = useUserInfo();
|
||||||
|
|
||||||
// 卫星类型
|
// 初始化数据
|
||||||
const sensor = ref([
|
const map = ref()
|
||||||
|
const state = reactive({
|
||||||
|
startTime: '',
|
||||||
|
endTime: '',
|
||||||
|
addCoord: false,
|
||||||
|
satelliteSelected: [],
|
||||||
|
coordinateList: [],
|
||||||
|
selectID: '',
|
||||||
|
sensor: [
|
||||||
{
|
{
|
||||||
value: 'landsat',
|
value: 'landsat',
|
||||||
label: 'landsat',
|
label: 'landsat',
|
||||||
|
@ -245,43 +260,8 @@ const sensor = ref([
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
])
|
],
|
||||||
|
shortcuts: [
|
||||||
// VoRDM ID
|
|
||||||
const idOptions = [
|
|
||||||
{
|
|
||||||
value: '2023001001',
|
|
||||||
label: '2023001001',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
value: '2023001002',
|
|
||||||
label: '2023001002',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
value: '2023001003',
|
|
||||||
label: '2023001003',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
value: '2023001004',
|
|
||||||
label: '2023001004',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
value: '2023001005',
|
|
||||||
label: '2023001005',
|
|
||||||
},
|
|
||||||
]
|
|
||||||
|
|
||||||
// 初始化数据
|
|
||||||
const state = reactive({
|
|
||||||
startTime: '',
|
|
||||||
endTime: '',
|
|
||||||
addCoord: false,
|
|
||||||
satelliteSelected: [],
|
|
||||||
coordinateList: [],
|
|
||||||
selectID: '',
|
|
||||||
})
|
|
||||||
|
|
||||||
const shortcuts = [
|
|
||||||
{
|
{
|
||||||
text: '1 month ago',
|
text: '1 month ago',
|
||||||
value: () => {
|
value: () => {
|
||||||
|
@ -306,41 +286,163 @@ const shortcuts = [
|
||||||
return date
|
return date
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
]
|
],
|
||||||
|
idOptions: [{
|
||||||
|
value: '1',
|
||||||
|
label: '1',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: '2',
|
||||||
|
label: '2',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: '3',
|
||||||
|
label: '3',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: '4',
|
||||||
|
label: '4',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: '5',
|
||||||
|
label: '5',
|
||||||
|
}],
|
||||||
|
layerInfo: null,
|
||||||
|
lat: '',
|
||||||
|
lon: '',
|
||||||
|
disLat: '',
|
||||||
|
disLon: '',
|
||||||
|
})
|
||||||
|
|
||||||
|
const onMapClick = (e) => {
|
||||||
|
state.lat = e.latlng.lat.toFixed(3);
|
||||||
|
state.lon = e.latlng.lng.toFixed(3);
|
||||||
|
state.coordinateList.push({
|
||||||
|
Lat: state.lat,
|
||||||
|
Lng: state.lon
|
||||||
|
})
|
||||||
|
// changeLatLon(e)
|
||||||
|
}
|
||||||
|
|
||||||
|
const changeLatLon = (e) => {
|
||||||
|
state.disLat = e.latlng.lat.toFixed(3);
|
||||||
|
state.disLon = e.latlng.lng.toFixed(3);
|
||||||
|
// state.lon = state.lon % 360;
|
||||||
|
// if (state.lon < 0) {
|
||||||
|
// state.lon = state.lon + 360;
|
||||||
|
// }
|
||||||
|
// state.lon = state.lon.toFixed(3);
|
||||||
|
if (state.disLat < 0) {
|
||||||
|
state.disLat = String(Math.abs(state.disLat)) + "°S"
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
state.disLat = String(state.disLat) + "°N"
|
||||||
|
}
|
||||||
|
|
||||||
|
if (state.disLon <= 180 && state.disLon >= 0) {
|
||||||
|
state.disLon = String(Math.abs(state.disLon)) + "°E"
|
||||||
|
}
|
||||||
|
else if (state.disLon > 180 && state.disLon <= 360) {
|
||||||
|
state.disLon = String((360 - state.disLon).toFixed(3)) + "°W"
|
||||||
|
}
|
||||||
|
else if (state.disLon < 0) {
|
||||||
|
let n = Math.floor(state.disLon / 360)
|
||||||
|
state.disLon = (state.disLon - n * 360).toFixed(3)
|
||||||
|
if (state.disLon <= 180 && state.disLon >= 0) {
|
||||||
|
state.disLon = String(Math.abs(state.disLon)) + "°E"
|
||||||
|
}
|
||||||
|
else if (state.disLon > 180 && state.disLon <= 360) {
|
||||||
|
state.disLon = String((360 - state.disLon).toFixed(3)) + "°W"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (state.disLon > 360) {
|
||||||
|
let n = Math.floor(state.disLon / 360)
|
||||||
|
state.disLon = (state.disLon - n * 360).toFixed(3)
|
||||||
|
if (state.disLon <= 180 && state.disLon >= 0) {
|
||||||
|
state.disLon = String(Math.abs(state.disLon)) + "°E"
|
||||||
|
}
|
||||||
|
else if (state.disLon > 180 && state.disLon <= 360) {
|
||||||
|
state.disLon = String((360 - state.disLon).toFixed(3)) + "°W"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// 添加坐标点
|
// 添加坐标点
|
||||||
const addCoordinate = () => {
|
const addCoordinate = () => {
|
||||||
state.addCoord = !state.addCoord;
|
state.addCoord = !state.addCoord;
|
||||||
state.coordinateList = [
|
if (state.addCoord && state.coordinateList.length <= 2) {
|
||||||
{
|
map.value.mapOperations.drawRectangle()
|
||||||
Lat: '43.538'
|
map.value.mapOperations.on("click", onMapClick)
|
||||||
,
|
document.getElementsByClassName('coordinateBtn')[0].innerText = 'Stop';
|
||||||
Lng: '111.530'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
Lat: '36.195'
|
|
||||||
,
|
|
||||||
Lng: '120.761'
|
|
||||||
}
|
}
|
||||||
]
|
else {
|
||||||
|
map.value.mapOperations.off("click", onMapClick)
|
||||||
|
document.getElementsByClassName('coordinateBtn')[0].innerText = 'Add coordinates';
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
// 清空坐标点
|
// 清空坐标点
|
||||||
const clearCoordinate = () => {
|
const clearCoordinate = () => {
|
||||||
state.coordinateList = [];
|
state.coordinateList = [];
|
||||||
state.startTime = '';
|
state.startTime = '';
|
||||||
state.endTime = '';
|
state.endTime = '';
|
||||||
|
state.addCoord = false
|
||||||
|
map.value.mapOperations.deleteRectangle()
|
||||||
|
map.value.mapOperations.off("click", onMapClick)
|
||||||
|
document.getElementsByClassName('coordinateBtn')[0].innerText = 'Add coordinates';
|
||||||
}
|
}
|
||||||
// 编辑坐标点
|
// 编辑坐标点
|
||||||
const editCoordinate = () => {
|
const editCoordinate = () => {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 开始爬虫
|
// 开始爬虫
|
||||||
const startCrawl = () => {
|
const startCrawl = () => {
|
||||||
console.log("start time:", state.startTime)
|
var ranges = state.coordinateList[0].Lat + ' ' + state.coordinateList[0].Lng + ',' + state.coordinateList[1].Lat + ' ' + state.coordinateList[1].Lng
|
||||||
console.log("end time:", state.endTime)
|
var type = null
|
||||||
console.log("addCoord:", state.addCoord)
|
if (state.satelliteSelected[0] == 'landsat') {
|
||||||
console.log("satelliteSelected:", state.satelliteSelected)
|
type = '5'
|
||||||
|
} else if (state.satelliteSelected[0] == 'Sentinel') {
|
||||||
|
type = '6'
|
||||||
|
} else if (state.satelliteSelected[0] == '') {
|
||||||
|
type = '7'
|
||||||
|
}
|
||||||
|
var id = 2
|
||||||
|
|
||||||
|
var param = {
|
||||||
|
"stime": state.startTime,
|
||||||
|
"etime": state.endTime,
|
||||||
|
"disaster_id": state.selectID * 1,
|
||||||
|
"ranges": ranges,
|
||||||
|
"id": id
|
||||||
|
}
|
||||||
|
|
||||||
|
console.log(param);
|
||||||
|
submit(
|
||||||
|
{
|
||||||
|
type: type,
|
||||||
|
manageId: userInfo.userInfos.id,
|
||||||
|
status: 0,
|
||||||
|
disasterId: state.selectID,
|
||||||
|
id: (id ? id : null)
|
||||||
|
}
|
||||||
|
).then(ret => {
|
||||||
|
if (ret == 1042) {
|
||||||
|
ElMessage.error("error")
|
||||||
|
} else {
|
||||||
|
|
||||||
|
rs(param).then(res => {
|
||||||
|
console.log(res);
|
||||||
|
// getData();
|
||||||
|
ElMessage({
|
||||||
|
message: 'Success, Start crawling.',
|
||||||
|
type: 'success',
|
||||||
|
})
|
||||||
|
})
|
||||||
|
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// 清空搜索条件
|
// 清空搜索条件
|
||||||
|
@ -352,9 +454,19 @@ const ClearCondition = () => {
|
||||||
state.coordinateList = []
|
state.coordinateList = []
|
||||||
state.selectID = ''
|
state.selectID = ''
|
||||||
}
|
}
|
||||||
</script>
|
|
||||||
|
|
||||||
<style scoped lang="scss">
|
// 监听
|
||||||
|
watch(
|
||||||
|
() => state.coordinateList.length,
|
||||||
|
(newValue, oldValue) => {
|
||||||
|
if (newValue > 1) {
|
||||||
|
map.value.mapOperations.off("click", onMapClick)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{ immediate: true })
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped lang="scss">
|
||||||
.rsSelect {
|
.rsSelect {
|
||||||
border: 1px solid #040728;
|
border: 1px solid #040728;
|
||||||
height: 52rem;
|
height: 52rem;
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<el-tabs v-model="state.activeName"
|
<el-tabs v-model="state.activeName">
|
||||||
@tab-click="handleClick">
|
|
||||||
<el-tab-pane label="Search condition"
|
<el-tab-pane label="Search condition"
|
||||||
name="first">
|
name="first">
|
||||||
<search-condition></search-condition>
|
<search-condition></search-condition>
|
||||||
|
|
|
@ -8,8 +8,8 @@
|
||||||
highlight-current-row @row-click="tableClick">
|
highlight-current-row @row-click="tableClick">
|
||||||
<el-table-column type="index" label="ID" width="50" />
|
<el-table-column type="index" label="ID" width="50" />
|
||||||
<el-table-column prop="disasterType" label="Disaster type" show-overflow-tooltip></el-table-column>
|
<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="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-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="3" :page-sizes="[10, 20, 30]"
|
class="mt15" :pager-count="3" :page-sizes="[10, 20, 30]"
|
||||||
|
@ -34,24 +34,24 @@
|
||||||
<el-icon>
|
<el-icon>
|
||||||
<ele-Upload />
|
<ele-Upload />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
upload
|
Upload
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button size="default" type="danger" class="ml10" @click="batchDel">
|
<el-button size="default" type="danger" class="ml10" @click="batchDel">
|
||||||
<el-icon>
|
<el-icon>
|
||||||
<ele-Delete />
|
<ele-Delete />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
batch delete
|
Batch delete
|
||||||
</el-button>
|
</el-button>
|
||||||
</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="Word cloud" name="first">
|
||||||
<el-table :data="state.tableData.data" v-loading="state.tableData.loading"
|
<el-table :data="state.tableData.data" 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" label="ID" width="50" />
|
<el-table-column type="index" label="ID" width="50" />
|
||||||
<el-table-column prop="date" label="date" show-overflow-tooltip></el-table-column>
|
<el-table-column prop="date" label="Time" show-overflow-tooltip></el-table-column>
|
||||||
<el-table-column prop="frequency" label="frequency" 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="word" label="Words" 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="primary" @click="editWordCloud(scope.row)">Edit</el-button>
|
<el-button size="small" text type="primary" @click="editWordCloud(scope.row)">Edit</el-button>
|
||||||
|
@ -65,14 +65,14 @@
|
||||||
:total="state.tableData.total">
|
: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 area" name="second">
|
||||||
<el-table :data="state.tableData.data" v-loading="state.tableData.loading"
|
<el-table :data="state.tableData.data" 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" label="ID" width="50" />
|
<el-table-column type="index" label="ID" width="50" />
|
||||||
<el-table-column prop="areaCn" label="area cn" show-overflow-tooltip></el-table-column>
|
<el-table-column prop="areaCn" label="Area cn" show-overflow-tooltip></el-table-column>
|
||||||
<el-table-column prop="areaEn" label="area en" 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="frequency" label="Frequency" 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="primary" @click="editHotspot(scope.row)">Edit</el-button>
|
<el-button size="small" text type="primary" @click="editHotspot(scope.row)">Edit</el-button>
|
||||||
|
|
|
@ -8,13 +8,12 @@
|
||||||
<el-form>
|
<el-form>
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-col :span="4">
|
<el-col :span="4">
|
||||||
<el-form-item label="UserName"><el-input size="default" style="max-width: 180px"
|
<el-form-item label="User name"><el-input size="default" style="max-width: 180px"
|
||||||
v-model="state.query.userName" clearable
|
v-model="state.query.userName" clearable placeholder="Please enter the UserName">
|
||||||
placeholder="Please enter the UserName">
|
|
||||||
</el-input>
|
</el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="4">
|
<!-- <el-col :span="4">
|
||||||
<el-form-item label="checked" style="margin-left: 10px;">
|
<el-form-item label="checked" style="margin-left: 10px;">
|
||||||
<el-select size="default" v-model="state.query.status" clearable
|
<el-select size="default" v-model="state.query.status" clearable
|
||||||
style="max-width: 180px" placeholder="Replied">
|
style="max-width: 180px" placeholder="Replied">
|
||||||
|
@ -23,13 +22,13 @@
|
||||||
<el-option label="Observed" :value="2"></el-option>
|
<el-option label="Observed" :value="2"></el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col> -->
|
||||||
<el-button size="default" type="primary" class="ml15" style="margin-top: 4px ;"
|
<el-button size="default" type="primary" class="ml15" style="margin-top: 4px ;"
|
||||||
@click="initTableData">
|
@click="initTableData">
|
||||||
<el-icon>
|
<el-icon>
|
||||||
<ele-Search />
|
<ele-Search />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
search
|
Search
|
||||||
</el-button>
|
</el-button>
|
||||||
|
|
||||||
</el-row>
|
</el-row>
|
||||||
|
@ -40,43 +39,45 @@
|
||||||
</div>
|
</div>
|
||||||
<el-table :data="state.tableData.data" style="width: 100%" v-loading="state.tableData.loading"
|
<el-table :data="state.tableData.data" style="width: 100%" v-loading="state.tableData.loading"
|
||||||
@selection-change="handleSelectionChange">
|
@selection-change="handleSelectionChange">
|
||||||
<el-table-column prop="userName" label="userName"> </el-table-column>
|
<el-table-column prop="userName" label="User name"> </el-table-column>
|
||||||
<el-table-column prop="email" label="email"> </el-table-column>
|
<el-table-column prop="email" label="Email"> </el-table-column>
|
||||||
<el-table-column prop="organization" label="organization"> </el-table-column>
|
<el-table-column prop="organization" label="Organization"> </el-table-column>
|
||||||
<el-table-column prop="message" label="message"> </el-table-column>
|
<el-table-column prop="message" label="Message"> </el-table-column>
|
||||||
<el-table-column label="Operate" width="180">
|
<el-table-column label="Operate" width="180">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-button :disabled="scope.row.userName === 'admin'" size="small"
|
<!-- <el-button :disabled="scope.row.userName === 'admin'" size="small" v-if="scope.row.status != 2 " text type="primary"
|
||||||
v-if="scope.row.status != 2" text type="primary"
|
@click="onObserved(scope.row)">Observed</el-button> -->
|
||||||
@click="onObserved(scope.row)">Observed</el-button>
|
<el-button :disabled="scope.row.userName === 'admin'" size="small" v-if="scope.row.status != 1 " text type="primary"
|
||||||
<el-button :disabled="scope.row.userName === 'admin'" size="small"
|
|
||||||
v-if="scope.row.status != 1" text type="primary"
|
|
||||||
@click="onOpenEdit(scope.row)">Reply e-mail</el-button>
|
@click="onOpenEdit(scope.row)">Reply e-mail</el-button>
|
||||||
<el-button :disabled="scope.row.userName === 'admin'" size="small"
|
<el-button :disabled="scope.row.userName === 'admin'" size="small" v-if="scope.row.status == 1 " text type="primary"
|
||||||
v-if="scope.row.status == 1" text type="primary"
|
|
||||||
@click="onOpenEdit(scope.row)">Reply Info</el-button>
|
@click="onOpenEdit(scope.row)">Reply Info</el-button>
|
||||||
<el-button :disabled="scope.row.userName === 'admin'" size="small" text type="primary"
|
<el-button :disabled="scope.row.userName === 'admin'" size="small" text type="primary"
|
||||||
@click="onRowDel(scope.row)">Delete</el-button>
|
@click="onRowDel(scope.row)">Delete</el-button>
|
||||||
</template>
|
</template>
|
||||||
</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"
|
||||||
class="mt15" :pager-count="3" :page-sizes="[10, 20, 30]"
|
:pager-count="3" :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"
|
layout="total, sizes, prev, pager, next" :total="state.tableData.total">
|
||||||
:total="state.tableData.total">
|
|
||||||
</el-pagination>
|
</el-pagination>
|
||||||
</el-card>
|
</el-card>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-dialog v-model="state.dialogVisible" title="Send Email" width="60%" :before-close="handleClose">
|
<el-dialog v-model="state.dialogVisible" title="Send Email" width="60%" :before-close="handleClose">
|
||||||
<el-form-item label="Subject:">
|
<el-form-item label="Subject:" >
|
||||||
<el-input v-model="state.email.subject" placeholder="Please enter the Subject"></el-input>
|
<el-input v-model="state.email.subject" placeholder="Please enter the Subject"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- <el-form-item label="Content:" > -->
|
<!-- <el-form-item label="Content:" > -->
|
||||||
|
|
||||||
<QuillEditor ref="myQuillEditor" theme="snow" v-model:content="state.email.text" :options="state.options"
|
<QuillEditor ref="myQuillEditor"
|
||||||
contentType="html" @update:content="setValue()" style="height:500px ;" />
|
theme="snow"
|
||||||
|
v-model:content="state.email.text"
|
||||||
|
:options="state.options"
|
||||||
|
contentType="html"
|
||||||
|
@update:content="setValue()"
|
||||||
|
style="height:500px ;"
|
||||||
|
/>
|
||||||
<!-- </el-form-item> -->
|
<!-- </el-form-item> -->
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<span class="dialog-footer">
|
<span class="dialog-footer">
|
||||||
|
|
|
@ -8,8 +8,8 @@
|
||||||
highlight-current-row @row-click="tableClick">
|
highlight-current-row @row-click="tableClick">
|
||||||
<el-table-column type="index" label="ID" width="50" />
|
<el-table-column type="index" label="ID" width="50" />
|
||||||
<el-table-column prop="disasterType" label="Disaster type" show-overflow-tooltip></el-table-column>
|
<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="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-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="3" :page-sizes="[10, 20, 30]"
|
class="mt15" :pager-count="3" :page-sizes="[10, 20, 30]"
|
||||||
|
@ -26,14 +26,14 @@
|
||||||
<el-icon>
|
<el-icon>
|
||||||
<ele-EditPen />
|
<ele-EditPen />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
batch audit
|
Batch operation
|
||||||
</el-button>
|
</el-button>
|
||||||
</div>
|
</div>
|
||||||
<el-table :data="state.tableData.data" v-loading="state.tableData.loading"
|
<el-table :data="state.tableData.data" 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" label="ID" width="50" />
|
<el-table-column type="index" label="ID" width="50" />
|
||||||
<el-table-column prop="uploaderName" label="uploader Name" show-overflow-tooltip></el-table-column>
|
<el-table-column prop="uploaderName" label="Uploader name" show-overflow-tooltip></el-table-column>
|
||||||
<el-table-column prop="sourceOrganization" label="Organization" show-overflow-tooltip></el-table-column>
|
<el-table-column prop="sourceOrganization" label="Organization" show-overflow-tooltip></el-table-column>
|
||||||
<el-table-column prop="title" label="Professional title" show-overflow-tooltip
|
<el-table-column prop="title" label="Professional title" show-overflow-tooltip
|
||||||
width="150"></el-table-column>
|
width="150"></el-table-column>
|
||||||
|
|
|
@ -13,11 +13,11 @@
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="4">
|
<el-col :span="4">
|
||||||
<el-form-item label="checked" style="margin-left: 10px;">
|
<el-form-item label="review status" style="margin-left: 10px;">
|
||||||
<el-select size="default" v-model="state.query.checked" clearable
|
<el-select size="default" v-model="state.query.checked" clearable
|
||||||
placeholder="Please select">
|
placeholder="Please select">
|
||||||
<el-option label="checked" value="0"></el-option>
|
<el-option label="Approved" value="0"></el-option>
|
||||||
<el-option label="unchecked" value="1"></el-option>
|
<el-option label="Awaiting approval" value="1"></el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
@ -26,7 +26,7 @@
|
||||||
<el-icon>
|
<el-icon>
|
||||||
<ele-Search />
|
<ele-Search />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
search
|
Search
|
||||||
</el-button>
|
</el-button>
|
||||||
|
|
||||||
</el-row>
|
</el-row>
|
||||||
|
@ -47,16 +47,16 @@
|
||||||
<a :href="scope.row.link" target="_blank">{{ scope.row.toolName }}</a>
|
<a :href="scope.row.link" target="_blank">{{ scope.row.toolName }}</a>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="label" label="label" width="140"> </el-table-column>
|
<el-table-column prop="label" label="Label" width="140"> </el-table-column>
|
||||||
<el-table-column prop="introduction" label="introduction"> </el-table-column>
|
<el-table-column prop="introduction" label="Introduction"> </el-table-column>
|
||||||
<el-table-column prop="showName" label="Show Name"></el-table-column>
|
<el-table-column prop="showName" label="Uploader name"></el-table-column>
|
||||||
<el-table-column prop="reviewTime" label="Review Time"></el-table-column>
|
<el-table-column prop="reviewTime" label="Review Time"></el-table-column>
|
||||||
<el-table-column label="Operate" width="140">
|
<el-table-column label="Operate" width="140">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-button :style='scope.row.reviewTime ? "display:none;" : ""' size="small" text
|
<el-button :style='scope.row.reviewTime ? "display:none;" : ""' size="small" text
|
||||||
type="primary" @click="onOpenEdit(scope.row)">Review</el-button>
|
type="primary" @click="onOpenEdit(scope.row)">Approve</el-button>
|
||||||
<el-button :disabled="scope.row.userName === 'admin'" size="small" text type="primary"
|
<el-button :disabled="scope.row.userName === 'admin'" size="small" text type="primary"
|
||||||
@click="onRowDel(scope.row)">Delete</el-button>
|
@click="onRowDel(scope.row)">Reject</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<el-config-provider :locale="en">
|
<el-config-provider :locale="en">
|
||||||
<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" class="demo-tabs" @tab-click="handleClick" style="margin-left: 20px">
|
<el-tabs v-model="activeName" class="demo-tabs" @tab-click="handleClick" style="margin-left: 20px">
|
||||||
<el-tab-pane label="unchecked" name="first">
|
<el-tab-pane label="Unapproved" name="first">
|
||||||
<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 type="index" label="ID" width="50" />
|
<el-table-column type="index" label="ID" width="50" />
|
||||||
<el-table-column prop="username" label="User name" show-overflow-tooltip></el-table-column>
|
<el-table-column prop="username" label="User name" show-overflow-tooltip></el-table-column>
|
||||||
|
@ -27,14 +27,13 @@
|
||||||
<!-- <el-table-column prop="responseTime" label="Response time" show-overflow-tooltip></el-table-column> -->
|
<!-- <el-table-column prop="responseTime" label="Response time" show-overflow-tooltip></el-table-column> -->
|
||||||
<el-table-column prop="respondStatus" label="Response status" show-overflow-tooltip>
|
<el-table-column prop="respondStatus" label="Response status" show-overflow-tooltip>
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-tag type="info" v-if="scope.row.respondStatus === 0">Not reviewed</el-tag>
|
<el-tag type="info" v-if="scope.row.respondStatus === 0">Awaiting approval</el-tag>
|
||||||
<el-tag type="info" v-if="scope.row.respondStatus === 1">Failed</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" 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"
|
<el-button size="small" text type="primary" @click="onOpenEditRole('edit', scope.row)">Approve</el-button>
|
||||||
@click="onOpenEditRole('edit', scope.row)">Review</el-button>
|
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|
||||||
|
@ -58,12 +57,12 @@
|
||||||
</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="3" :page-sizes="[10, 20, 30]" v-model:current-page="state.tableData.param.current" background
|
:pager-count="5" :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"
|
v-model:page-size="state.tableData.param.size" layout="total, sizes, prev, pager, next, jumper"
|
||||||
:total="state.tableData.total">
|
:total="state.tableData.total">
|
||||||
</el-pagination>
|
</el-pagination>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
<el-tab-pane label="checked" name="second">
|
<el-tab-pane label="Approved" 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 type="index" label="ID" width="50" />
|
<el-table-column type="index" label="ID" width="50" />
|
||||||
<el-table-column prop="username" label="User name" show-overflow-tooltip></el-table-column>
|
<el-table-column prop="username" label="User name" show-overflow-tooltip></el-table-column>
|
||||||
|
@ -80,63 +79,112 @@
|
||||||
<!-- <el-table-column prop="Affected country" label="Affected country" show-overflow-tooltip></el-table-column> -->
|
<!-- <el-table-column prop="Affected country" label="Affected country" show-overflow-tooltip></el-table-column> -->
|
||||||
<!-- <el-table-column prop="Longitude" label="Longitude" show-overflow-tooltip></el-table-column>
|
<!-- <el-table-column prop="Longitude" label="Longitude" show-overflow-tooltip></el-table-column>
|
||||||
<el-table-column prop="Latitude" label="Latitude" show-overflow-tooltip></el-table-column> -->
|
<el-table-column prop="Latitude" label="Latitude" show-overflow-tooltip></el-table-column> -->
|
||||||
<el-table-column prop="disasterTime" label="Disaster time" show-overflow-tooltip>
|
<el-table-column prop="disasterTime"
|
||||||
|
label="Disaster time"
|
||||||
|
show-overflow-tooltip>
|
||||||
<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"
|
||||||
|
label="Answer"
|
||||||
|
show-overflow-tooltip></el-table-column>
|
||||||
<!-- <el-table-column prop="responseTime" label="Response time" show-overflow-tooltip></el-table-column> -->
|
<!-- <el-table-column prop="responseTime" label="Response time" show-overflow-tooltip></el-table-column> -->
|
||||||
<!-- <el-table-column prop="Operate" label="Operate" show-overflow-tooltip></el-table-column> -->
|
<!-- <el-table-column prop="Operate" label="Operate" show-overflow-tooltip></el-table-column> -->
|
||||||
<el-table-column prop="respondStatus" label="Response status" show-overflow-tooltip>
|
<el-table-column prop="respondStatus"
|
||||||
|
label="Response status"
|
||||||
|
show-overflow-tooltip>
|
||||||
|
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-tag type="info" v-if="scope.row.respondStatus === 2">Reviewed</el-tag>
|
<el-tag type="info"
|
||||||
<el-tag type="info" v-if="scope.row.respondStatus === 1">Failed</el-tag>
|
v-if="scope.row.respondStatus === 2">Approved</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"
|
||||||
|
label="Operate"
|
||||||
|
show-overflow-tooltip>
|
||||||
|
<template #default="scope">
|
||||||
|
<el-button size="small"
|
||||||
|
text
|
||||||
|
type="primary"
|
||||||
|
@click="onAllocation(scope.row)">Allocation</el-button>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
<el-pagination @size-change="onHandleSizeChange" @current-change="onHandleCurrentChange" class="mt15"
|
<el-pagination @size-change="onHandleSizeChange"
|
||||||
:pager-count="3" :page-sizes="[10, 20, 30]" v-model:current-page="state.tableData.param.current" background
|
@current-change="onHandleCurrentChange"
|
||||||
v-model:page-size="state.tableData.param.size" layout="total, sizes, prev, pager, next"
|
class="mt15"
|
||||||
|
:pager-count="5"
|
||||||
|
: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">
|
: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" title="Review" width="30%" :before-close="handleClose">
|
<el-dialog v-model="state.dialogVisible"
|
||||||
|
title="Approval"
|
||||||
|
width="30%">
|
||||||
<el-container style="margin-top: -2%;margin-bottom: 2%;">
|
<el-container style="margin-top: -2%;margin-bottom: 2%;">
|
||||||
<el-radio v-model="state.radio" label='1' @click="mapEvents('1')">Point</el-radio>
|
<el-radio v-model="state.radio"
|
||||||
<el-radio v-model="state.radio" label='2' @click="mapEvents('2')">Area</el-radio>
|
label='1'
|
||||||
<el-button type="primary" style="margin-left: 5%;" @click="ClearSubmit">Clear</el-button>
|
@click="mapEvents('1')">Point</el-radio>
|
||||||
|
<el-radio v-model="state.radio"
|
||||||
|
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%;" v-if="state.radio === '1' ? true : false">
|
<el-container style="margin-top: 2%;margin-bottom: 2%;"
|
||||||
|
v-if="state.radio==='1'?true:false">
|
||||||
<span style="line-height: 35px;"> Latitude:</span>
|
<span style="line-height: 35px;"> Latitude:</span>
|
||||||
<el-input placeholder="请输入内容" style="height:35px;margin-right: 1%;" v-model="state.dislat"></el-input>
|
<el-input placeholder="wait……"
|
||||||
|
style="height:35px;margin-right: 1%;"
|
||||||
|
v-model="state.dislat"
|
||||||
|
readonly="readonly"> </el-input>
|
||||||
<span style="line-height: 35px;">Longitude:</span>
|
<span style="line-height: 35px;">Longitude:</span>
|
||||||
<el-input placeholder="请输入内容" style="height:35px;"></el-input>
|
<el-input placeholder="wait……"
|
||||||
|
style="height:35px;"
|
||||||
|
v-model="state.dislon"
|
||||||
|
readonly="readonly"></el-input>
|
||||||
</el-container>
|
</el-container>
|
||||||
|
<MapPage style="height:350px ; width:100% ;margin-bottom: 10px;"
|
||||||
<MapPage style="height:350px ; width:100% ;margin-bottom: 10px;" ref="mapRef"></MapPage>
|
ref="mapRef"></MapPage>
|
||||||
|
|
||||||
<el-form-item label="Disaster Time">
|
<el-form-item label="Disaster Time">
|
||||||
<el-date-picker v-model="state.edit.disasterTime" type="date" value-format="YYYY-MM-DD"
|
<el-date-picker 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>
|
||||||
|
|
||||||
<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" @click="reviews(1)">
|
<el-button type="danger"
|
||||||
Not Review
|
@click="reviews(1)">
|
||||||
|
Reject
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button type="primary" @click="reviews(2)">
|
<el-button type="primary"
|
||||||
Review
|
@click="reviews(2)">
|
||||||
|
Approve
|
||||||
</el-button>
|
</el-button>
|
||||||
</span>
|
</span>
|
||||||
</template>
|
</template>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
<selectUser ref="select"
|
||||||
|
@callback="getTableData"></selectUser>
|
||||||
</el-config-provider>
|
</el-config-provider>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -147,18 +195,23 @@ import { reactive, onMounted, ref, nextTick, watchEffect, defineAsyncComponent }
|
||||||
import { ElMessageBox, ElMessage } from 'element-plus';
|
import { ElMessageBox, ElMessage } from 'element-plus';
|
||||||
import { getList, review } from '/@/api/disasterInfo/index';
|
import { getList, review } from '/@/api/disasterInfo/index';
|
||||||
import { getDictionary } from '/@/api/system/dictbiz';
|
import { getDictionary } from '/@/api/system/dictbiz';
|
||||||
|
import { useVariableStore } from '/@/stores/index.ts'
|
||||||
//引入地图
|
//引入地图
|
||||||
import Map from '/@/components/Map.vue';
|
import Map from '/@/components/Map.vue';
|
||||||
import { useDateFormat } from '@vueuse/shared';
|
import { useDateFormat } from '@vueuse/shared';
|
||||||
|
import selectUser from './component/selectUser.vue';
|
||||||
import L from "leaflet";
|
import L from "leaflet";
|
||||||
import '@geoman-io/leaflet-geoman-free';
|
import '@geoman-io/leaflet-geoman-free';
|
||||||
import '@geoman-io/leaflet-geoman-free/dist/leaflet-geoman.css';
|
import '@geoman-io/leaflet-geoman-free/dist/leaflet-geoman.css';
|
||||||
import "leaflet/dist/leaflet.css";
|
import "leaflet/dist/leaflet.css";
|
||||||
import 'leaflet-draw/dist/leaflet.draw'
|
import 'leaflet-draw/dist/leaflet.draw'
|
||||||
import 'leaflet-draw/dist/leaflet.draw.css'
|
import 'leaflet-draw/dist/leaflet.draw.css'
|
||||||
const map = ref();
|
import { map } from 'lodash';
|
||||||
|
import * as turf from '@turf/turf'
|
||||||
|
const variableStore = useVariableStore();
|
||||||
|
const mapRef = ref();
|
||||||
const activeName = ref('first');
|
const activeName = ref('first');
|
||||||
|
const select = ref();
|
||||||
const handleClick = (tab, event) => {
|
const handleClick = (tab, event) => {
|
||||||
state.selectName = tab.props.name;
|
state.selectName = tab.props.name;
|
||||||
getTableData();
|
getTableData();
|
||||||
|
@ -193,7 +246,8 @@ const state = reactive({
|
||||||
edit: {},
|
edit: {},
|
||||||
radio: null,
|
radio: null,
|
||||||
dislat: '',
|
dislat: '',
|
||||||
dislon: ''
|
dislon: '',
|
||||||
|
wktPoint_Poly: undefined
|
||||||
});
|
});
|
||||||
// 初始化表格数据
|
// 初始化表格数据
|
||||||
const getTableData = () => {
|
const getTableData = () => {
|
||||||
|
@ -204,7 +258,6 @@ const getTableData = () => {
|
||||||
} else {
|
} else {
|
||||||
state.tableData.param.respondStatus = 2;
|
state.tableData.param.respondStatus = 2;
|
||||||
}
|
}
|
||||||
console.log(activeName.value);
|
|
||||||
getList(state.tableData.param).then((res) => {
|
getList(state.tableData.param).then((res) => {
|
||||||
state.tableData.data = res.records;
|
state.tableData.data = res.records;
|
||||||
state.tableData.total = res.total;
|
state.tableData.total = res.total;
|
||||||
|
@ -219,23 +272,18 @@ const onOpenEditRole = (type, row) => {
|
||||||
|
|
||||||
//深拷贝
|
//深拷贝
|
||||||
state.edit = JSON.parse(JSON.stringify(row));
|
state.edit = JSON.parse(JSON.stringify(row));
|
||||||
nextTick(() => {
|
|
||||||
//赋值地图范围,并且可以修改点或者区域
|
|
||||||
//TODO
|
|
||||||
map.mapOperations.wktParseToMap(row.geometry)
|
|
||||||
});
|
|
||||||
state.dialogVisible = true;
|
state.dialogVisible = true;
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
state.radio = "1"
|
state.radio = "1"
|
||||||
// mapRef.value.mapOperations.removeAll()
|
// mapRef.value.mapOperations.removeAll()
|
||||||
//赋值地图范围,并且可以修改点或者区域
|
//赋值地图范围,并且可以修改点或者区域
|
||||||
if (state.wktPoint) {
|
if (state.wktPoint_Poly) {
|
||||||
mapRef.value.mapOperations.removeLayer(state.wktPoint)
|
mapRef.value.mapOperations.removeLayer(state.wktPoint_Poly)
|
||||||
}
|
}
|
||||||
state.wktPoint = mapRef.value.mapOperations.wktParseToMap(row.geometry)
|
state.wktPoint_Poly = mapRef.value.mapOperations.wktParseToMap(row.geometry)
|
||||||
// mapRef.value.mapOperations.on("click", (res)=>{
|
// mapRef.value.mapOperations.on("click", (res)=>{
|
||||||
// mapRef.value.mapOperations.clearPolygon()
|
// mapRef.value.mapOperations.clearPolygon()
|
||||||
// mapRef.value.mapOperations.removeLayer( state.wktPoint)
|
// mapRef.value.mapOperations.removeLayer( state.wktPoint_Poly)
|
||||||
// mapRef.value.mapOperations.addInteractMarker(res.latlng.lat, res.latlng.lng)
|
// mapRef.value.mapOperations.addInteractMarker(res.latlng.lat, res.latlng.lng)
|
||||||
// })
|
// })
|
||||||
mapEvents('1')
|
mapEvents('1')
|
||||||
|
@ -243,40 +291,51 @@ const onOpenEditRole = (type, row) => {
|
||||||
};
|
};
|
||||||
const mapEvents = (ev) => {
|
const mapEvents = (ev) => {
|
||||||
if (ev == '1') {
|
if (ev == '1') {
|
||||||
mapRef.value.mapOperations.clearPolygon()
|
// mapRef.value.mapOperations.clearPolygon()
|
||||||
// mapRef.value.mapOperations.on("click", mapClick)
|
mapRef.value.mapOperations.on("click", mapClick)
|
||||||
mapRef.value.mapOperations.on("mousemove", changelatlon)
|
mapRef.value.mapOperations.on("mousemove", changelatlon)
|
||||||
variableStore.polygoncontrol = "option1"
|
mapRef.value.mapOperations.clearPolygon()
|
||||||
} else {
|
|
||||||
|
} else if (ev == '2') {
|
||||||
mapRef.value.mapOperations.off("click", mapClick);
|
mapRef.value.mapOperations.off("click", mapClick);
|
||||||
|
mapRef.value.mapOperations.drawPolygon()
|
||||||
// mapRef.value.mapOperations.drawPolygon()
|
// mapRef.value.mapOperations.drawPolygon()
|
||||||
// mapRef.value.mapOperations.drawCreated()
|
// mapRef.value.mapOperations.drawCreated()
|
||||||
variableStore.polygoncontrol = "option2"
|
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
mapRef.value.mapOperations.Edit()
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
const ClearSubmit = () => {
|
const ClearSubmit = () => {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
mapRef.value.mapOperations.removeAll()
|
mapRef.value.mapOperations.removeAll()
|
||||||
variableStore.wktdata = null
|
variableStore.wktdata = null
|
||||||
|
variableStore.layerGroupPoint = null;
|
||||||
|
layerGroupPoly = null;
|
||||||
}, 100)
|
}, 100)
|
||||||
}
|
}
|
||||||
const mapClick = (res) => {
|
const mapClick = (res) => {
|
||||||
mapRef.value.mapOperations.removeLayer(state.wktPoint)
|
// mapRef.value.mapOperations.removeLayer( state.wktPoint_Poly )
|
||||||
changelatlon(res);
|
changelatlon(res);
|
||||||
mapRef.value.mapOperations.addInteractMarker(res.latlng.lat.toFixed(3), res.latlng.lng.toFixed(3))
|
mapRef.value.mapOperations.addInteractMarker(res.latlng.lat.toFixed(3), res.latlng.lng.toFixed(3))
|
||||||
|
// console.log(state.wktPoint_Poly)
|
||||||
}
|
}
|
||||||
|
|
||||||
const reviews = (index) => {
|
const reviews = (index) => {
|
||||||
//将修改后的地图位置赋值到state.edit.geometry
|
//将修改后的地图位置赋值到state.edit.geometry
|
||||||
//TODO 修改地图赋值
|
//TODO 修改地图赋值
|
||||||
//state.edit.geometry = map.mapOperations.getWkt();
|
//state.edit.geometry = map.mapOperations.getWkt();
|
||||||
|
|
||||||
//判断index的值来判断是审核通过还是不通过
|
//判断index的值来判断是审核通过还是不通过
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (index === 1) {
|
if (index === 1) {
|
||||||
state.edit.respondStatus = 1;
|
state.edit.respondStatus = 1;
|
||||||
} else {
|
} else {
|
||||||
state.edit.respondStatus = 2;
|
state.edit.respondStatus = 2;
|
||||||
}
|
}
|
||||||
|
state.edit.geometry = variableStore.layerGroupPoint === null ? variableStore.layerGroupPoly : variableStore.layerGroupPoint;
|
||||||
//时间格式化
|
//时间格式化
|
||||||
state.edit.disasterTime = useDateFormat(state.edit.disasterTime, 'YYYY-MM-DD').value + " 00:00:00";
|
state.edit.disasterTime = useDateFormat(state.edit.disasterTime, 'YYYY-MM-DD').value + " 00:00:00";
|
||||||
review(state.edit).then((res) => {
|
review(state.edit).then((res) => {
|
||||||
|
@ -287,20 +346,13 @@ const reviews = (index) => {
|
||||||
}
|
}
|
||||||
// 分页改变
|
// 分页改变
|
||||||
const onHandleCurrentChange = (val) => {
|
const onHandleCurrentChange = (val) => {
|
||||||
console.log(val);
|
|
||||||
state.tableData.param.pageNum = val;
|
state.tableData.param.pageNum = val;
|
||||||
getTableData();
|
getTableData();
|
||||||
};
|
};
|
||||||
const onMapClick = (e) => {
|
|
||||||
state.lat = e.latlng.lat.toFixed(3);
|
|
||||||
state.lon = e.latlng.lng.toFixed(3);
|
|
||||||
map.value.mapOperations.addInteractMarker(state.lat, state.lon)
|
|
||||||
}
|
|
||||||
const changelatlon = (e) => {
|
const changelatlon = (e) => {
|
||||||
|
//深拷贝e
|
||||||
state.dislat = e.latlng.lat.toFixed(3);
|
state.dislat = e.latlng.lat.toFixed(3);
|
||||||
state.dislon = e.latlng.lng.toFixed(3);
|
state.dislon = e.latlng.lng.toFixed(3);
|
||||||
// state.lon = state.lon % 360;
|
|
||||||
// if (state.lon < 0) {
|
// if (state.lon < 0) {
|
||||||
// state.lon = state.lon + 360;
|
// state.lon = state.lon + 360;
|
||||||
// }
|
// }
|
||||||
|
@ -346,28 +398,15 @@ onMounted(() => {
|
||||||
getDictionary({ code: 'disaster' }).then((res) => {
|
getDictionary({ code: 'disaster' }).then((res) => {
|
||||||
state.disasterTypeList = res;
|
state.disasterTypeList = res;
|
||||||
});
|
});
|
||||||
watchEffect(() => {
|
|
||||||
if (state.radio == "1") {
|
|
||||||
// map.value.mapOperations.on("click", onMapClick)
|
|
||||||
// map.value.mapOperations.clearPolygon()
|
|
||||||
// map.value.mapOperations.on("mousemove", changelatlon)
|
|
||||||
// variableStore.polygoncontrol = "option1"
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
// map.value.mapOperations.off("click", onMapClick)
|
|
||||||
// map.value.mapOperations.drawPolygon()
|
|
||||||
// map.value.mapOperations.drawCreated()
|
|
||||||
// variableStore.polygoncontrol = "option2"
|
|
||||||
}
|
|
||||||
})
|
|
||||||
});
|
});
|
||||||
const getValue = (key) => {
|
const getValue = (key) => {
|
||||||
//返回state.disasterTypeLis 对应的value
|
//返回state.disasterTypeLis 对应的value
|
||||||
return state.disasterTypeList.find((item) => item.dictKey === key)?.dictValue;
|
return state.disasterTypeList.find((item) => item.dictKey === key)?.dictValue;
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<style>
|
<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;
|
||||||
|
@ -386,5 +425,7 @@ const getValue = (key) => {
|
||||||
.mt15 {
|
.mt15 {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: end;
|
justify-content: end;
|
||||||
|
float: right;
|
||||||
|
margin-bottom: 15px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Reference in New Issue