检查表手动添加检查项时根据部门类型展示不一样
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user