Browse Source

隐藏几个菜单

dev
巴林闲侠 2 years ago
parent
commit
7919a76dce
  1. 3
      api/.vscode/launch.json
  2. 17
      web/client/src/sections/facility/nav-item.jsx
  3. 17
      web/client/src/sections/install/nav-item.jsx
  4. 114
      web/client/src/sections/service/nav-item.jsx

3
api/.vscode/launch.json

@ -16,7 +16,8 @@
"-p 4600", "-p 4600",
"-f http://localhost:4600", "-f http://localhost:4600",
// //
"-g postgres://postgres:123@10.8.30.32:5432/orational_service", // "-g postgres://postgres:123@10.8.30.32:5432/orational_service",
"-g postgres://postgres:123@10.8.30.166:5432/POMS_2306",
// //
// "-g postgres://FashionAdmin:123456@10.8.30.156:5432/POMS", // "-g postgres://FashionAdmin:123456@10.8.30.156:5432/POMS",
"-k 10.8.30.72:29092,10.8.30.73:29092,10.8.30.74:29092", "-k 10.8.30.72:29092,10.8.30.73:29092,10.8.30.74:29092",

17
web/client/src/sections/facility/nav-item.jsx

@ -9,15 +9,16 @@ export function getNavItem (user, dispatch) {
text: '设备', text: '设备',
icon: <IconCode />, icon: <IconCode />,
items: [ items: [
// {
// itemKey: 'deviceQuery',
// text: '',
// icon: <iconpark-icon style={{ width: 20, height: 20 }} name="iconjianshezhong"></iconpark-icon>,
// to: '/facility/deviceQuery/maintenanceRecords1',
// items: [{
// itemKey: 'maintenanceRecords1', to: '/facility/deviceQuery/maintenanceRecords1', text: ''
// }]
// },
{ {
itemKey: 'deviceQuery',
text: '设备查询',
icon: <iconpark-icon style={{ width: 20, height: 20 }} name="iconjianshezhong"></iconpark-icon>,
to: '/facility/deviceQuery/maintenanceRecords1',
items: [{
itemKey: 'maintenanceRecords1', to: '/facility/deviceQuery/maintenanceRecords1', text: '维护记录'
}]
}, {
itemKey: 'serverInformation', itemKey: 'serverInformation',
text: '服务器信息', text: '服务器信息',
icon: <iconpark-icon style={{ width: 20, height: 20 }} name="iconjianshezhong"></iconpark-icon>, icon: <iconpark-icon style={{ width: 20, height: 20 }} name="iconjianshezhong"></iconpark-icon>,

17
web/client/src/sections/install/nav-item.jsx

@ -33,15 +33,16 @@ export function getNavItem (user, dispatch) {
items: [{ items: [{
itemKey: 'setup', to: '/install/order/setup', text: '工单设置' itemKey: 'setup', to: '/install/order/setup', text: '工单设置'
}] }]
}, {
itemKey: 'relation',
text: '容差管理',
icon: <iconpark-icon style={{ width: 20, height: 20 }} name="iconjianshezhong"></iconpark-icon>,
to: '/install/relation/set',
items: [{
itemKey: 'set', to: '/install/relation/set', text: '容差设置'
}]
}, },
// {
// itemKey: 'relation',
// text: '',
// icon: <iconpark-icon style={{ width: 20, height: 20 }} name="iconjianshezhong"></iconpark-icon>,
// to: '/install/relation/set',
// items: [{
// itemKey: 'set', to: '/install/relation/set', text: ''
// }]
// },
] ]
}, },
] ]

114
web/client/src/sections/service/nav-item.jsx

