From 7530519aecf3d1b5e663cf89cb80c3b772b5d703 Mon Sep 17 00:00:00 2001 From: 陶杰 <1378534974@qq.com> Date: 星期三, 20 十一月 2024 17:46:26 +0800 Subject: [PATCH] 1.画板布局 --- src/components/equ-add-form.vue | 17 +++++++++++++++++ 1 files changed, 17 insertions(+), 0 deletions(-) diff --git a/src/components/equ-add-form.vue b/src/components/equ-add-form.vue index a3be8e9..b216911 100644 --- a/src/components/equ-add-form.vue +++ b/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) { -- Gitblit v1.9.3