导航地址
This commit is contained in:
19
pages/device/WorkManage.vue
Normal file
19
pages/device/WorkManage.vue
Normal file
@@ -0,0 +1,19 @@
|
||||
<template>
|
||||
<view>
|
||||
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="stylus">
|
||||
|
||||
</style>
|
||||
@@ -35,31 +35,34 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {authority} from '@/utils/getData2.js'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
userName: this.$store.getters.userInfo !== '' ? JSON.parse(this.$store.getters.userInfo).username : '',
|
||||
menuList: [],
|
||||
menuList: [
|
||||
{menu_id: '1', icon: 'RF06', name: '仓储管理', sonTree: [
|
||||
{menu_id: '1', name: '原辅料收料', path: '/pages/warehouse/RawmaterialRevice'},
|
||||
{menu_id: '2', name: '半成品入库', path: '/pages/warehouse/SemifinishedInStore'},
|
||||
{menu_id: '3', name: '半成品出库', path: '/pages/warehouse/SemifinishedOutStore'},
|
||||
{menu_id: '4', name: '空箱出库', path: '/pages/warehouse/EmptyOutStore'}
|
||||
]},
|
||||
{menu_id: '2', icon: 'RF01', name: '设备管理', sonTree: [
|
||||
{menu_id: '1', name: '设备作业管理', path: '/pages/device/WorkManage'},
|
||||
{menu_id: '2', name: '设备维修作业', path: '/pages/device/RepairWork'},
|
||||
{menu_id: '3', name: '设备点检作业', path: '/pages/modules/EquipMaintainExecute'},
|
||||
{menu_id: '4', name: '设备润滑作业', path: '/pages/modules/EquipMaintainExecute'},
|
||||
{menu_id: '5', name: '设备保养作业', path: '/pages/modules/EquipMaintainExecute'}
|
||||
]}
|
||||
],
|
||||
show: false,
|
||||
secM: []
|
||||
};
|
||||
},
|
||||
created () {
|
||||
this._authority()
|
||||
this.$store.dispatch('publicObj', '')
|
||||
},
|
||||
methods: {
|
||||
async _authority () {
|
||||
let res = await authority()
|
||||
this.menuList = [...res.sonTree]
|
||||
|
||||
},
|
||||
toPage1 (e) {
|
||||
// let url = e.path
|
||||
// uni.redirectTo({
|
||||
// url: url
|
||||
// })
|
||||
if (e.sonTree.length > 0) {
|
||||
this.show = true
|
||||
this.secM = e.sonTree
|
||||
|
||||
Reference in New Issue
Block a user