@ -2,60 +2,62 @@ import React from 'react';
import { IconCode } from '@douyinfe/semi-icons'; import { IconCode } from '@douyinfe/semi-icons';
export function getNavItem (user, dispatch) { export function getNavItem (user, dispatch) {
return ( return (
[ [
{ {
itemKey: 'service', itemKey: 'service',
text: '服务', text: '服务',
icon: <IconCode />, icon: <IconCode />,
items: [ items: [
{ {
itemKey: 'reportingServices', itemKey: 'reportingServices',
text: '报表服务', text: '报表服务',
icon: <iconpark-icon style={{ width: 20, height: 20 }} name="iconjianshezhong"></iconpark-icon>, icon: <iconpark-icon style={{ width: 20, height: 20 }} name="iconjianshezhong"></iconpark-icon>,
to: '/service/reportingServices/reportManagement', to: '/service/reportingServices/reportManagement',
items: [{ items: [{
itemKey: 'reportManagement', to: '/service/reportingServices/reportManagement', text: '报表管理' itemKey: 'reportManagement', to: '/service/reportingServices/reportManagement', text: '报表管理'
}] }]
}, { }, {
itemKey: 'maintenancePlan', itemKey: 'maintenancePlan',
text: '维护计划', text: '维护计划',
icon: <iconpark-icon style={{ width: 20, height: 20 }} name="iconjianshezhong"></iconpark-icon>, icon: <iconpark-icon style={{ width: 20, height: 20 }} name="iconjianshezhong"></iconpark-icon>,
to: '/service/maintenancePlan/cyclePlan', to: '/service/maintenancePlan/cyclePlan',
items: [{ items: [{
itemKey: 'cyclePlan', to: '/service/maintenancePlan/cyclePlan', text: '周期计划' itemKey: 'cyclePlan', to: '/service/maintenancePlan/cyclePlan', text: '周期计划'
}, { }, {
itemKey: 'temporaryResponse', to: '/service/maintenancePlan/temporaryResponse', text: '临时响应' itemKey: 'temporaryResponse', to: '/service/maintenancePlan/temporaryResponse', text: '临时响应'
}] }]
}, { }, {
itemKey: 'carrierPigeon', itemKey: 'carrierPigeon',
text: '信鸽服务', text: '信鸽服务',
icon: <iconpark-icon style={{ width: 20, height: 20 }} name="xingefuwu"></iconpark-icon>, icon: <iconpark-icon style={{ width: 20, height: 20 }} name="xingefuwu"></iconpark-icon>,
to: '/service/carrierPigeon/emPush', to: '/service/carrierPigeon/emPush',
items: [{ items: [{
itemKey: 'emPush', to: '/service/carrierPigeon/emPush', text: 'EM推送' itemKey: 'emPush', to: '/service/carrierPigeon/emPush', text: 'EM推送'
},{ }, {
itemKey: 'appPush', to: '/service/carrierPigeon/appPush', text: '应用推送' itemKey: 'appPush', to: '/service/carrierPigeon/appPush', text: '应用推送'
}] }]
},{ },
itemKey: 'preventiveMaintenance', // {
text: '预防性维保', // itemKey: 'preventiveMaintenance',
icon: <iconpark-icon style={{ width: 20, height: 20 }} name="iconjianshezhong"></iconpark-icon>, // text: '',
to: '/service/preventiveMaintenance/maintenanceModel', // icon: <iconpark-icon style={{ width: 20, height: 20 }} name="iconjianshezhong"></iconpark-icon>,
items: [{ // to: '/service/preventiveMaintenance/maintenanceModel',
itemKey: 'maintenanceModel', to: '/service/preventiveMaintenance/maintenanceModel', text: '维保模型' // items: [{
}] // itemKey: 'maintenanceModel', to: '/service/preventiveMaintenance/maintenanceModel', text: ''
},{ // }]
itemKey: 'serviceRecord', // },
text: '服务记录', {
icon: <iconpark-icon style={{ width: 20, height: 20 }} name="iconjianshezhong"></iconpark-icon>, itemKey: 'serviceRecord',
to: '/service/serviceRecord/serviceRecord1', text: '服务记录',
items: [{ icon: <iconpark-icon style={{ width: 20, height: 20 }} name="iconjianshezhong"></iconpark-icon>,
itemKey: 'serviceRecord1', to: '/service/serviceRecord/serviceRecord1', text: '服务记录' to: '/service/serviceRecord/serviceRecord1',
}] items: [{
} itemKey: 'serviceRecord1', to: '/service/serviceRecord/serviceRecord1', text: '服务记录'
] }]
}, }
] ]
); },
]
);
} }
Loading…
Cancel
Save