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",
"-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",
"-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: '设备',
icon: <IconCode />,
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',
text: '服务器信息',
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: [{
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';
export function getNavItem (user, dispatch) {
return (
[
{
itemKey: 'service',
text: '服务',
icon: <IconCode />,
items: [
{
itemKey: 'reportingServices',
text: '报表服务',
icon: <iconpark-icon style={{ width: 20, height: 20 }} name="iconjianshezhong"></iconpark-icon>,
to: '/service/reportingServices/reportManagement',
items: [{
itemKey: 'reportManagement', to: '/service/reportingServices/reportManagement', text: '报表管理'
}]
}, {
itemKey: 'maintenancePlan',
text: '维护计划',
icon: <iconpark-icon style={{ width: 20, height: 20 }} name="iconjianshezhong"></iconpark-icon>,
to: '/service/maintenancePlan/cyclePlan',
items: [{
itemKey: 'cyclePlan', to: '/service/maintenancePlan/cyclePlan', text: '周期计划'
}, {
itemKey: 'temporaryResponse', to: '/service/maintenancePlan/temporaryResponse', text: '临时响应'
}]
}, {
itemKey: 'carrierPigeon',
text: '信鸽服务',
icon: <iconpark-icon style={{ width: 20, height: 20 }} name="xingefuwu"></iconpark-icon>,
to: '/service/carrierPigeon/emPush',
items: [{
itemKey: 'emPush', to: '/service/carrierPigeon/emPush', text: 'EM推送'
},{
itemKey: 'appPush', to: '/service/carrierPigeon/appPush', text: '应用推送'
}]
},{
itemKey: 'preventiveMaintenance',
text: '预防性维保',
icon: <iconpark-icon style={{ width: 20, height: 20 }} name="iconjianshezhong"></iconpark-icon>,
to: '/service/preventiveMaintenance/maintenanceModel',
items: [{
itemKey: 'maintenanceModel', to: '/service/preventiveMaintenance/maintenanceModel', text: '维保模型'
}]
},{
itemKey: 'serviceRecord',
text: '服务记录',
icon: <iconpark-icon style={{ width: 20, height: 20 }} name="iconjianshezhong"></iconpark-icon>,
to: '/service/serviceRecord/serviceRecord1',
items: [{
itemKey: 'serviceRecord1', to: '/service/serviceRecord/serviceRecord1', text: '服务记录'
}]
}
]
},
]
);
return (
[
{
itemKey: 'service',
text: '服务',
icon: <IconCode />,
items: [
{
itemKey: 'reportingServices',
text: '报表服务',
icon: <iconpark-icon style={{ width: 20, height: 20 }} name="iconjianshezhong"></iconpark-icon>,
to: '/service/reportingServices/reportManagement',
items: [{
itemKey: 'reportManagement', to: '/service/reportingServices/reportManagement', text: '报表管理'
}]
}, {
itemKey: 'maintenancePlan',
text: '维护计划',
icon: <iconpark-icon style={{ width: 20, height: 20 }} name="iconjianshezhong"></iconpark-icon>,
to: '/service/maintenancePlan/cyclePlan',
items: [{
itemKey: 'cyclePlan', to: '/service/maintenancePlan/cyclePlan', text: '周期计划'
}, {
itemKey: 'temporaryResponse', to: '/service/maintenancePlan/temporaryResponse', text: '临时响应'
}]
}, {
itemKey: 'carrierPigeon',
text: '信鸽服务',
icon: <iconpark-icon style={{ width: 20, height: 20 }} name="xingefuwu"></iconpark-icon>,
to: '/service/carrierPigeon/emPush',
items: [{
itemKey: 'emPush', to: '/service/carrierPigeon/emPush', text: 'EM推送'
}, {
itemKey: 'appPush', to: '/service/carrierPigeon/appPush', text: '应用推送'
}]
},
// {
// itemKey: 'preventiveMaintenance',
// text: '',
// icon: <iconpark-icon style={{ width: 20, height: 20 }} name="iconjianshezhong"></iconpark-icon>,
// to: '/service/preventiveMaintenance/maintenanceModel',
// items: [{
// itemKey: 'maintenanceModel', to: '/service/preventiveMaintenance/maintenanceModel', text: ''
// }]
// },
{
itemKey: 'serviceRecord',
text: '服务记录',
icon: <iconpark-icon style={{ width: 20, height: 20 }} name="iconjianshezhong"></iconpark-icon>,
to: '/service/serviceRecord/serviceRecord1',
items: [{
itemKey: 'serviceRecord1', to: '/service/serviceRecord/serviceRecord1', text: '服务记录'
}]
}
]
},
]
);
}
Loading…
Cancel
Save