导航图片

This commit is contained in:
2024-03-04 09:19:42 +08:00
parent 6fe63bdfbe
commit 258f19bd3b
5 changed files with 40 additions and 53 deletions

View File

@@ -38,67 +38,58 @@
data() { data() {
return { return {
userName: '', userName: '',
index: 1, index: '',
activeArr: [], activeArr: [],
menuList: [ menuList: [
{id: 1, name: '仓储管理', icon: 'RF01', sonTreen: [{ {id: '1', name: '仓储管理', icon: 'RF01', sonTreen: [{
id: 'sec1', name: '半成品库管理',sonTreen: [ id: '0101', name: '半成品库管理',sonTreen: [
{id: 'thi1', name: '半成品入库', path: '/pages/modules/SemifinishedInStore'}, {id: '010101', name: '半成品入库', path: '/pages/modules/SemifinishedInStore'},
{id: 'thi2', name: '半成品出库', path: '/pages/modules/SemifinishedOutStore'}, {id: '010102', name: '半成品出库', path: '/pages/modules/SemifinishedOutStore'},
{id: 'thi3', name: '空箱出库', path: '/pages/modules/EmptyOutStore'} {id: '010103', name: '空箱出库', path: '/pages/modules/EmptyOutStore'},
{id: '010104', name: '出入库顺序表', path: '/pages/modules/SequenceTable'}
] ]
}]}, }]},
{id: 2, name: '振动清洗管理', icon: 'RF02', sonTreen: [{ {id: '2', name: '振动清洗管理', icon: 'RF02', sonTreen: [{
id: 'sec1', name: '缓存线管理',sonTreen: [ id: '0201', name: '缓存线管理',sonTreen: [
{id: 'thi1', name: '缓存线叫料', path: '/pages/modules/SemifinishedInStore'}, {id: '020101', name: '缓存线叫料', path: '/pages/modules/SemifinishedInStore'},
{id: 'thi1', name: '缓存线盘点', path: '/pages/modules/SemifinishedInStore'} {id: '020102', name: '缓存线盘点', path: '/pages/modules/SemifinishedInStore'}
] ]
}, { }, {
id: 'sec1', name: '清洗管理',sonTreen: [ id: '0202', name: '清洗管理',sonTreen: [
{id: 'thi1', name: '清洗上料', path: '/pages/modules/SemifinishedInStore'}, {id: '020201', name: '清洗上料', path: '/pages/modules/SemifinishedInStore'},
{id: 'thi2', name: '清洗下料', path: '/pages/modules/SemifinishedInStore'} {id: '020202', name: '清洗下料', path: '/pages/modules/SemifinishedInStore'}
] ]
}]}, }]},
{id: 3, name: '激光下料清洗管理', icon: 'RF03', sonTreen: [{ {id: '3', name: '激光下料清洗管理', icon: 'RF03', sonTreen: [{
id: 'sec1', name: '清洗管理',sonTreen: [ id: '0301', name: '清洗管理',sonTreen: [
{id: 'thi1', name: '清洗上料', path: '/pages/modules/SemifinishedInStore'}, {id: '030101', name: '清洗上料', path: '/pages/modules/SemifinishedInStore'},
{id: 'thi2', name: '清洗下料', path: '/pages/modules/SemifinishedInStore'} {id: '030102', name: '清洗下料', path: '/pages/modules/SemifinishedInStore'}
] ]
}]}, }]},
{id: 4, name: '发黑清洗管理', icon: 'RF04', sonTreen: [{ {id: '4', name: '发黑清洗管理', icon: 'RF04', sonTreen: [{
id: 'sec1', name: '清洗管理',sonTreen: [ id: '0401', name: '清洗管理',sonTreen: [
{id: 'thi1', name: '清洗上料', path: '/pages/modules/SemifinishedInStore'}, {id: '040101', name: '清洗上料', path: '/pages/modules/SemifinishedInStore'},
{id: 'thi2', name: '清洗下料', path: '/pages/modules/SemifinishedInStore'} {id: '040102', name: '清洗下料', path: '/pages/modules/SemifinishedInStore'}
] ]
}, { }, {
id: 'sec2', name: '退货管理',sonTreen: [ id: '0402', name: '退货管理',sonTreen: [
{id: 'thi1', name: '退货缓存区', path: '/pages/modules/SemifinishedInStore'}, {id: '040201', name: '退货缓存区', path: '/pages/modules/SemifinishedInStore'},
{id: 'thi2', name: '退货中物料', path: '/pages/modules/SemifinishedInStore'} {id: '040202', name: '退货中物料', path: '/pages/modules/SemifinishedInStore'}
] ]
}]}, }]},
{id: 5, name: '环保清洗管理', icon: 'RF01', sonTreen: [{ {id: '5', name: '环保清洗管理', icon: 'RF05', sonTreen: [{
id: 'sec1', name: '缓存区管理',sonTreen: [ id: '0501', name: '缓存区管理',sonTreen: [
{id: 'thi1', name: '缓存线叫料', path: '/pages/modules/SemifinishedInStore'}, {id: '050101', name: '缓存线叫料', path: '/pages/modules/SemifinishedInStore'},
{id: 'thi2', name: '缓存线盘点', path: '/pages/modules/SemifinishedInStore'} {id: '050102', name: '缓存线盘点', path: '/pages/modules/SemifinishedInStore'}
] ]
}, { }, {
id: 'sec2', name: '清洗管理',sonTreen: [ id: '0502', name: '清洗管理',sonTreen: [
{id: 'thi1', name: '清洗叫料', path: '/pages/modules/SemifinishedInStore'}, {id: '050201', name: '清洗叫料', path: '/pages/modules/SemifinishedInStore'},
{id: 'thi2', name: '清洗上料', path: '/pages/modules/SemifinishedInStore'}, {id: '050202', name: '清洗上料', path: '/pages/modules/SemifinishedInStore'},
{id: 'thi3', name: '清洗物料列表', path: '/pages/modules/SemifinishedInStore'} {id: '050203', name: '清洗物料列表', path: '/pages/modules/SemifinishedInStore'}
] ]
}]} }]}
], ]
menuList1: [
{id: '1', name: '仓储管理', sonTree: [
{menu_id: '1', icon: 'RF01', name: '半成品入库', path: '/pages/modules/SemifinishedInStore'},
{menu_id: '2', icon: 'RF02', name: '半成品出库', path: '/pages/modules/SemifinishedOutStore'},
{menu_id: '3', icon: 'RF03', name: '空箱出库', path: '/pages/modules/EmptyOutStore'},
{menu_id: '4', icon: 'RF04', name: '出入库顺序表', path: '/pages/modules/SequenceTable'}
]}
],
show: false,
secM: []
}; };
}, },
created () { created () {
@@ -106,15 +97,12 @@
if (this.$store.getters.userInfo) { if (this.$store.getters.userInfo) {
this.userName = JSON.parse(this.$store.getters.userInfo).username this.userName = JSON.parse(this.$store.getters.userInfo).username
} }
this.index = this.menuList[0].id
this.activeArr = this.menuList[0].sonTreen this.activeArr = this.menuList[0].sonTreen
}, },
methods: { methods: {
async _authority () {
let res = await authority()
this.menuList = [...res.sonTree]
},
toMenu (e) { toMenu (e) {
this.index = e.id
this.activeArr = [...e.sonTreen] this.activeArr = [...e.sonTreen]
}, },
toPage (e) { toPage (e) {
@@ -124,11 +112,10 @@
}) })
}, },
Quit () { Quit () {
console.log(this.activeArr) this.$store.dispatch('delUserInfo')
// this.$store.dispatch('delUserInfo') uni.redirectTo({
// uni.redirectTo({ url: '/pages/login/login'
// url: '/pages/login/login' })
// })
} }
} }
} }

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

BIN
static/image/menu/RF05.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB