回显问题修复
This commit is contained in:
parent
f5812a995c
commit
a611990ae6
|
|
@ -295,12 +295,14 @@ export default {
|
|||
|
||||
// 新增子节点
|
||||
handleAddChild(row) {
|
||||
const { id, proName, level, nodeCount, projectId } = row
|
||||
const { id, proName, nodeName, level, nodeCount, projectId } = row;
|
||||
const name = nodeName || proName; // 如果 nodeName 存在就用它,否则用 proName
|
||||
|
||||
this.addOrEditFormTitle = '新增'
|
||||
this.editForm = null
|
||||
this.addOrEditFormVisible = true
|
||||
|
||||
const editForm = { deviceName: proName, id, level, nodeCount, projectId }
|
||||
const editForm = { deviceName: name, id, level, nodeCount, projectId }
|
||||
this.$nextTick(() => {
|
||||
this.$refs.addOrEditComponentRef.setFormData(editForm)
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in New Issue