fix: 标签绑定管理-标签绑定管理-设置禁用项
This commit is contained in:
parent
3efa283b3c
commit
66f8df4fba
|
|
@ -690,6 +690,18 @@
|
||||||
this.form.labelCode = this.ids[0].labelCode
|
this.form.labelCode = this.ids[0].labelCode
|
||||||
getDeviceTypeTree({ level: '4' }).then((response) => {
|
getDeviceTypeTree({ level: '4' }).then((response) => {
|
||||||
this.deptOptions = response.data
|
this.deptOptions = response.data
|
||||||
|
this.handleDeviceTypeTree(this.deptOptions)
|
||||||
|
})
|
||||||
|
},
|
||||||
|
handleDeviceTypeTree(data) {
|
||||||
|
// manageType有值且值不为0时, 禁用
|
||||||
|
data.forEach((item) => {
|
||||||
|
if (item.manageType && item.manageType !== '0') {
|
||||||
|
item.isDisabled = true
|
||||||
|
}
|
||||||
|
if (item.children) {
|
||||||
|
this.handleDeviceTypeTree(item.children)
|
||||||
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
/** 修改按钮操作 */
|
/** 修改按钮操作 */
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue