fix: 标签绑定管理-标签绑定管理-设置禁用项

This commit is contained in:
binbin_pan 2024-04-20 13:40:04 +08:00
parent 3efa283b3c
commit 66f8df4fba
1 changed files with 12 additions and 0 deletions

View File

@ -690,6 +690,18 @@
this.form.labelCode = this.ids[0].labelCode
getDeviceTypeTree({ level: '4' }).then((response) => {
this.deptOptions = response.data
this.handleDeviceTypeTree(this.deptOptions)
})
},
handleDeviceTypeTree(data) {
// manageType0,
data.forEach((item) => {
if (item.manageType && item.manageType !== '0') {
item.isDisabled = true
}
if (item.children) {
this.handleDeviceTypeTree(item.children)
}
})
},
/** 修改按钮操作 */