修改告警级别
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user