From 6a09af20c44c8370139049ee8728671d8776e2c2 Mon Sep 17 00:00:00 2001 From: yyhouc <792163605@qq.com> Date: Thu, 13 Apr 2023 14:03:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0tool=20contact=E5=9F=BA?= =?UTF-8?q?=E7=A1=80=E5=88=97=E8=A1=A8=E3=80=82=E5=AE=8C=E6=88=90callforhe?= =?UTF-8?q?lp=E5=AE=A1=E6=A0=B8=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package-lock.json | 8 + package.json | 4 +- src/api/contact/index.js | 39 +++++ src/api/disasterInfo/index.js | 4 +- src/api/tool/index.js | 39 +++++ src/router/route.js | 32 ++++ .../contact/component/add.vue | 99 ++++++++++++ .../responseManagement/contact/index.vue | 140 ++++++++++++++++ .../responseManagement/tool/component/add.vue | 153 ++++++++++++++++++ src/views/responseManagement/tool/index.vue | 142 ++++++++++++++++ .../responseManagement/userResponse/index.vue | 96 +++++++---- 11 files changed, 719 insertions(+), 37 deletions(-) create mode 100644 src/api/contact/index.js create mode 100644 src/api/tool/index.js create mode 100644 src/views/responseManagement/contact/component/add.vue create mode 100644 src/views/responseManagement/contact/index.vue create mode 100644 src/views/responseManagement/tool/component/add.vue create mode 100644 src/views/responseManagement/tool/index.vue 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 @@