diff --git a/src/api/remoteSensingSourceData/index.js b/src/api/remoteSensingSourceData/index.js index 783bc7b..0aed30f 100644 --- a/src/api/remoteSensingSourceData/index.js +++ b/src/api/remoteSensingSourceData/index.js @@ -1,8 +1,18 @@ import request from '/@/utils/request'; +const moduleName = 'zqq-biz-vordm'; + export const getRemoteSensingSourceData = (param) => { return request({ - url: '/api/biz-vordm/remoteSensingSourceData', + url: '/api/' + moduleName + '/ui/remoteSensingSourceData', + method: 'get', + params: param, + }); +}; + +export const getSelectionCondition = (param) => { + return request({ + url: '/api/' + moduleName + '/ui/selectCondition', method: 'get', params: param, }); diff --git a/src/utils/request.js b/src/utils/request.js index 42479fe..c34ade0 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -62,8 +62,8 @@ service.interceptors.response.use( if (error.response.data.error_description) ElMessage.error(error.response.data.error_description); else { //if (error.response.data) ElMessage.error(error.response.statusText); - Session.clear(); // 清除浏览器全部临时缓存 - window.location.href = '/'; // 去登录页 + //Session.clear(); // 清除浏览器全部临时缓存 + //window.location.href = '/'; // 去登录页 ElMessage.error('接口路径找不到'); } } diff --git a/src/views/dataService/remoteSensingData/components/retrievalCondition.vue b/src/views/dataService/remoteSensingData/components/retrievalCondition.vue index 36f6998..0d70c8e 100644 --- a/src/views/dataService/remoteSensingData/components/retrievalCondition.vue +++ b/src/views/dataService/remoteSensingData/components/retrievalCondition.vue @@ -4,35 +4,39 @@ + clearable + placeholder="Select disaster type" + @visible-change="searchDisasterType"> - + size="default" + @focus="searchDisasterDate" /> - + placeholder="请输入受灾地" /> --> - - + + +