From 0390f5ab4b062a9146cd7d92bdd91954a052e13d Mon Sep 17 00:00:00 2001 From: cloudroam <cloudroam> Date: 星期五, 22 十一月 2024 14:58:09 +0800 Subject: [PATCH] add: 区域配置 --- 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