From 4e44261ac4f6dcac2f15b3d30636d4b4823f6918 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期三, 27 五月 2026 13:24:38 +0800
Subject: [PATCH] 君哥 1.恢复之前工艺路线模块,删除字段计件/计时字段,工资定额修改成计划工时,新增计划执行人员。工艺绑定,工艺路线恢复。仅需删除bom。 2.对于新增订单需流转协同办公进行审批,审批完成流转生产管控-生产订单 3.新增审批管理,规范管理所有节点审批人。 4.修改菜单栏样式bug
---
src/store/modules/permission.js | 35 ++++++++++-------------------------
1 files changed, 10 insertions(+), 25 deletions(-)
diff --git a/src/store/modules/permission.js b/src/store/modules/permission.js
index 8a2b1a9..6a16d9d 100644
--- a/src/store/modules/permission.js
+++ b/src/store/modules/permission.js
@@ -85,28 +85,13 @@
function filterChildren(childrenMap, lastRouter = false) {
var children = []
- childrenMap.forEach((el, index) => {
- if (el.children && el.children.length) {
- if (el.component === 'ParentView' && !lastRouter) {
- el.children.forEach(c => {
- c.path = el.path + '/' + c.path
- if (c.children && c.children.length) {
- children = children.concat(filterChildren(c.children, c))
- return
- }
- children.push(c)
- })
- return
- }
+ childrenMap.forEach(el => {
+ el.path = lastRouter ? lastRouter.path + '/' + el.path : el.path
+ if (el.children && el.children.length && el.component === 'ParentView') {
+ children = children.concat(filterChildren(el.children, el))
+ } else {
+ children.push(el)
}
- if (lastRouter) {
- el.path = lastRouter.path + '/' + el.path
- if (el.children && el.children.length) {
- children = children.concat(filterChildren(el.children, el))
- return
- }
- }
- children = children.concat(el)
})
return children
}
@@ -129,14 +114,14 @@
}
export const loadView = (view) => {
- let res;
+ let res
for (const path in modules) {
- const dir = path.split('views/')[1].split('.vue')[0];
+ const dir = path.split('views/')[1].split('.vue')[0]
if (dir === view) {
- res = () => modules[path]();
+ res = () => modules[path]()
}
}
- return res;
+ return res
}
export default usePermissionStore
--
Gitblit v1.9.3