修改告警级别

This commit is contained in:
guanj
2026-01-08 19:20:32 +08:00
parent 4c9b677e81
commit 4cbd2e43cb
9 changed files with 210 additions and 48 deletions

View File

@@ -16,7 +16,7 @@
show-checkbox
width="350px"
:data="menuTree"
:checkStrictly="false"
:checkStrictly="checkStrictly"
@checkChange="checkChange"
></Tree>
<el-empty
@@ -162,6 +162,9 @@ 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)
})
getSystemByRoleId({ id: data.row.id }).then((res: any) => {
systemIds.value = res.data.systemIds || []
@@ -170,10 +173,10 @@ const currentChange = (data: any) => {
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,