岗位菜单权限与日报审核

This commit is contained in:
zhanghj
2026-08-10 15:51:44 +08:00
parent f1a88239f6
commit b46d9f6cbc
18 changed files with 26203 additions and 18 deletions
+8
View File
@@ -307,6 +307,14 @@
// 优先按 URL 规则解析(焊接接头等)
const parsed = parseScanResult(result)
if (parsed) {
// 扫码跳转前校验岗位权限(现场人员 UserType=3 按岗位限制)
if (!menuStore.canAccessPath(parsed.path)) {
uni.showToast({
title: '当前岗位无此功能权限',
icon: 'none'
})
return
}
uni.navigateTo({
url: `${parsed.path}?${parsed.query}`
})