修改云南曲靖项目

This commit is contained in:
guanj
2026-01-08 14:52:01 +08:00
parent 54517c0d5f
commit 6c3037f19b
20 changed files with 47 additions and 36 deletions

View File

@@ -13,7 +13,7 @@
show-checkbox
width="350px"
:data="menuTree"
:checkStrictly="false"
:checkStrictly="checkStrictly"
@checkChange="checkChange"
></Tree>
<el-empty style="width: 350px; padding-top: 300px; box-sizing: border-box" description="请选择角色" v-else />
@@ -141,15 +141,18 @@ const currentChange = (data: any) => {
menuListId.value = data.row.id
getFunctionsByRoleIndex({ id: data.row.id }).then((res: any) => {
treeRef.value.treeRef.setCheckedKeys(res.data.map((item: any) => item.id))
setTimeout(() => {
checkStrictly.value = false
}, 100)
})
}
const timeout = ref<NodeJS.Timeout>()
const checkChange = (data: any) => {
// if (checkStrictly.value) {
// checkStrictly.value = false
// return
// }
if (checkStrictly.value) {
checkStrictly.value = false
return
}
updateRoleMenu({
id: menuListId.value,