diff --git a/src/api/crawl/index.js b/src/api/crawl/index.js index d3d0838..08df2f7 100644 --- a/src/api/crawl/index.js +++ b/src/api/crawl/index.js @@ -1,68 +1,68 @@ -import request, {crawlModule ,moduleName } from '/@/utils/request'; +import request, { crawlModule, moduleName } from '/@/utils/request'; +export const geoserve = (vordm_id, link, disaster_id, name) => { + return request({ + url: '/api/' + crawlModule + '/geoserve/pushing', + method: 'post', + data: { + vordm_id, + link, + disaster_id, + name, + }, + }); +}; +export const news = (disaster_id, keywords, page, isBaidu, id) => { + return request({ + url: '/api/' + crawlModule + '/news/' + (isBaidu ? 'baidu' : 'bing'), + method: 'post', + data: { + disaster_id, + keywords, + page, + id, + }, + }); +}; +export const rs = (stime, etime, disaster_id, ranges, type = 1) => { + let method = 'sentinel'; + if (type == 1) { + method = 'sentinel'; + } else if (type == 2) { + method = 'landsat'; + } else { + method = 'searchone'; + } - -export const geoserve = (vordm_id , link , disaster_id, name) =>{ - return request({ - url: '/api/' + crawlModule + '/geoserve/pushing', - method: 'post', - data: { - vordm_id, - link, - disaster_id, - name - } - }); -} -export const news = (disaster_id, keywords, page,isBaidu,id) =>{ - return request({ - url: '/api/' + crawlModule + '/news/'+(isBaidu?"baidu":"bing"), - method: 'post', - data: { - disaster_id, - keywords, - page, - id - } - }); -} -export const rs = (stime, etime, disaster_id,ranges ,type =1) =>{ - let method = 'sentinel'; - if(type == 1){ - method = 'sentinel'; - }else if(type == 2){ - method = 'landsat'; - }else { - method = 'searchone'; - } - - return request({ - url: '/api/' + crawlModule + '/news/'+method, - method: 'post', - data: { - stime, etime, disaster_id,ranges - } - }); -} + return request({ + url: '/api/' + crawlModule + '/rs/' + method, + method: 'post', + data: { + stime, + etime, + disaster_id, + ranges, + }, + }); +}; export const submit = (row) => { - return request({ - url: '/api/'+moduleName+'/ui/crawlInfo/submit', - method: 'post', - data: row - }) -} + return request({ + url: '/api/' + moduleName + '/ui/crawlInfo/submit', + method: 'post', + data: row, + }); +}; export const getList = (current, size, param) => { - let params = { - current, - size, - }; - if(param){ - params = Object.assign(params, param); - } - return request({ - url: '/api/'+moduleName+'/ui/crawlInfo/list', - method: 'get', - params: params - }); - -} \ No newline at end of file + let params = { + current, + size, + }; + if (param) { + params = Object.assign(params, param); + } + return request({ + url: '/api/' + moduleName + '/ui/crawlInfo/list', + method: 'get', + params: params, + }); +}; diff --git a/src/components/Map.vue b/src/components/Map.vue index 1fa3079..3c6c5d8 100644 --- a/src/components/Map.vue +++ b/src/components/Map.vue @@ -2,25 +2,27 @@
- - + + \ No newline at end of file diff --git a/src/utils/request.js b/src/utils/request.js index 23898cb..8e4e748 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -3,8 +3,8 @@ import { ElMessage, ElMessageBox } from 'element-plus'; import qs from 'qs'; import { Session } from '/@/utils/storage'; -// export const moduleName = 'zqq-biz-vordm'; -export const moduleName = 'biz-vordm'; +export const moduleName = 'zqq-biz-vordm'; +// export const moduleName = 'biz-vordm'; export const crawlModule = 'vordm-crawl'; // 配置新建一个 axios 实例 const service = axios.create({ diff --git a/src/views/dataService/remoteSensingData/components/searchCondition.vue b/src/views/dataService/remoteSensingData/components/searchCondition.vue index 2d7fbae..406ad6e 100644 --- a/src/views/dataService/remoteSensingData/components/searchCondition.vue +++ b/src/views/dataService/remoteSensingData/components/searchCondition.vue @@ -7,7 +7,7 @@