From a8f1a3986f268e0652b79f2f5fc3d968895f022a Mon Sep 17 00:00:00 2001 From: glj Date: Wed, 24 May 2023 18:19:11 +0800 Subject: [PATCH] =?UTF-8?q?glj-=E4=BB=A3=E7=A0=81=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../remoteSensingSourceData.js | 9 ++ .../components/retrievalCondition.vue | 42 +++++++- .../components/uploadData.vue | 98 +++++++++++++++++++ 3 files changed, 145 insertions(+), 4 deletions(-) create mode 100644 src/views/dataService/remoteSensingData/components/uploadData.vue diff --git a/src/api/remoteSensingSourceData/remoteSensingSourceData.js b/src/api/remoteSensingSourceData/remoteSensingSourceData.js index da88526..ccf5a1c 100644 --- a/src/api/remoteSensingSourceData/remoteSensingSourceData.js +++ b/src/api/remoteSensingSourceData/remoteSensingSourceData.js @@ -45,4 +45,13 @@ export const importTemplate = (data) => { method: 'post', data: data }); +}; + +export const importTemplateImgList = (data) => { + return request({ + url: '/api/' + moduleName + '/ui/remoteSensing/importTemplateImgList', + headers:{'Content-Type': 'multipart/form-data'}, + method: 'post', + data: data + }); }; \ No newline at end of file diff --git a/src/views/dataService/remoteSensingData/components/retrievalCondition.vue b/src/views/dataService/remoteSensingData/components/retrievalCondition.vue index 6ecba5e..b9c0982 100644 --- a/src/views/dataService/remoteSensingData/components/retrievalCondition.vue +++ b/src/views/dataService/remoteSensingData/components/retrievalCondition.vue @@ -48,9 +48,17 @@ + + + + + Upload Img @@ -58,6 +66,18 @@ + + + + @@ -102,12 +123,13 @@ import disasterTable from "/@/components/table/DisasterTable.vue"; import approvalData from "./approvalData.vue"; import addAddress from "./addAddress.vue"; import { ElMessageBox, ElMessage } from 'element-plus'; - +import uploadData from "./uploadData.vue"; // import { getList as getDisasterPage } from '/@/api/disasterInfo/index'; const approvalDataRef = ref(); const addAddressRef = ref(); const upFileRef = ref(); +const uploadDataRef = ref(); const state = reactive({ disasterData: { data: [], @@ -192,6 +214,9 @@ const state = reactive({ }, { label: 'Night light satellite', value: 'Night light satellite' + }, { + label: 'Video satellite', + value: 'Video satellite' }], value_satelliteType: '', value_resolution: [], @@ -229,6 +254,15 @@ const addAddressOpen = (row) => { addAddressRef.value.openDialog(row); }; +// 打开上传弹窗 +const OpenuploadDataRef = () => { + if (state.disasterId == null) { + ElMessage.warning('Please select the disaster first'); + return false; + } + uploadDataRef.value.openDialog(state.disasterId); +}; + // 获取遥感影像元数据 const getData = () => { let data = { @@ -255,7 +289,7 @@ const addRemoteSensingData = (data, fileList) => { ElMessage.success("success"); emit('callback'); searchRemoteSensingSourceData(); - upFileRef.value.clearFiles(); + upFileRef.value.clearFiles(); }) } @@ -268,7 +302,7 @@ const searchRemoteSensingSourceData = () => { } else if (state.value_satelliteType[i] == state.options_satelliteType[1].value) { let arrData = ['Sentinel -2_Sentinel - 2A', 'Sentinel -2_Sentinel - 2B', 'GF1', 'GF1B', 'GF1C', 'GF1D', 'GF2', 'GF4', 'GF6']; - arrData.forEach(item => { + arrData.forEach(item => { state.satelliteCodeList.push(item); }) } diff --git a/src/views/dataService/remoteSensingData/components/uploadData.vue b/src/views/dataService/remoteSensingData/components/uploadData.vue new file mode 100644 index 0000000..647e919 --- /dev/null +++ b/src/views/dataService/remoteSensingData/components/uploadData.vue @@ -0,0 +1,98 @@ + + + + + \ No newline at end of file