检查表手动添加检查项时根据部门类型展示不一样

This commit is contained in:
王利强
2026-08-03 11:51:07 +08:00
parent 088ff356f2
commit ec76d588e2
50 changed files with 826 additions and 428 deletions

View File

@@ -37,7 +37,7 @@ const _sfc_main = {
identityName: "",
userIdentity: null
});
const currentRoleKey = common_vendor.computed(() => utils_userInfo.resolveUserRoleKey(userInfo));
const currentRoleKey = common_vendor.computed(() => utils_userInfo.resolveUserIdentityRoleKey(userInfo));
const isApprovalRole = common_vendor.computed(() => currentRoleKey.value === "approval");
const displayIdentityName = common_vendor.computed(() => {
return utils_userInfo.resolveIdentityName(userInfo, userInfo.userIdentity);
@@ -105,7 +105,7 @@ const _sfc_main = {
const commonMenuNames = ["隐患排查", "隐患销号"];
const infoList = common_vendor.computed(() => {
if (currentRoleKey.value === "approval") {
return [];
return allMenuList.filter((item) => item.name === "隐患排查");
}
if (currentRoleKey.value === "common") {
return allMenuList.filter((item) => commonMenuNames.includes(item.name));
@@ -492,8 +492,8 @@ const _sfc_main = {
size: "14"
}),
i: common_vendor.o(goSwitchIdentity),
j: !isApprovalRole.value
}, !isApprovalRole.value ? {
j: infoList.value.length > 0
}, infoList.value.length > 0 ? {
k: common_vendor.f(infoList.value, (item, index, i0) => {
return {
a: item.src,