diff --git a/package-lock.json b/package-lock.json index e30a322..5155afe 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3007,6 +3007,14 @@ "resolved": "https://registry.npmmirror.com/leaflet/-/leaflet-1.9.3.tgz", "integrity": "sha512-iB2cR9vAkDOu5l3HAay2obcUHZ7xwUBBjph8+PGtmW/2lYhbLizWtG7nTeYht36WfOslixQF9D/uSIzhZgGMfQ==" }, + "leaflet-control-geocoder": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/leaflet-control-geocoder/-/leaflet-control-geocoder-2.4.0.tgz", + "integrity": "sha512-b2QlxuFd40uIDbnoUI3U9fzfnB4yKUYlmsXjquJ2d2YjoJqnyVYcIJeErAVv3kPvX3nI0gzvBq1XHMgSVFrGkQ==", + "requires": { + "open-location-code": "^1.0.0" + } + }, "leaflet-draw": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/leaflet-draw/-/leaflet-draw-1.0.4.tgz", @@ -3020,6 +3028,14 @@ "leaflet": "^1.0.0" } }, + "leaflet-search": { + "version": "2.9.6", + "resolved": "https://registry.npmjs.org/leaflet-search/-/leaflet-search-2.9.6.tgz", + "integrity": "sha512-ZzZEnjcYmVEXfYq5r2adt47voAtycJlZ3YDjWJXjJuUCWW99sj6IqB5qjNrBC5JALBmSnkOlfSHCaj3jbO1CGg==", + "requires": { + "leaflet": "*" + } + }, "levn": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", @@ -3199,6 +3215,12 @@ "wrappy": "1" } }, + "open-location-code": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/open-location-code/-/open-location-code-1.0.3.tgz", + "integrity": "sha512-DBm14BSn40Ee241n80zIFXIT6+y8Tb0I+jTdosLJ8Sidvr2qONvymwqymVbHV2nS+1gkDZ5eTNpnOIVV0Kn2fw==", + "optional": true + }, "optimist": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/optimist/-/optimist-0.6.1.tgz", diff --git a/src/api/disasterInfo/index.js b/src/api/disasterInfo/index.js index 30b2450..4a6afc1 100644 --- a/src/api/disasterInfo/index.js +++ b/src/api/disasterInfo/index.js @@ -88,3 +88,10 @@ export function responseEndedDisasterInfo(id) { } }); } +export function deleteByIds(ids) { + return request({ + url: '/api/' + moduleName + '/ui/disasterInfo/deleteByIds', + method: 'delete', + data: ids + }); +} diff --git a/src/api/news/index.js b/src/api/news/index.js index ee02d89..d88b152 100644 --- a/src/api/news/index.js +++ b/src/api/news/index.js @@ -32,3 +32,10 @@ export const importTemplate = (data) => { data: data }) } +export const remove = (ids,type) => { + return request({ + url: '/api/'+moduleName+'/ui/'+(type?'news':'socialMedia')+'/deleteByIds', + method: 'delete', + data: ids + }) +} diff --git a/src/api/remoteSensingSourceData/remoteSensingSourceData.js b/src/api/remoteSensingSourceData/remoteSensingSourceData.js index ccf5a1c..8ca21bc 100644 --- a/src/api/remoteSensingSourceData/remoteSensingSourceData.js +++ b/src/api/remoteSensingSourceData/remoteSensingSourceData.js @@ -46,6 +46,13 @@ export const importTemplate = (data) => { data: data }); }; +export const removeList = (ids) => { + return request({ + url: '/api/' + moduleName + '/ui/remoteSensing/remove', + method: 'delte', + data: ids, + }); +} export const importTemplateImgList = (data) => { return request({ @@ -54,4 +61,4 @@ export const importTemplateImgList = (data) => { method: 'post', data: data }); -}; \ No newline at end of file +}; diff --git a/src/api/response/dataUpload.js b/src/api/response/dataUpload.js index 19d1b8c..a50fdd9 100644 --- a/src/api/response/dataUpload.js +++ b/src/api/response/dataUpload.js @@ -50,4 +50,11 @@ export const auditData = (data) => { method: 'post', data: data }); -}; \ No newline at end of file +}; +export const remove = (data) => { + return request({ + url: '/api/' + moduleName + '/ui/dataUpload/remove', + method: 'delete', + data: data + }); +} \ No newline at end of file diff --git a/src/directive/authDirective.js b/src/directive/authDirective.js index b1b2cb1..e288c06 100644 --- a/src/directive/authDirective.js +++ b/src/directive/authDirective.js @@ -15,6 +15,12 @@ export function authDirective(app) { if (!stores.userInfos.authBtnList.some((v) => v === binding.value)) el.parentNode.removeChild(el); }, }); + app.directive('auth-role', { + mounted(el, binding) { + const stores = useUserInfo(); + if (!stores.userInfos.roles.some((v) => v === binding.value)) el.parentNode.removeChild(el); + }, + }); // 多个权限验证,满足一个则显示(v-auths="[xxx,xxx]") app.directive('auths', { mounted(el, binding) { diff --git a/src/views/dataService/multimediaData/index.vue b/src/views/dataService/multimediaData/index.vue index bbc16eb..7fb4a62 100644 --- a/src/views/dataService/multimediaData/index.vue +++ b/src/views/dataService/multimediaData/index.vue @@ -57,6 +57,12 @@ Upload + + + + + Delete + -