按钮级别的新版本,多级别的组织架构
loulijun2021
2023-08-25 3fce634eeb56f9425d5e745b1d4333da962fc3d7
1.新增功能菜单
已添加21个文件
已修改7个文件
507 ■■■■ 文件已修改
src/icons/svg/component.svg 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/layout/components/Sidebar/index.vue 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/router/index.js 354 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/store/modules/user.js 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/utils/request.js 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/basicSettings/contactUnitList.vue 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/basicSettings/installLampList.vue 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/basicSettings/personList.vue 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/basicSettings/powerDivider.vue 13 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/basicSettings/storageList.vue 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/basicSettings/warehouseList.vue 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/deviceManager/checkPosition.vue 补丁 | 查看 | 原始文档 | blame | 历史
src/views/deviceManager/checkRecord.vue 补丁 | 查看 | 原始文档 | blame | 历史
src/views/deviceManager/checkStandard.vue 补丁 | 查看 | 原始文档 | blame | 历史
src/views/deviceManager/deviceList.vue 补丁 | 查看 | 原始文档 | blame | 历史
src/views/deviceManager/maintainPosition.vue 补丁 | 查看 | 原始文档 | blame | 历史
src/views/deviceManager/maintainRecord.vue 补丁 | 查看 | 原始文档 | blame | 历史
src/views/deviceManager/maintainStandard.vue 补丁 | 查看 | 原始文档 | blame | 历史
src/views/deviceManager/repairRecord.vue 补丁 | 查看 | 原始文档 | blame | 历史
src/views/materialManager/inventoryList.vue 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/materialManager/materialList.vue 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/materialManager/unitList.vue 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/qualityManager/defectDefine.vue 补丁 | 查看 | 原始文档 | blame | 历史
src/views/qualityManager/processCheck.vue 补丁 | 查看 | 原始文档 | blame | 历史
src/views/qualityManager/processCheckItem.vue 补丁 | 查看 | 原始文档 | blame | 历史
src/views/qualityManager/processCheckRecord.vue 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/qualityManager/qualityPlaning.vue 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/workOrder/produceOrderList.vue 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/icons/svg/component.svg
@@ -1,10 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="20px" height="20px" viewBox="0 0 20 20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<svg width="20px" height="20px" viewBox="0 0 20 20" version="1.1" xmlns="http://www.w3.org/2000/svg"
     xmlns:xlink="http://www.w3.org/1999/xlink">
    <!-- Generator: Sketch 55.2 (78181) - https://sketchapp.com -->
    <title>工装管理备份</title>
    <desc>Created with Sketch.</desc>
    <g id="工装管理备份" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
        <rect id="矩形" x="0" y="0" width="20" height="20"></rect>
        <path d="M6.78926121,0.5 L3.19007351,0.5 C1.71249893,0.5 0.500187903,1.71240277 0.500187903,3.1710221 L0.500187903,6.7701364 C0.500187903,8.22879243 1.71249893,9.38432942 3.17111827,9.38432942 L9.38446229,9.38432942 L9.38446229,3.1710221 C9.38446229,1.71240277 8.22892528,0.5 6.78926121,0.5 L6.78926121,0.5 Z M8.07737495,8.07722373 L3.17111827,8.07722373 C2.45131375,8.07722373 1.82613875,7.48999596 1.82613875,6.7701364 L1.82613875,3.1710221 C1.82613875,2.45112585 2.45131375,1.82604258 3.17111827,1.82604258 L6.77032432,1.82604258 C7.49012883,1.82604258 8.07737495,2.43222561 8.07737495,3.1710221 L8.07737495,8.07722373 L8.07737495,8.07722373 Z M16.9048936,0.5 L13.3056876,0.5 C11.8470682,0.5 10.6346104,1.71240277 10.6346104,3.1710221 L10.6346104,9.38431107 L16.9048753,9.38431107 C18.3633111,9.38431107 19.4998928,8.22879243 19.4998928,6.77011804 L19.4998928,3.17100375 C19.4998928,1.71240277 18.344521,0.5 16.9048936,0.5 L16.9048936,0.5 Z M18.1741438,6.7701364 C18.1741438,7.48999596 17.6246614,8.07722373 16.8857182,8.07722373 L11.9228526,8.07722373 L11.9228526,3.1520852 C11.9228526,2.43222563 12.5668361,1.80710569 13.2867874,1.80710569 L16.8856998,1.80710569 C17.6058347,1.80710569 18.1741438,2.41328872 18.1741438,3.1520852 L18.1741438,6.7701364 L18.1741438,6.7701364 Z M0.500187903,13.2865077 L0.500187903,16.8857872 C0.500187903,18.3443148 1.71249893,19.4999802 3.17111827,19.4999802 L6.77032432,19.4999802 C8.22894365,19.4999802 9.36552537,18.3443148 9.36552537,16.8857872 L9.36552537,10.6157241 L3.17111827,10.6157241 C1.71249893,10.6157241 0.500187903,11.8279985 0.500187903,13.2865077 L0.500187903,13.2865077 Z M8.0773566,16.8858055 C8.0773566,17.6055733 7.50906571,18.1738642 6.77030595,18.1738642 L3.17111827,18.1738642 C2.45131375,18.1738642 1.82613875,17.6055733 1.82613875,16.8858055 L1.82613875,13.2865077 C1.82613875,12.5666482 2.45131375,11.9226647 3.17111827,11.9226647 L8.0773566,11.9226647 L8.0773566,16.8858055 L8.0773566,16.8858055 Z M16.9048936,10.6157241 L10.6157286,10.6157241 L10.6157286,16.8858055 C10.6157286,18.3443331 11.8280946,19.4999985 13.2868057,19.4999985 L16.8857182,19.4999985 C18.344521,19.4999985 19.4811027,18.3443331 19.4811027,16.8858055 L19.4811027,13.2865077 C19.4998928,11.8279985 18.344521,10.6157241 16.9048936,10.6157241 L16.9048936,10.6157241 Z M18.1741438,16.8858055 C18.1741438,17.6055733 17.6246614,18.1738642 16.8857182,18.1738642 L13.2867874,18.1738642 C12.5668361,18.1738642 11.9228526,17.6055733 11.9228526,16.8858055 L11.9228526,11.922683 L16.9048753,11.922683 C17.6246431,11.922683 18.1929339,12.547858 18.1929339,13.2865261 L18.1929339,16.8858055 L18.1741438,16.8858055 Z" id="形状" fill="#00A79D" fill-rule="nonzero"></path>
    <path
      d="M6.78926121,0.5 L3.19007351,0.5 C1.71249893,0.5 0.500187903,1.71240277 0.500187903,3.1710221 L0.500187903,6.7701364 C0.500187903,8.22879243 1.71249893,9.38432942 3.17111827,9.38432942 L9.38446229,9.38432942 L9.38446229,3.1710221 C9.38446229,1.71240277 8.22892528,0.5 6.78926121,0.5 L6.78926121,0.5 Z M8.07737495,8.07722373 L3.17111827,8.07722373 C2.45131375,8.07722373 1.82613875,7.48999596 1.82613875,6.7701364 L1.82613875,3.1710221 C1.82613875,2.45112585 2.45131375,1.82604258 3.17111827,1.82604258 L6.77032432,1.82604258 C7.49012883,1.82604258 8.07737495,2.43222561 8.07737495,3.1710221 L8.07737495,8.07722373 L8.07737495,8.07722373 Z M16.9048936,0.5 L13.3056876,0.5 C11.8470682,0.5 10.6346104,1.71240277 10.6346104,3.1710221 L10.6346104,9.38431107 L16.9048753,9.38431107 C18.3633111,9.38431107 19.4998928,8.22879243 19.4998928,6.77011804 L19.4998928,3.17100375 C19.4998928,1.71240277 18.344521,0.5 16.9048936,0.5 L16.9048936,0.5 Z M18.1741438,6.7701364 C18.1741438,7.48999596 17.6246614,8.07722373 16.8857182,8.07722373 L11.9228526,8.07722373 L11.9228526,3.1520852 C11.9228526,2.43222563 12.5668361,1.80710569 13.2867874,1.80710569 L16.8856998,1.80710569 C17.6058347,1.80710569 18.1741438,2.41328872 18.1741438,3.1520852 L18.1741438,6.7701364 L18.1741438,6.7701364 Z M0.500187903,13.2865077 L0.500187903,16.8857872 C0.500187903,18.3443148 1.71249893,19.4999802 3.17111827,19.4999802 L6.77032432,19.4999802 C8.22894365,19.4999802 9.36552537,18.3443148 9.36552537,16.8857872 L9.36552537,10.6157241 L3.17111827,10.6157241 C1.71249893,10.6157241 0.500187903,11.8279985 0.500187903,13.2865077 L0.500187903,13.2865077 Z M8.0773566,16.8858055 C8.0773566,17.6055733 7.50906571,18.1738642 6.77030595,18.1738642 L3.17111827,18.1738642 C2.45131375,18.1738642 1.82613875,17.6055733 1.82613875,16.8858055 L1.82613875,13.2865077 C1.82613875,12.5666482 2.45131375,11.9226647 3.17111827,11.9226647 L8.0773566,11.9226647 L8.0773566,16.8858055 L8.0773566,16.8858055 Z M16.9048936,10.6157241 L10.6157286,10.6157241 L10.6157286,16.8858055 C10.6157286,18.3443331 11.8280946,19.4999985 13.2868057,19.4999985 L16.8857182,19.4999985 C18.344521,19.4999985 19.4811027,18.3443331 19.4811027,16.8858055 L19.4811027,13.2865077 C19.4998928,11.8279985 18.344521,10.6157241 16.9048936,10.6157241 L16.9048936,10.6157241 Z M18.1741438,16.8858055 C18.1741438,17.6055733 17.6246614,18.1738642 16.8857182,18.1738642 L13.2867874,18.1738642 C12.5668361,18.1738642 11.9228526,17.6055733 11.9228526,16.8858055 L11.9228526,11.922683 L16.9048753,11.922683 C17.6246431,11.922683 18.1929339,12.547858 18.1929339,13.2865261 L18.1929339,16.8858055 L18.1741438,16.8858055 Z"
      id="形状" fill="#157b7e" fill-rule="nonzero"></path>
    </g>
