zs 9 月之前
父节点
当前提交
a4b108da54
共有 4 个文件被更改,包括 41 次插入16 次删除
  1. 0 2
      src/components/frame/c-search.vue
  2. 0 2
      src/components/frame/c-table.vue
  3. 0 4
      src/components/frame/c-upload.vue
  4. 41 8
      src/layout/site.js

+ 0 - 2
src/components/frame/c-search.vue

@@ -101,9 +101,7 @@ export default {
     },
     },
     // 获取输入值
     // 获取输入值
     dataChange(model) {
     dataChange(model) {
-      // console.log(model);
       const value = JSON.parse(JSON.stringify(this.form[model]));
       const value = JSON.parse(JSON.stringify(this.form[model]));
-      // console.log(value);
     },
     },
     // 返回
     // 返回
     toBack() {
     toBack() {

+ 0 - 2
src/components/frame/c-table.vue

@@ -187,7 +187,6 @@ export default {
     },
     },
     handleSelectAll(selection) {
     handleSelectAll(selection) {
       //处于没全选状态,选择之后一定是全选,只有处于全选状态时,才会反选(全取消)
       //处于没全选状态,选择之后一定是全选,只有处于全选状态时,才会反选(全取消)
-      // console.log(selection);
       let res = [];
       let res = [];
       if (selection.length > 0) {
       if (selection.length > 0) {
         //全选
         //全选
@@ -270,7 +269,6 @@ export default {
     },
     },
     // 合计计算
     // 合计计算
     totalComputed(data) {
     totalComputed(data) {
-      // console.log(data);
       const total = data.reduce((p, n) => p + parseFloat(n), 0);
       const total = data.reduce((p, n) => p + parseFloat(n), 0);
       return total;
       return total;
     },
     },

+ 0 - 4
src/components/frame/c-upload.vue

@@ -72,8 +72,6 @@ export default {
       }
       }
       response = _.omit(response, ['errcode', 'errmsg']);
       response = _.omit(response, ['errcode', 'errmsg']);
       let list = _.cloneDeep(this.list);
       let list = _.cloneDeep(this.list);
-      console.log(process.env.VUE_APP_HOST);
-      console.log(response.uri);
       if (_.isArray(list)) {
       if (_.isArray(list)) {
         list.push({ ...response, name: file.name, url: `${process.env.VUE_APP_HOST}${response.uri}` });
         list.push({ ...response, name: file.name, url: `${process.env.VUE_APP_HOST}${response.uri}` });
       } else {
       } else {
@@ -83,9 +81,7 @@ export default {
     },
     },
     // 删除图片
     // 删除图片
     onRemove(file, fileList) {
     onRemove(file, fileList) {
-      // console.log(file);
       let list = _.cloneDeep(this.list);
       let list = _.cloneDeep(this.list);
-      // console.log(list);
       list = list.filter((f) => f.uri !== _.get(file, 'uri'));
       list = list.filter((f) => f.uri !== _.get(file, 'uri'));
       this.$emit('change', list);
       this.$emit('change', list);
       return true;
       return true;

+ 41 - 8
src/layout/site.js

@@ -81,39 +81,65 @@ export const menus = [
       {
       {
         id: 'menus_2_1',
         id: 'menus_2_1',
         icon: 'el-icon-setting',
         icon: 'el-icon-setting',
-        name: '角色管理',
-        path: '/system/role',
+        name: '字典管理',
+        path: '/system/dict',
       },
       },
       {
       {
-        id: 'menus_2_1',
+        id: 'menus_2_2',
         icon: 'el-icon-setting',
         icon: 'el-icon-setting',
         name: '菜单管理',
         name: '菜单管理',
         path: '/system/menus',
         path: '/system/menus',
       },
       },
       {
       {
-        id: 'menus_2_1',
+        id: 'menus_2_3',
         icon: 'el-icon-setting',
         icon: 'el-icon-setting',
-        name: '字典管理',
-        path: '/system/dict',
+        name: '系统功能重置',
+        path: '/system/func',
       },
       },
     ],
     ],
   },
   },
   {
   {
     id: 'menus_3',
     id: 'menus_3',
+    icon: 'el-icon-tickets',
+    name: '平台设置',
+    type: '1',
+    children: [
+      {
+        id: 'menus_3_1',
+        icon: 'el-icon-tickets',
+        name: '基础设置',
+        path: '/platform/basic',
+      },
+      {
+        id: 'menus_3_2',
+        icon: 'el-icon-tickets',
+        name: '角色管理',
+        path: '/platform/role',
+      },
+    ],
+  },
+  {
+    id: 'menus_4',
     icon: 'el-icon-user',
     icon: 'el-icon-user',
     name: '用户管理',
     name: '用户管理',
     type: '1',
     type: '1',
     children: [
     children: [
       {
       {
-        id: 'menus_3_1',
+        id: 'menus_4_1',
         icon: 'el-icon-user',
         icon: 'el-icon-user',
         name: '管理员管理',
         name: '管理员管理',
         path: '/users/admin',
         path: '/users/admin',
       },
       },
       {
       {
-        id: 'menus_3_2',
+        id: 'menus_4_2',
         icon: 'el-icon-user',
         icon: 'el-icon-user',
         name: '客服管理',
         name: '客服管理',
+        path: '/users/customer',
+      },
+      {
+        id: 'menus_4_3',
+        icon: 'el-icon-user',
+        name: '使用人员管理',
         path: '/users/user',
         path: '/users/user',
       },
       },
     ],
     ],
@@ -125,4 +151,11 @@ export const menus = [
     path: '/question',
     path: '/question',
     type: '0',
     type: '0',
   },
   },
+  {
+    id: 'menus_5',
+    icon: 'el-icon-question',
+    name: '个人中心',
+    path: '/center',
+    type: '0',
+  },
 ];
 ];