岗位菜单权限与日报审核
This commit is contained in:
@@ -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}`
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user