From 7a8d6919b906df677429fb6109e2a64731d8434f Mon Sep 17 00:00:00 2001 From: qqGroup0 <253114712@qq.com> Date: Tue, 11 Apr 2023 09:42:44 +0800 Subject: [PATCH] =?UTF-8?q?zqq:=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 --- src/api/remoteSensingSourceData/index.js | 5 ++--- src/utils/request.js | 2 ++ .../remoteSensingData/components/retrievalCondition.vue | 1 + 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/api/remoteSensingSourceData/index.js b/src/api/remoteSensingSourceData/index.js index aa1884d..1c905ea 100644 --- a/src/api/remoteSensingSourceData/index.js +++ b/src/api/remoteSensingSourceData/index.js @@ -1,6 +1,5 @@ import request from '/@/utils/request'; - -const moduleName = 'biz-vordm'; +import { moduleName } from '/@/utils/request'; export const getRemoteSensingSourceData = (param) => { return request({ @@ -12,7 +11,7 @@ export const getRemoteSensingSourceData = (param) => { export const getSelectionCondition = (param) => { return request({ - url: '/api/' + moduleName + '/ui/disasterInfo/select-condition', + url: '/api/' + moduleName + '/ui/disasterInfo/selectCondition', method: 'get', params: param, }); diff --git a/src/utils/request.js b/src/utils/request.js index c34ade0..2ebf7fe 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -3,6 +3,8 @@ import { ElMessage, ElMessageBox } from 'element-plus'; import qs from 'qs'; import { Session } from '/@/utils/storage'; +export const moduleName = 'zqq-biz-vordm'; + // 配置新建一个 axios 实例 const service = axios.create({ //baseURL: import.meta.env.VITE_API_URL, diff --git a/src/views/dataService/remoteSensingData/components/retrievalCondition.vue b/src/views/dataService/remoteSensingData/components/retrievalCondition.vue index cfc4285..f2f6d62 100644 --- a/src/views/dataService/remoteSensingData/components/retrievalCondition.vue +++ b/src/views/dataService/remoteSensingData/components/retrievalCondition.vue @@ -208,6 +208,7 @@ const searchDisasterType = () => { "disasterDate": state.value_disasterDate, "name": "disaster_type" } + if (state.options_disasterType) { getSelectionCondition(selectType).then( (res) => {