导航地址

This commit is contained in:
2023-09-08 09:42:08 +08:00
parent e350d35e34
commit fb876f841b
4 changed files with 42 additions and 34 deletions

View File

@@ -57,17 +57,13 @@
} }
}, },
{ {
<<<<<<< HEAD
"path": "pages/modules/EquipMaintainSure", "path": "pages/modules/EquipMaintainSure",
"style": { "style": {
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, },
{ {
"path": "pages/modules/EquipRepairExecute",
=======
"path": "pages/device/RepairWork", "path": "pages/device/RepairWork",
>>>>>>> 7f09ba976650bb89b69572bac02657185529bbed
"style": { "style": {
"navigationStyle": "custom" "navigationStyle": "custom"
} }
@@ -90,7 +86,14 @@
"navigationStyle": "custom" "navigationStyle": "custom"
} }
} },
{
"path" : "pages/device/WorkManage",
"style": {
"navigationStyle": "custom"
}
}
], ],
"globalStyle": { "globalStyle": {
// "pageOrientation": "landscape", // "pageOrientation": "landscape",

View File

@@ -0,0 +1,19 @@
<template>
<view>
</view>
</template>
<script>
export default {
data() {
return {
};
}
}
</script>
<style lang="stylus">
</style>

View File

@@ -35,31 +35,34 @@
</template> </template>
<script> <script>
import {authority} from '@/utils/getData2.js'
export default { export default {
data() { data() {
return { return {
userName: this.$store.getters.userInfo !== '' ? JSON.parse(this.$store.getters.userInfo).username : '', 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, show: false,
secM: [] secM: []
}; };
}, },
created () { created () {
this._authority()
this.$store.dispatch('publicObj', '') this.$store.dispatch('publicObj', '')
}, },
methods: { methods: {
async _authority () {
let res = await authority()
this.menuList = [...res.sonTree]
},
toPage1 (e) { toPage1 (e) {
// let url = e.path
// uni.redirectTo({
// url: url
// })
if (e.sonTree.length > 0) { if (e.sonTree.length > 0) {
this.show = true this.show = true
this.secM = e.sonTree this.secM = e.sonTree

View File

@@ -59,23 +59,6 @@ export const handRequest = () => request({
data: {} data: {}
}) })
// 菜单
export const authority = () => {
let res = {
sonTree: [
// {menu_id: '5', icon: 'RF04', name: '设备点检', path: '/pages/modules/equip-inspection', sonTree: []}
{menu_id: '1', icon: 'RF06', name: '仓储管理', sonTree: [
{menu_id: '1', name: '半成品入库', path: '/pages/modules/SemifinishedInStore'},
{menu_id: '2', name: '半成品出库', path: '/pages/modules/SemifinishedOutStore'},
{menu_id: '3', name: '空箱出库', path: '/pages/modules/EmptyOutStore'}
]},
{menu_id: '2', icon: 'RF01', name: '生产管理', path: '', sonTree: []}
]
}
return res
}
/** /**
* 半成品入库 * 半成品入库
*/ */