From 3d68dcfe9cd583611045dc6737f3e650f888cc82 Mon Sep 17 00:00:00 2001 From: qqGroup0 <253114712@qq.com> Date: Sun, 23 Apr 2023 16:42:10 +0800 Subject: [PATCH] =?UTF-8?q?zqq:=E9=81=A5=E6=84=9F=E7=88=AC=E8=99=AB?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=EF=BC=88=E5=BE=85=E8=A1=A5=E5=85=85=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/crawl/index.js | 128 ++--- src/components/Map.vue | 219 ++++++-- src/utils/request.js | 4 +- .../components/searchCondition.vue | 510 +++++++++++------- .../dataService/remoteSensingData/index.vue | 3 +- .../responseManagement/userResponse/index.vue | 4 - 6 files changed, 540 insertions(+), 328 deletions(-) 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 @@ Select time range - + Start time @@ -15,11 +15,12 @@ v-model="state.startTime" type="datetime" placeholder="Select start time" - :shortcuts="shortcuts" /> + value-format="YYYY-MM-DD HH:mm:ss" + :shortcuts="state.shortcuts" /> - + End time @@ -27,7 +28,8 @@ v-model="state.endTime" type="datetime" placeholder="Select end time" - :shortcuts="shortcuts" /> + value-format="YYYY-MM-DD HH:mm:ss" + :shortcuts="state.shortcuts" /> @@ -43,8 +45,8 @@ {{ - 'Lat: ' + parseFloat(coordinate.Lat).toFixed(4) + ',  Lng: ' + parseFloat(coordinate.Lng).toFixed(4) - }} + 'Lat: ' + parseFloat(coordinate.Lat).toFixed(4) + ',  Lng: ' + parseFloat(coordinate.Lng).toFixed(4) + }} Select satellite type - @@ -118,160 +120,24 @@ - + + - - -