src/components/equ-add-form.vue
@@ -220,6 +220,23 @@ this.open = !this.open; } }, openConfigform(code, cabinetName) { if (this.open) { this.open = !this.open; } else { //展开,显示表格 this.locInfo = {}; this.selectcode = code; console.log("this.locInfo", this.locInfo); this.name = cabinetName; this.port = this.locInfo.port || ""; this.networkPort = this.locInfo.name || ""; this.macAddress = this.locInfo.macAddress || ""; this.ipAddress = this.locInfo.ipAddress || ""; this.open = !this.open; } }, }, watch: { code(newval, oldval) {