From 293a87ea5f3291a81cbf5873188005319314e9a3 Mon Sep 17 00:00:00 2001 From: yyhouc <792163605@qq.com> Date: Wed, 12 Apr 2023 09:06:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4callfor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/disasterInfo/index.js | 18 + src/router/route.js | 6 +- src/utils/request.js | 2 +- .../responseManagement/userResponse/index.vue | 337 ++++++++---------- src/views/system/dic/dialog.vue | 1 + 5 files changed, 172 insertions(+), 192 deletions(-) create mode 100644 src/api/disasterInfo/index.js diff --git a/src/api/disasterInfo/index.js b/src/api/disasterInfo/index.js new file mode 100644 index 0000000..2625925 --- /dev/null +++ b/src/api/disasterInfo/index.js @@ -0,0 +1,18 @@ +import request from '/@/utils/request'; +import {moduleName} from '/@/utils/request'; + +export function getList(params) { + return request({ + url: '/api/'+moduleName+'/ui/disasterInfo/list', + method: 'get', + params, + }); +} +//review +export function review(id) { + return request({ + url: '/api/'+moduleName+'/ui/disasterInfo/review', + method: 'get', + params: { id }, + }); +} \ No newline at end of file diff --git a/src/router/route.js b/src/router/route.js index 12b0d73..86ac041 100644 --- a/src/router/route.js +++ b/src/router/route.js @@ -56,7 +56,7 @@ export const dynamicRoutes = [ isKeepAlive: true, isAffix: false, isIframe: false, - roles: ['admin'], + roles: ['admin', 'chief'], // icon: 'iconfont icon-xitongshezhi', zh: '响应管理', }, @@ -72,7 +72,7 @@ export const dynamicRoutes = [ isKeepAlive: true, isAffix: false, isIframe: false, - roles: ['admin'], + roles: ['admin', 'chief'], // icon: 'iconfont icon-caidan', zh: '用户响应管理', }, @@ -88,7 +88,7 @@ export const dynamicRoutes = [ isKeepAlive: true, isAffix: false, isIframe: false, - roles: ['admin'], + roles: ['admin', 'chief'], // icon: 'ele-ColdDrink', zh: '管理员管理', }, diff --git a/src/utils/request.js b/src/utils/request.js index 61421f4..01ab41b 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -3,7 +3,7 @@ import { ElMessage, ElMessageBox } from 'element-plus'; import qs from 'qs'; import { Session } from '/@/utils/storage'; -export const moduleName = 'zqq-biz-vordm'; +export const moduleName = 'yyhouc-biz-vordm'; // 配置新建一个 axios 实例 const service = axios.create({ diff --git a/src/views/responseManagement/userResponse/index.vue b/src/views/responseManagement/userResponse/index.vue index 87d4076..f6dbd25 100644 --- a/src/views/responseManagement/userResponse/index.vue +++ b/src/views/responseManagement/userResponse/index.vue @@ -1,51 +1,36 @@ --> - + - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + @@ -145,125 +104,127 @@ --> - + - + - diff --git a/src/views/system/dic/dialog.vue b/src/views/system/dic/dialog.vue index 00d0745..32e814f 100644 --- a/src/views/system/dic/dialog.vue +++ b/src/views/system/dic/dialog.vue @@ -134,6 +134,7 @@ const onSubmit = () => { }); //判断status是否为true,是则赋值为0,否则赋值为1 state.ruleForm.isSealed = state.ruleForm.status ? 0 : 1; + state.ruleForm.CODE = state.ruleForm.dictKey; update(state.ruleForm).then((res) => { closeDialog(); emit('refresh');