From d05b2a8e7e5fa68095e9fdd262325d1f0ebec82f Mon Sep 17 00:00:00 2001 From: glj Date: Thu, 25 May 2023 18:08:46 +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 --- .../components/retrievalCondition.vue | 28 ++++++------------- 1 file changed, 8 insertions(+), 20 deletions(-) diff --git a/src/views/dataService/remoteSensingData/components/retrievalCondition.vue b/src/views/dataService/remoteSensingData/components/retrievalCondition.vue index b9c0982..a5612b2 100644 --- a/src/views/dataService/remoteSensingData/components/retrievalCondition.vue +++ b/src/views/dataService/remoteSensingData/components/retrievalCondition.vue @@ -202,21 +202,22 @@ const state = reactive({ label: '>50m', value: '>50m' }], + ////'1-Optical satellite, 2-Night light satellite, 3-Video satellite, 4-Hyperspectral satellite, 5-Radar satellite' options_satelliteType: [{ label: 'Optical satellite', - value: 'Optical satellite' + value: 1 }, { label: 'Hyperspectral satellite', - value: 'Hyperspectral satellite' + value: 4 }, { label: 'Radar satellite', - value: 'Radar satellite' + value: 5 }, { label: 'Night light satellite', - value: 'Night light satellite' + value: 2 }, { label: 'Video satellite', - value: 'Video satellite' + value: 3 }], value_satelliteType: '', value_resolution: [], @@ -295,19 +296,6 @@ const addRemoteSensingData = (data, fileList) => { // 查询遥感元数据 const searchRemoteSensingSourceData = () => { - // 获取选择的卫星类型 - for (var i = 0; i < state.value_satelliteType.length; i++) { - if (state.value_satelliteType[i] == state.options_satelliteType[0].value) { - state.satelliteCodeList.push('Landset8_OLI_TIRS'); - } - 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 => { - state.satelliteCodeList.push(item); - }) - } - } - // 获取选择的分辨率 var productResolutionMin = 0 var productResolutionMax = null @@ -357,10 +345,10 @@ const searchRemoteSensingSourceData = () => { } let dataNew = {}; - if (state.satelliteCodeList.length != 0) { + if (state.value_satelliteType.length != 0) { dataNew = { disasterId: state.disasterId, - satelliteCodeList: state.satelliteCodeList.join(","), + satelliteCodeList: state.value_satelliteType.join(","), productResolutionVos: state.listData, status: state.status }