回显问题修复

This commit is contained in:
liang.chao 2025-07-28 10:41:45 +08:00
parent f5812a995c
commit a611990ae6
1 changed files with 17 additions and 15 deletions

View File

@ -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)
})