fix bug#4066

This commit is contained in:
wwt 2025-03-24 09:43:46 +08:00
parent d0063bf11f
commit 0b542e2e63

View File

@ -96,6 +96,7 @@
</div> </div>
</div> </div>
<div <div
v-if="isCreateProjecy"
@click="groupActiveIndex = 2;depCheckedKeys = [];" @click="groupActiveIndex = 2;depCheckedKeys = [];"
class="groupCard thirdPanel" class="groupCard thirdPanel"
:class="groupActiveIndex === 2 ? 'activePanel' : ''" :class="groupActiveIndex === 2 ? 'activePanel' : ''"
@ -144,6 +145,7 @@ onUnload(()=> {
}) })
const isHasPermission = ref(false) const isHasPermission = ref(false)
const isCreateProjecy = ref(false)
onShow( async() =>{ onShow( async() =>{
const isHasRes = await userHasPermission({ const isHasRes = await userHasPermission({
erpUserId: userInfo?.value?.ID, erpUserId: userInfo?.value?.ID,
@ -158,6 +160,7 @@ onShow( async() =>{
} else{ } else{
isHasPermission.value = false isHasPermission.value = false
} }
isCreateProjecy.value = isHasRes.data.btn_rule_create_project_group
} }
}) })