</svg>
src/layout/components/Sidebar/index.vue
@@ -77,14 +77,16 @@
    activeMenu() {
      const route = this.$route
      const { meta, path } = route
      // console.log(meta, path, 7)
      console.log(meta, path, 7)
      // if set path, the sidebar will highlight the path you set
      removeCookie('ruleCode')
      setCookie('ruleCode', meta.code) // å°†ç¼–码规则code存到cookie里面
      // Vue.prototype.$buttoncode = meta.buttoncode
      // Vue.prototype.$datacode = meta.datacode
      // setCookie('buttoncode', meta.buttoncode)//  æŒ‰é’®æƒé™
      // setCookie('datacode', meta.datacode)//  æ•°æ®æƒé™
      removeCookie('datacode')
      setCookie('datacode', meta.datacode) // æ•°æ®æƒé™
      Vue.prototype.$buttoncode = meta.buttoncode // æŒ‰é’®æƒé™
      if (meta.activeMenu) {
        return meta.activeMenu
      }
src/router/index.js
@@ -91,183 +91,365 @@
    component: Layout,
    redirect: '/basicSettings/organizationList',
    name: '基础设置',
    code: '1001',
    meta: { code: '1001', title: '基础设置', icon: 'tree2' },
    code: '01',
    meta: { code: '01', title: '基础设置', icon: 'tree2' },
    alwaysShow: true, // å½“children只有一个时,也显示父菜单
    children: [
      {
        path: 'organizationList',
        name: 'organizationListCancel',
        code: '1010',
        code: '0101',
        component: () => import('@/views/basicSettings/organizationList'),
        meta: { code: '1010', title: '组织架构', icon: '', keepAlive: true }
        meta: { code: '0101', title: '组织架构', icon: '', keepAlive: true }
      },
      {
        path: 'postList',
        name: 'personListCancel',
        code: '0102',
        component: () => import('@/views/basicSettings/postList'),
        meta: { code: '0102', title: '岗位管理', icon: '', keepAlive: true }
      }, {
        path: 'groupList',
        name: 'groupListCancel',
        code: '0103',
        component: () => import('@/views/basicSettings/groupList'),
        meta: { code: '0103', title: '班组管理', icon: '', keepAlive: true }
      },
      {
        path: 'personList',
        name: 'personListCancel',
        code: '1011',
        code: '0104',
        component: () => import('@/views/basicSettings/personList'),
        meta: { code: '1011', title: '人员管理', icon: '', keepAlive: true }
      }, {
        path: 'postList',
        name: 'personListCancel',
        code: '1012',
        component: () => import('@/views/basicSettings/postList'),
        meta: { code: '1012', title: '岗位管理', icon: '', keepAlive: true }
        meta: { code: '0104', title: '人员管理', icon: '', keepAlive: true }
      }, {
        path: 'roleList',
        name: 'roleListCancel',
        code: '1013',
        code: '0105',
        component: () => import('@/views/basicSettings/roleList'),
        meta: { code: '1013', title: '角色管理', icon: '', keepAlive: true }
        meta: { code: '0105', title: '角色管理', icon: '', keepAlive: true }
      }, {
        path: 'groupList',
        name: 'groupListCancel',
        code: '1014',
        component: () => import('@/views/basicSettings/groupList'),
        meta: { code: '1014', title: '班组管理', icon: '', keepAlive: true }
        path: 'contactUnitList',
        name: 'contactUnitListCancel',
        code: '0106',
        component: () => import('@/views/basicSettings/contactUnitList'),
        meta: { code: '0106', title: '往来单位', icon: '', keepAlive: true }
      }, {
        path: 'warehouseList',
        name: 'warehouseListCancel',
        code: '0107',
        component: () => import('@/views/basicSettings/warehouseList'),
        meta: { code: '0107', title: '仓库设置', icon: '', keepAlive: true }
      }, {
        path: 'storageList',
        name: 'storageListCancel',
        code: '0108',
        component: () => import('@/views/basicSettings/storageList'),
        meta: { code: '0108', title: '库位设置', icon: '', keepAlive: true }
      }, {
        path: 'installLampList',
        name: 'installLampListCancel',
        code: '0109',
        component: () => import('@/views/basicSettings/installLampList'),
        meta: { code: '0109', title: '安灯设置', icon: '', keepAlive: true }
      },
      {
        path: 'powerDivider',
        name: 'powerDividerCancel',
        code: '1015',
        code: '0110',
        component: () => import('@/views/basicSettings/powerDivider'),
        meta: { code: '1015', title: '权限分配', icon: '', keepAlive: true }
        meta: { code: '0110', title: '权限分配', icon: '', keepAlive: true }
      },
      {
        path: 'roleDivider',
        name: 'roleDividerCancel',
        code: '1016',
        code: '0111',
        hidden: true,
        component: () => import('@/views/basicSettings/roleDivider'),
        meta: { code: '1016', title: '角色分配', icon: '', keepAlive: true }
        meta: { code: '0111', title: '角色分配', icon: '', keepAlive: true }
      }
    ]
  },
  {
    path: '/materialManager',
    component: Layout,
    redirect: '/materialManager/unitList',
    name: '物料管理',
    code: '02',
    meta: { code: '02', title: '物料管理', icon: 'table' },
    alwaysShow: true, // å½“children只有一个时,也显示父菜单
    children: [
      {
        path: 'unitList',
        name: 'unitListCancel',
        code: '0201',
        component: () => import('@/views/materialManager/unitList'),
        meta: { code: '0201', title: '计量单位', icon: '', keepAlive: true }
      },
      {
        path: 'inventoryList',
        name: 'inventoryListCancel',
        code: '0202',
        component: () => import('@/views/materialManager/inventoryList'),
        meta: { code: '0202', title: '存货档案', icon: '', keepAlive: true }
      }, {
        path: 'materialList',
        name: 'materialListCancel',
        code: '0203',
        component: () => import('@/views/materialManager/materialList'),
        meta: { code: '0203', title: '物料清单', icon: '', keepAlive: true }
      }
    ]
  },
  {
    path: '/deviceManager',
    component: Layout,
    redirect: '/deviceManager/deviceType',
    name: '设备管理',
    code: '03',
    meta: { code: '03', title: '设备管理', icon: 'example' },
    alwaysShow: true,
    children: [
      {
        path: 'deviceList',
        name: 'deviceListCancel',
        code: '0301',
        component: () => import('@/views/deviceManager/deviceList'),
        meta: { code: '0301', title: '设备清单', icon: '', keepAlive: true }
      },
      {
        path: 'checkStandard',
        name: 'checkStandardCancel',
        code: '0302',
        component: () => import('@/views/deviceManager/checkStandard'),
        meta: { code: '0302', title: '点检标准', icon: '', keepAlive: true }
      },
      {
        path: 'checkPosition',
        name: 'checkPositionCancel',
        code: '0303',
        component: () => import('@/views/deviceManager/checkPosition'),
        meta: { code: '0303', title: '点检部位', icon: '', keepAlive: true }
      },
      {
        path: 'maintainStandard',
        name: 'maintainStandardCancel',
        code: '0304',
        component: () => import('@/views/deviceManager/maintainStandard'),
        meta: { code: '0304', title: '保养标准', icon: '', keepAlive: true }
      },
      {
        path: 'maintainPosition',
        name: 'maintainPositionCancel',
        code: '0305',
        component: () => import('@/views/deviceManager/maintainPosition'),
        meta: { code: '0305', title: '保养部位', icon: '', keepAlive: true }
      },
      {
        path: 'checkRecord',
        name: 'checkRecordCancel',
        code: '0306',
        component: () => import('@/views/deviceManager/checkRecord'),
        meta: { code: '0306', title: '点检记录', icon: '', keepAlive: true }
      },
      {
        path: 'maintainRecord',
        name: 'maintainRecordCancel',
        code: '0307',
        component: () => import('@/views/deviceManager/maintainRecord'),
        meta: { code: '0307', title: '保养记录', icon: '', keepAlive: true }
      },
      {
        path: 'repairRecord',
        code: '0308',
        name: 'repairRecordCancel',
        component: () => import('@/views/deviceManager/repairRecord'),
        meta: { code: '0308', title: '维修记录', icon: '', keepAlive: true }
      }
    ]
  },
  {
    path: '/qualityManager',
    component: Layout,
    redirect: '/qualityManager/defectDefine',
    name: '质量管理',
    code: '04',
    meta: { code: '04', title: '质量管理', icon: 'quality' },
    alwaysShow: true,
    children: [
      {
        path: 'defectDefine',
        name: 'defectDefineCancel',
        code: '0401',
        component: () => import('@/views/qualityManager/defectDefine'),
        meta: { code: '0401', title: '缺陷定义', icon: '', keepAlive: true }
      },
      {
        path: 'processCheckItem',
        name: 'processCheckItemCancel',
        code: '0402',
        component: () => import('@/views/qualityManager/processCheckItem'),
        meta: { code: '0402', title: '检验项设置', icon: '', keepAlive: true }
      }, {
        path: 'qualityPlaning',
        name: 'qualityPlaningCancel',
        code: '0403',
        component: () => import('@/views/qualityManager/qualityPlaning'),
        meta: { code: '0403', title: '质检方案', icon: '', keepAlive: true }
      }, {
        path: 'processCheck',
        name: 'processCheckCancel',
        code: '0404',
        component: () => import('@/views/qualityManager/processCheck'),
        meta: { code: '0404', title: '工序检验', icon: '', keepAlive: true }
      }, {
        path: 'processCheckRecord',
        name: 'processCheckRecordCancel',
        code: '0405',
        component: () => import('@/views/qualityManager/processCheckRecord'),
        meta: { code: '0405', title: '工序检验', icon: '', keepAlive: true }
      }
    ]
  },
  {
    path: '/workOrder',
    component: Layout,
    redirect: '/workOrder/workOrderList',
    name: '工单管理',
    code: '1002',
    meta: { code: '1002', title: '工单管理', icon: 'bbgl' },
    code: '05',
    meta: { code: '05', title: '工单管理', icon: 'bbgl' },
    alwaysShow: true, // å½“children只有一个时,也显示父菜单
    children: [
      {
        path: 'produceOrderList',
        name: 'produceOrderListCancel',
        code: '0501',
        component: () => import('@/views/workOrder/produceOrderList'),
        meta: { code: '0501', title: 'ERP订单', icon: '', keepAlive: true }
      },
      {
        path: 'workOrderList',
        name: 'workOrderListCancel',
        code: '1020',
        code: '0502',
        component: () => import('@/views/workOrder/workOrderList'),
        meta: { code: '1010', title: '工单列表', icon: '', keepAlive: true }
        meta: { code: '0502', title: 'MES工单', icon: '', keepAlive: true }
      },
      {
        path: 'workOrderSend',
        name: 'workOrderSendCancel',
        code: '1021',
        code: '0503',
        component: () => import('@/views/workOrder/workOrderSend'),
        meta: { code: '1021', title: '工单派发', icon: '', keepAlive: true }
        meta: { code: '0503', title: '工单派发', icon: '', keepAlive: true }
      }, {
        path: 'workOrderClose',
        name: 'workOrderCloseCancel',
        code: '1022',
        code: '0504',
        component: () => import('@/views/workOrder/workOrderClose'),
        meta: { code: '1022', title: '工单关闭', icon: '', keepAlive: true }
        meta: { code: '0504', title: '工单关闭', icon: '', keepAlive: true }
      }
    ]
  },
  {
    path: '/produce',
    component: Layout,
    redirect: '/produce/stepReport',
    name: '生产执行',
    code: '1003',
    meta: { code: '1003', title: '生产执行', icon: 'production' },
    code: '06',
    meta: { code: '06', title: '生产执行', icon: 'component' },
    alwaysShow: true, // å½“children只有一个时,也显示父菜单
    children: [
      {
        path: 'stepReport',
        name: 'stepReportCancel',
        code: '1030',
        code: '0601',
        component: () => import('@/views/produce/stepReport'),
        meta: { code: '1030', title: '工序报工', icon: '', keepAlive: true }
        meta: { code: '0601', title: '工序报工', icon: '', keepAlive: true }
      },
      {
        path: 'reportCorrect',
        name: 'reportCorrectCancel',
        code: '1031',
        code: '0602',
        component: () => import('@/views/produce/reportCorrect'),
        meta: { code: '1031', title: '报工修正', icon: '', keepAlive: true }
        meta: { code: '0602', title: '报工调整', icon: '', keepAlive: true }
      }, {
        path: 'reportVerify',
        name: 'reportVerifyCancel',
        code: '1032',
        code: '0603',
        component: () => import('@/views/produce/reportVerify'),
        meta: { code: '1032', title: '报工审核', icon: '', keepAlive: true }
        meta: { code: '0603', title: '报工审核', icon: '', keepAlive: true }
      }
    ]
  },
  {
    path: '/statistic',
    component: Layout,
    redirect: '/statistic/reportList',
    name: '统计报表',
    code: '1004',
    meta: { code: '1004', title: '统计报表', icon: 'quality' },
    alwaysShow: true, // å½“children只有一个时,也显示父菜单
    children: [
      {
        path: 'reportList',
        name: 'reportListCancel',
        code: '1040',
        component: () => import('@/views/statistic/reportList'),
        meta: { code: '1040', title: '报工记录', icon: '', keepAlive: true }
      },
      {
        path: 'monthReport',
        name: 'monthReportCancel',
        code: '1041',
        component: () => import('@/views/statistic/monthReport'),
        meta: { code: '1041', title: '月度统计', icon: '', keepAlive: true }
      }, {
        path: 'workOrderProcess',
        name: 'workOrderProcessCancel',
        code: '1042',
        component: () => import('@/views/statistic/workOrderProcess'),
        meta: { code: '1042', title: '工单进度', icon: '', keepAlive: true }
      }, {
        path: 'inProcessList',
        name: 'inProcessListCancel',
        code: '1043',
        component: () => import('@/views/statistic/inProcessList'),
        meta: { code: '1043', title: '在制列表', icon: '', keepAlive: true }
      }
    ]
  },
  // {
  //   path: '/statistic',
  //   component: Layout,
  //   redirect: '/statistic/reportList',
  //   name: '统计报表',
  //   code: '1004',
  //   meta: { code: '1004', title: '统计报表', icon: 'quality' },
  //   alwaysShow: true, // å½“children只有一个时,也显示父菜单
  //   children: [
  //     {
  //       path: 'reportList',
  //       name: 'reportListCancel',
  //       code: '1040',
  //       component: () => import('@/views/statistic/reportList'),
  //       meta: { code: '1040', title: '报工记录', icon: '', keepAlive: true }
  //     },
  //     {
  //       path: 'monthReport',
  //       name: 'monthReportCancel',
  //       code: '1041',
  //       component: () => import('@/views/statistic/monthReport'),
  //       meta: { code: '1041', title: '月度统计', icon: '', keepAlive: true }
  //     }, {
  //       path: 'workOrderProcess',
  //       name: 'workOrderProcessCancel',
  //       code: '1042',
  //       component: () => import('@/views/statistic/workOrderProcess'),
  //       meta: { code: '1042', title: '工单进度', icon: '', keepAlive: true }
  //     }, {
  //       path: 'inProcessList',
  //       name: 'inProcessListCancel',
  //       code: '1043',
  //       component: () => import('@/views/statistic/inProcessList'),
  //       meta: { code: '1043', title: '在制列表', icon: '', keepAlive: true }
  //     }
  //
  //   ]
  // },
  {
    path: '/systemSetting',
    component: Layout,
    redirect: '/systemSetting/encodingRules',
    name: '系统设置',
    code: '1005',
    meta: { code: '1005', title: '系统设置', icon: 'xtsz' },
    code: '08',
    meta: { code: '08', title: '系统设置', icon: 'xtsz' },
    alwaysShow: true, // å½“children只有一个时,也显示父菜单
    children: [
      {
        path: 'reportList',
        name: 'reportListCancel',
        code: '1050',
        component: () => import('@/views/systemSetting/encodingRules'),
        meta: { code: '1050', title: '编码规则', icon: '', keepAlive: true }
      }, {
        path: 'menuList',
        name: 'menuListCancel',
        code: '1051',
        code: '0801',
        component: () => import('@/views/systemSetting/menuList'),
        meta: { code: '1051', title: '菜单管理', icon: '', keepAlive: true }
        meta: { code: '0801', title: '菜单管理', icon: '', keepAlive: true }
      },
      {
        path: 'reportList',
        name: 'reportListCancel',
        code: '0802',
        component: () => import('@/views/systemSetting/encodingRules'),
        meta: { code: '0802', title: '编码规则', icon: '', keepAlive: true }
      }
    ]
  }
