From 9a70fb21dd07188073311f36cd1d3f8577e7ea0d Mon Sep 17 00:00:00 2001
From: yyhouc <792163605@qq.com>
Date: Tue, 11 Apr 2023 15:52:50 +0800
Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E5=AD=97=E5=85=B8?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/system/dictbiz.js | 4 +-
src/layout/navBars/breadcrumb/user.vue | 2 +-
src/router/route.js | 111 ++-----------------------
src/utils/request.js | 4 +-
src/views/system/dic/dialog.vue | 68 +++++++--------
src/views/system/dic/index.vue | 10 +--
6 files changed, 54 insertions(+), 145 deletions(-)
diff --git a/src/api/system/dictbiz.js b/src/api/system/dictbiz.js
index 48cae53..6176ba8 100644
--- a/src/api/system/dictbiz.js
+++ b/src/api/system/dictbiz.js
@@ -1,5 +1,5 @@
import request from '/@/utils/request';
-var model = 'kn-setting';
+var model = 'system-manager';
export const getList = (params) => {
return request({
url: '/api/'+model+'/dict-biz/list',
@@ -55,7 +55,7 @@ export const add = (row) => {
export const update = (row) => {
return request({
- url: '/api/'+model+'/dict-biz/submit',
+ url: '/api/'+model+'/dict-biz/submit2',
method: 'post',
data: row
})
diff --git a/src/layout/navBars/breadcrumb/user.vue b/src/layout/navBars/breadcrumb/user.vue
index 3a36db5..8a5c384 100644
--- a/src/layout/navBars/breadcrumb/user.vue
+++ b/src/layout/navBars/breadcrumb/user.vue
@@ -241,7 +241,7 @@ onMounted(() => {
Session.set('refresh-token', res.refresh_token);
})
}
- }, 10000);
+ }, 5*60*1000);
});
diff --git a/src/router/route.js b/src/router/route.js
index a02d202..12b0d73 100644
--- a/src/router/route.js
+++ b/src/router/route.js
@@ -190,7 +190,7 @@ export const dynamicRoutes = [
isKeepAlive: true,
isAffix: false,
isIframe: false,
- roles: ['admin'],
+ roles: ['admin', 'chief'],
// icon: 'iconfont icon-xitongshezhi',
zh: '系统管理',
},
@@ -206,25 +206,24 @@ export const dynamicRoutes = [
isKeepAlive: true,
isAffix: false,
isIframe: false,
- roles: ['admin'],
+ roles: ['admin', 'chief'],
// icon: 'iconfont icon-caidan',
zh: '普通管理员管理',
},
},
{
- path: '/systemManagement/dictionary',
- name: 'dictionaryManagement',
- component: () => import('/@/views/systemManagement/dictionary/index.vue'),
+ path: '/system/dic',
+ name: 'systemDic',
+ component: () => import('/@/views/system/dic/index.vue'),
meta: {
- title: 'Dictionary management',
+ title: '字典管理',
isLink: '',
isHide: false,
isKeepAlive: true,
isAffix: false,
isIframe: false,
- roles: ['admin'],
- // icon: 'ele-ColdDrink',
- zh: '字典管理',
+ roles: ['admin', 'chief'],
+ // icon: 'ele-SetUp',
},
},
],
@@ -369,100 +368,6 @@ export const dynamicRoutes = [
// },
// ],
// },
- {
- path: '/system',
- name: 'system',
- component: () => import('/@/layout/routerView/parent.vue'),
- redirect: '/system/menu',
- meta: {
- title: '系统设置',
- isLink: '',
- isHide: false,
- isKeepAlive: true,
- isAffix: false,
- isIframe: false,
- roles: ['admin'],
- // icon: 'iconfont icon-xitongshezhi',
- zh:"系统设置"
- },
- children: [
- // {
- // path: '/system/menu',
- // name: 'systemMenu',
- // component: () => import('/@/views/system/menu/index.vue'),
- // meta: {
- // title: '菜单管理',
- // isLink: '',
- // isHide: false,
- // isKeepAlive: true,
- // isAffix: false,
- // isIframe: false,
- // roles: ['admin'],
- // icon: 'iconfont icon-caidan',
- // },
- // },
- // {
- // path: '/system/role',
- // name: 'systemRole',
- // component: () => import('/@/views/system/role/index.vue'),
- // meta: {
- // title: '角色管理',
- // isLink: '',
- // isHide: false,
- // isKeepAlive: true,
- // isAffix: false,
- // isIframe: false,
- // roles: ['admin'],
- // icon: 'ele-ColdDrink',
- // },
- // },
- // {
- // path: '/system/user',
- // name: 'systemUser',
- // component: () => import('/@/views/system/user/index.vue'),
- // meta: {
- // title: '用户管理',
- // isLink: '',
- // isHide: false,
- // isKeepAlive: true,
- // isAffix: false,
- // isIframe: false,
- // roles: ['admin'],
- // icon: 'iconfont icon-icon-',
- // },
- // },
- // {
- // path: '/system/dept',
- // name: 'systemDept',
- // component: () => import('/@/views/system/dept/index.vue'),
- // meta: {
- // title: '部门管理',
- // isLink: '',
- // isHide: false,
- // isKeepAlive: true,
- // isAffix: false,
- // isIframe: false,
- // roles: ['admin'],
- // icon: 'ele-OfficeBuilding',
- // },
- // },
- {
- path: '/system/dic',
- name: 'systemDic',
- component: () => import('/@/views/system/dic/index.vue'),
- meta: {
- title: '字典管理',
- isLink: '',
- isHide: false,
- isKeepAlive: true,
- isAffix: false,
- isIframe: false,
- roles: ['admin'],
- // icon: 'ele-SetUp',
- },
- },
- ],
- },
],
},
];
diff --git a/src/utils/request.js b/src/utils/request.js
index 2ebf7fe..61421f4 100644
--- a/src/utils/request.js
+++ b/src/utils/request.js
@@ -60,7 +60,9 @@ service.interceptors.response.use(
ElMessage.error('网络超时');
} else if (error.message == 'Network Error') {
ElMessage.error('网络连接错误');
- } else {
+ } else if (error.response&&error.response.data.code == '500') {
+ ElMessage.error(error.response.data.msg);
+ } else{
if (error.response.data.error_description) ElMessage.error(error.response.data.error_description);
else {
//if (error.response.data) ElMessage.error(error.response.statusText);
diff --git a/src/views/system/dic/dialog.vue b/src/views/system/dic/dialog.vue
index 46aabaa..00d0745 100644
--- a/src/views/system/dic/dialog.vue
+++ b/src/views/system/dic/dialog.vue
@@ -13,8 +13,8 @@
-
-
+
+
@@ -23,7 +23,7 @@
-
+
@@ -43,8 +43,8 @@
-
-
+
+
@@ -69,6 +69,7 @@