diff --git a/package.json b/package.json index 0ba43a2..ed60945 100644 --- a/package.json +++ b/package.json @@ -21,8 +21,10 @@ "js-cookie": "^3.0.1", "js-md5": "^0.7.3", "leaflet": "^1.9.3", + "leaflet-control-geocoder": "^2.4.0", "leaflet-draw": "^1.0.4", "leaflet-imageoverlay-rotated": "^0.2.1", + "leaflet-search": "^2.9.6", "mitt": "^3.0.0", "nprogress": "^0.2.0", "pinia": "^2.0.33", diff --git a/public/twitter.png b/public/twitter.png new file mode 100644 index 0000000..5a00361 Binary files /dev/null and b/public/twitter.png differ diff --git a/src/api/crawl/index.js b/src/api/crawl/index.js index 4fde0b5..7814172 100644 --- a/src/api/crawl/index.js +++ b/src/api/crawl/index.js @@ -1,4 +1,4 @@ -import request, { crawlModule, moduleName } from '/@/utils/request'; +import request, { crawlModule, moduleName,twitterModule } from '/@/utils/request'; export const geoserve = (vordm_id, link, disaster_id, name) => { return request({ @@ -24,6 +24,15 @@ export const news = (disaster_id, keywords, page, isBaidu, id) => { }, }); }; +export const twitter = (disaster_id, keys,stime,etime) => { + return request({ + url: '/api/' + twitterModule + 'socialmedia/twitter', + method: 'post', + data: { + disaster_id, keys,stime,etime + }, + }); +}; export const rs = (stime, etime, disaster_id, ranges, type = 1,id) => { let method = 'sentinel'; if (type == 1) { @@ -50,6 +59,22 @@ export const rs = (stime, etime, disaster_id, ranges, type = 1,id) => { data: data, }); }; +export const rs2 = (disaster_id ,arr,stime,etime) => { + let data = { + stime, + etime, + disaster_id, + arr + } + return request({ + url: '/api/' + crawlModule + '/RS', + method: 'post', + data: data, + }); +}; + + + export const submit = (row) => { return request({ url: '/api/' + moduleName + '/ui/crawlInfo/submit', diff --git a/src/api/remoteSensingSourceData/remoteSensingSourceData.js b/src/api/remoteSensingSourceData/remoteSensingSourceData.js index 9272eff..da88526 100644 --- a/src/api/remoteSensingSourceData/remoteSensingSourceData.js +++ b/src/api/remoteSensingSourceData/remoteSensingSourceData.js @@ -36,4 +36,13 @@ export const approval = (data) => { method: 'post', data: data }); +}; + +export const importTemplate = (data) => { + return request({ + url: '/api/' + moduleName + '/ui/remoteSensing/importTemplate', + headers:{'Content-Type': 'multipart/form-data'}, + method: 'post', + data: data + }); }; \ No newline at end of file diff --git a/src/components/Map.vue b/src/components/Map.vue index 3b6a1a4..550c20f 100644 --- a/src/components/Map.vue +++ b/src/components/Map.vue @@ -1,6 +1,5 @@