This commit is contained in:
2023-10-07 09:31:24 +08:00
parent 55bf1c5be5
commit 8023f30d3a

View File

@@ -49,8 +49,13 @@
// ], // ],
menuList: [ menuList: [
{menu_id: '1', icon: 'RF01', name: '设备点检', path: '/pages/modules/equip-inspection', sonTree: []}, {menu_id: '1', icon: 'RF01', name: '设备点检', path: '/pages/modules/equip-inspection', sonTree: []},
{menu_id: '2', icon: 'RF05', name: '人工组盘', path: '/pages/modules/man-group', sonTree: []}, {menu_id: '2', icon: 'RF02', name: '设备操作', path: '/pages/modules/equip-operate', sonTree: []},
{menu_id: '3', icon: 'RF07', name: '强制静置', path: '/pages/modules/forced-rest', sonTree: []} {menu_id: '2', icon: 'RF02', name: '人工分拣', path: '', sonTree: [
{menu_id: '1', icon: 'RF03', name: '分拣排产', path: '/pages/modules/man-sort-schedue'}
]},
{menu_id: '3', icon: 'RF05', name: '人工组盘', path: '/pages/modules/man-group', sonTree: []},
{menu_id: '4', icon: 'RF06', name: '混碾搬运', path: '/pages/modules/hunnian-carry', sonTree: []},
{menu_id: '5', icon: 'RF07', name: '强制静置', path: '/pages/modules/forced-rest', sonTree: []}
], ],
show: false, show: false,
secM: [] secM: []
@@ -63,14 +68,15 @@
}, },
methods: { methods: {
toPage1 (e) { toPage1 (e) {
let url = e.path if (e.sonTree.length > 0) {
uni.redirectTo({ this.show = true
url: url this.secM = e.sonTree
}) } else {
// if (e.sonTree.length > 0) { let url = e.path
// this.show = true uni.redirectTo({
// this.secM = e.sonTree url: url
// } })
}
}, },
toPage2 (e) { toPage2 (e) {
let url = e.path let url = e.path