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) => {