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