cloudroam
2024-11-15 3fc7f383b437b6c579b625f83639c864b33b97fa
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) {