Selaa lähdekoodia

更新子管理员+权限管理

guhongwei 5 vuotta sitten
vanhempi
commit
a9fc196d74
3 muutettua tiedostoa jossa 4 lisäystä ja 4 poistoa
  1. 1 1
      src/layout/user/mainForm.vue
  2. 2 2
      src/util/role_menu.js
  3. 1 1
      src/views/permission/index.vue

+ 1 - 1
src/layout/user/mainForm.vue

@@ -109,7 +109,7 @@ export default {
         msg = '用户创建成功';
       } else {
         res = await this.update(data);
-        msg = '用户修改成功';
+        msg = '用户审核成功';
       }
       if (this.$checkRes(res, msg, res.errmsg)) {
         console.log(`success`);

+ 2 - 2
src/util/role_menu.js

@@ -99,8 +99,8 @@ export const technical = {
   path: '/technical/index',
 };
 export const defaultMenu = [
-  // { name: '权限管理', path: '/permission/index' },
+  { name: '权限管理', path: '/permission/index' },
   { name: '菜单管理', path: '/menu' },
-  // { name: '子管理员管理', path: '/adminUser' },
+  { name: '子管理员管理', path: '/adminUser' },
   { name: '平台字典管理', path: '/dictionary' },
 ];

+ 1 - 1
src/views/permission/index.vue

@@ -74,7 +74,7 @@ export default {
     ...authUser(['fetch', 'query', 'update']),
     ...role({ getRoleList: 'query' }),
     async search({ skip = 0, limit = 10, ...info } = {}) {
-      const res = await this.query({ skip, limit, ...info });
+      const res = await this.query({ skip, limit, role: '4', ...info });
       if (this.$checkRes(res)) {
         this.$set(this, `list`, res.data);
         this.$set(this, `total`, res.total);