diff --git a/package-lock.json b/package-lock.json index 073494d..c62f0ac 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1543,6 +1543,14 @@ "resolved": "https://registry.npmjs.org/leaflet-draw/-/leaflet-draw-1.0.4.tgz", "integrity": "sha512-rsQ6saQO5ST5Aj6XRFylr5zvarWgzWnrg46zQ1MEOEIHsppdC/8hnN8qMoFvACsPvTioAuysya/TVtog15tyAQ==" }, + "leaflet-imageoverlay-rotated": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/leaflet-imageoverlay-rotated/-/leaflet-imageoverlay-rotated-0.2.1.tgz", + "integrity": "sha512-8MsrIuW/aXI0EjDXgJSJJ67nqVNQJsP/glmND9g6yc6t+zQgdPUbTRHC65jSs/IBwzwyhggnDgDuydalcEX+ew==", + "requires": { + "leaflet": "^1.0.0" + } + }, "levn": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", diff --git a/package.json b/package.json index b5b7881..37ea273 100644 --- a/package.json +++ b/package.json @@ -18,8 +18,8 @@ "js-cookie": "^3.0.1", "js-md5": "^0.7.3", "leaflet": "^1.9.3", - "leaflet-draw": "^1.0.4", - "leaflet-imageoverlay-rotated": "^0.2.1", + "leaflet-draw": "^1.0.4", + "leaflet-imageoverlay-rotated": "^0.2.1", "mitt": "^3.0.0", "nprogress": "^0.2.0", "pinia": "^2.0.33", diff --git a/src/api/contact/index.js b/src/api/contact/index.js new file mode 100644 index 0000000..19751fd --- /dev/null +++ b/src/api/contact/index.js @@ -0,0 +1,39 @@ +import request from '/@/utils/request'; +import {moduleName} from '/@/utils/request'; +export const getList = (current, size, param) => { + return request({ + url: '/api/'+moduleName+'/ui/contact/list', + method: 'get', + params: { + current, + size, + param, + }, + }); +} +export const submit = (row) => { + return request({ + url: '/api/'+moduleName+'/ui/contact/submit', + method: 'post', + data: row + }) +} +export const remove = (ids) => { + return request({ + url: '/api/'+moduleName+'/ui/contact/remove', + method: 'post', + data: { + ids, + } + }) +} + +export const detail = (id) => { + return request({ + url: '/api/'+moduleName+'/ui/contact/data', + method: 'get', + params: { + id + } + }) +} diff --git a/src/api/disasterInfo/index.js b/src/api/disasterInfo/index.js index bee51f0..f7da8f9 100644 --- a/src/api/disasterInfo/index.js +++ b/src/api/disasterInfo/index.js @@ -9,10 +9,10 @@ export function getList(params) { }); } //review -export function review(id) { +export function review(data) { return request({ url: '/api/'+moduleName+'/ui/disasterInfo/review', method: 'post', - params: { id }, + data: data, }); } \ No newline at end of file diff --git a/src/api/tool/index.js b/src/api/tool/index.js new file mode 100644 index 0000000..c1b08db --- /dev/null +++ b/src/api/tool/index.js @@ -0,0 +1,39 @@ +import request from '/@/utils/request'; +import {moduleName} from '/@/utils/request'; +export const getList = (current, size, param) => { + return request({ + url: '/api/'+moduleName+'/ui/tool/list', + method: 'get', + params: { + current, + size, + param, + }, + }); +} +export const submit = (row) => { + return request({ + url: '/api/'+moduleName+'/ui/tool/submit', + method: 'post', + data: row + }) +} +export const remove = (ids) => { + return request({ + url: '/api/'+moduleName+'/ui/tool/remove', + method: 'post', + data: { + ids, + } + }) +} + +export const detail = (id) => { + return request({ + url: '/api/'+moduleName+'/ui/tool/data', + method: 'get', + params: { + id + } + }) +} diff --git a/src/router/route.js b/src/router/route.js index 1912bfc..9ea09e0 100644 --- a/src/router/route.js +++ b/src/router/route.js @@ -109,6 +109,38 @@ export const dynamicRoutes = [ zh: '数据上传管理', }, }, + { + path: '/responseManagement/tool', + name: 'tool-management', + component: () => import('/@/views/responseManagement/tool/index.vue'), + meta: { + title: 'Tool Management', + isLink: '', + isHide: false, + isKeepAlive: true, + isAffix: false, + isIframe: false, + roles: ['admin', 'chief'], + icon: 'iconfont icon-icon-', + zh: 'tool管理', + }, + }, + { + path: '/responseManagement/contact', + name: 'contact-management', + component: () => import('/@/views/responseManagement/contact/index.vue'), + meta: { + title: 'Contact Management', + isLink: '', + isHide: false, + isKeepAlive: true, + isAffix: false, + isIframe: false, + roles: ['admin', 'chief'], + icon: 'iconfont icon-icon-', + zh: 'tool管理', + }, + }, ], }, { diff --git a/src/views/responseManagement/contact/component/add.vue b/src/views/responseManagement/contact/component/add.vue new file mode 100644 index 0000000..deda69f --- /dev/null +++ b/src/views/responseManagement/contact/component/add.vue @@ -0,0 +1,99 @@ + + + diff --git a/src/views/responseManagement/contact/index.vue b/src/views/responseManagement/contact/index.vue new file mode 100644 index 0000000..c01d29a --- /dev/null +++ b/src/views/responseManagement/contact/index.vue @@ -0,0 +1,140 @@ + + + diff --git a/src/views/responseManagement/tool/component/add.vue b/src/views/responseManagement/tool/component/add.vue new file mode 100644 index 0000000..9481c05 --- /dev/null +++ b/src/views/responseManagement/tool/component/add.vue @@ -0,0 +1,153 @@ + + + diff --git a/src/views/responseManagement/tool/index.vue b/src/views/responseManagement/tool/index.vue new file mode 100644 index 0000000..fcfb848 --- /dev/null +++ b/src/views/responseManagement/tool/index.vue @@ -0,0 +1,142 @@ + + + diff --git a/src/views/responseManagement/userResponse/index.vue b/src/views/responseManagement/userResponse/index.vue index f537fef..e3b9f44 100644 --- a/src/views/responseManagement/userResponse/index.vue +++ b/src/views/responseManagement/userResponse/index.vue @@ -17,11 +17,17 @@ - + + + @@ -74,7 +80,12 @@ - + + + @@ -115,16 +126,28 @@ - + + + + + @@ -133,21 +156,24 @@