From 7ef200e8790e1bbc61f74910d21d02e5f3097545 Mon Sep 17 00:00:00 2001 From: liyuchen <791867849@qq.com> Date: Mon, 17 Apr 2023 17:17:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E7=AE=A1=E7=90=86=E5=91=98?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E7=81=BE=E5=AE=B3=E4=BB=A3=E7=A0=81-liyuchen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/disasterInfo/index.js | 30 ++++ src/views/home/index.vue | 2 +- .../component/disasterInfo.vue | 122 ++++++++++++++ .../component/manageDisaster.vue | 158 ++++++++++++++++++ .../chiefAdministrator/index.vue | 33 ++++ 5 files changed, 344 insertions(+), 1 deletion(-) create mode 100644 src/views/systemManagement/chiefAdministrator/component/disasterInfo.vue create mode 100644 src/views/systemManagement/chiefAdministrator/component/manageDisaster.vue diff --git a/src/api/disasterInfo/index.js b/src/api/disasterInfo/index.js index d45f047..3d4777f 100644 --- a/src/api/disasterInfo/index.js +++ b/src/api/disasterInfo/index.js @@ -8,6 +8,36 @@ export function getList(params) { params, }); } + +export function getPage(current,size,params) { + return request({ + url: '/api/'+moduleName+'/ui/disasterInfo/list', + method: 'get', + params:{ + current, + size, + ...params + }, + }); +} + +export function updateDisasterManage(data){ + return request({ + url: '/api/'+moduleName+'/ui/disasterInfo/updateBatch', + method: 'put', + data: data, + }); +} + +export function removeManage(data){ + return request({ + url: '/api/'+moduleName+'/ui/disasterInfo/removeManage', + method: 'put', + data: data, + }); +} + + //review export function review(data) { return request({ diff --git a/src/views/home/index.vue b/src/views/home/index.vue index 82d0295..d245a83 100644 --- a/src/views/home/index.vue +++ b/src/views/home/index.vue @@ -558,7 +558,7 @@ const setApplyDisaster = (data) => { }) setTimeout(() => { initBarChart(xData,yData); - }, 1000); + }, 700); } /** * 设置灾种数量占比 diff --git a/src/views/systemManagement/chiefAdministrator/component/disasterInfo.vue b/src/views/systemManagement/chiefAdministrator/component/disasterInfo.vue new file mode 100644 index 0000000..7353c4e --- /dev/null +++ b/src/views/systemManagement/chiefAdministrator/component/disasterInfo.vue @@ -0,0 +1,122 @@ + + + + + \ No newline at end of file diff --git a/src/views/systemManagement/chiefAdministrator/component/manageDisaster.vue b/src/views/systemManagement/chiefAdministrator/component/manageDisaster.vue new file mode 100644 index 0000000..4d05ad2 --- /dev/null +++ b/src/views/systemManagement/chiefAdministrator/component/manageDisaster.vue @@ -0,0 +1,158 @@ + + + + + \ No newline at end of file diff --git a/src/views/systemManagement/chiefAdministrator/index.vue b/src/views/systemManagement/chiefAdministrator/index.vue index 34cb779..951e476 100644 --- a/src/views/systemManagement/chiefAdministrator/index.vue +++ b/src/views/systemManagement/chiefAdministrator/index.vue @@ -53,6 +53,7 @@ @@ -71,6 +72,7 @@ + @@ -79,12 +81,36 @@