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 eba4d1c..de4aec2 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,8 +72,8 @@ export const dynamicRoutes = [ isKeepAlive: true, isAffix: false, isIframe: false, - roles: ['admin'], - icon: 'iconfont icon-caidan', + 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');