This commit is contained in:
yyhouc 2023-05-26 10:07:57 +08:00
commit 1d1189f6bc
1 changed files with 8 additions and 20 deletions

View File

@ -235,21 +235,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: [],
@ -326,19 +327,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
@ -388,10 +376,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
}