src/store/modules/user.js
@@ -75,7 +75,6 @@
  // get user menu
  getMenu({ commit, state }) {
    return new Promise((resolve, reject) => {
      // console.log('菜单接口进来了11111')
      LoginMenu({
        usertype: 'PC',
        usercode: localStorage.getItem('usercode'),
@@ -83,8 +82,6 @@
      }).then(res => {
        if (res.code === '200') {
          ButtonData().then(res2 => {
            // localStorage.setItem('buttoncode', res2.data.map(i => i.buttoncode))
            Vue.prototype.$buttoncode = res2.data.map(i => i.buttoncode)
            localStorage.setItem('ButtonData', JSON.stringify(res2.data))
          })
src/utils/request.js
@@ -17,6 +17,8 @@
    config.headers['Token'] = localStorage.getItem('token')
    config.headers['Menucode'] = getCookie('ruleCode') // ç¼–码规则
    config.headers['Datacode'] = getCookie('datacode') // æ•°æ®æƒé™
    return config
  },
  error => {
@@ -96,6 +98,7 @@
      type: 'error',
      duration: 5 * 1000
    })
    store.state.app.buttonIsDisabled = false
    return Promise.reject(error)
  }
)
src/views/basicSettings/contactUnitList.vue
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,11 @@
<template />
<script>
export default {
  name: 'ContactUnitList'
}
</script>
<style scoped>
</style>
src/views/basicSettings/installLampList.vue
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,11 @@
<template />
<script>
export default {
  name: 'InstallLampList'
}
</script>
<style scoped>
</style>
src/views/basicSettings/personList.vue
@@ -22,6 +22,7 @@
          <el-tree
            ref="treeLeftRef"
            key="treeLeftKey"
            style="padding: 10px;overflow: auto;"
            :style="{height:(tableHeight+180)+'px'}"
            :data="treeLeft"
@@ -526,8 +527,10 @@
        customID: 'torg_code',
        childrenProperty: 'children'
      })
      this.$nextTick(() => {
      this.treeLeft = this.cascaderOptions
        this.$forceUpdate()
      })
    },
    // å²—位 è§’色 ç­ç»„
    async getAllSelectData() {
src/views/basicSettings/powerDivider.vue
@@ -57,7 +57,7 @@
              <div style="display: flex;">
                <div
                  ref="scrollLeft"
                  style="border-right: 1px solid rgba(0,0,0,0.2);width: 220px;
                  style="border-right: 1px solid rgba(0,0,0,0.2);width:260px;
                  overflow-y: auto;overflow-x:hidden;"
                  :style="{height:(tableHeight-40)+'px'}"
                  @scroll="scrollLeftScroll()"
@@ -83,7 +83,7 @@
                </div>
                <div
                  ref="scrollCenter"
                  style="width: 660px;padding-left: 10px;overflow-y: auto"
                  style="width: calc(100% - 260px );padding-left: 10px;overflow-y: auto"
                  :style="{height:(tableHeight-40)+'px'}"
                  @scroll="scrollCenterScroll()"
                  @mouseover="isScroll='center'"
@@ -476,4 +476,13 @@
::v-deep .el-checkbox__label {
  width: 55px;
}
.el-checkbox-group {
  margin-left: 0 !important;
  padding-left: 40px;
}
.el-checkbox-group:hover {
  background: #f0f7ff;
}
</style>
src/views/basicSettings/storageList.vue
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,11 @@
<template />
<script>
export default {
  name: 'StorageList'
}
</script>
<style scoped>
</style>
src/views/basicSettings/warehouseList.vue
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,11 @@
<template />
<script>
export default {
  name: 'WarehouseLIst'
}
</script>
<style scoped>
</style>
src/views/deviceManager/checkPosition.vue
src/views/deviceManager/checkRecord.vue
src/views/deviceManager/checkStandard.vue
src/views/deviceManager/deviceList.vue
src/views/deviceManager/maintainPosition.vue
src/views/deviceManager/maintainRecord.vue
src/views/deviceManager/maintainStandard.vue
src/views/deviceManager/repairRecord.vue
src/views/materialManager/inventoryList.vue
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,11 @@
<template />
<script>
export default {
  name: 'InventoryList'
}
</script>
<style scoped>
</style>
src/views/materialManager/materialList.vue
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,11 @@
<template />
<script>
export default {
  name: 'MaterialList'
}
</script>
<style scoped>
</style>
src/views/materialManager/unitList.vue
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,11 @@
<template />
<script>
export default {
  name: 'UnitList'
}
</script>
<style scoped>
</style>
src/views/qualityManager/defectDefine.vue
src/views/qualityManager/processCheck.vue
src/views/qualityManager/processCheckItem.vue
src/views/qualityManager/processCheckRecord.vue
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,11 @@
<template />
<script>
export default {
  name: 'ProcessCheckRecord'
}
</script>
<style scoped>
</style>
src/views/qualityManager/qualityPlaning.vue
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,11 @@
<template />
<script>
export default {
  name: 'QualityPlaning'
}
</script>
<style scoped>
</style>
src/views/workOrder/produceOrderList.vue
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,11 @@
<template />
<script>
export default {
  name: 'ProduceOrderList'
}
</script>
<style scoped>
</style>