From 807dfe60e65b9790014c0029dbe46381f959b145 Mon Sep 17 00:00:00 2001
From: hutongqing <hutongqing@hnkhzn.com>
Date: 星期四, 31 十月 2024 17:29:35 +0800
Subject: [PATCH] Create OmronEtherNetCommunicator.cs
---
WIDESEAWCS_Client/src/extension/basicinfo/extend/addrouters.vue | 27 ++++++++++++---------------
1 files changed, 12 insertions(+), 15 deletions(-)
diff --git a/WIDESEAWCS_Client/src/extension/basicinfo/extend/addrouters.vue b/WIDESEAWCS_Client/src/extension/basicinfo/extend/addrouters.vue
index ec23446..28ed38f 100644
--- a/WIDESEAWCS_Client/src/extension/basicinfo/extend/addrouters.vue
+++ b/WIDESEAWCS_Client/src/extension/basicinfo/extend/addrouters.vue
@@ -23,13 +23,13 @@
class="grid-content"
style="font-weight: bold; font-size: 18px; margin-left: 5%"
>
- <el-form :rules="routeTypeRules">
- <el-form-item
- label="璺敱绫诲瀷"
- label-width="120"
- prop="routerType"
- >
- <el-select v-model="routerType" filterable placeholder="璇烽�夋嫨">
+ <el-form :rules="routeTypeRules" :model="routerType">
+ <el-form-item label="璺敱绫诲瀷" label-width="120" prop="type">
+ <el-select
+ v-model="routerType.type"
+ filterable
+ placeholder="璇烽�夋嫨"
+ >
<el-option
v-for="item in routerTypes"
:key="item.key"
@@ -172,7 +172,7 @@
active: 0,
showDetialBox: false,
routerTypes: [],
- routerType: "",
+ routerType: { type: "" },
deviceCodes: [],
filterDeviceCodes: [],
childDeviceCodes: [],
@@ -199,8 +199,8 @@
],
},
routeTypeRules: {
- routerType: [
- { required: true, message: "璇烽�夋嫨浣嶇疆缂栧彿", trigger: "change" },
+ type: [
+ { required: true, message: "璇烽�夋嫨璺敱绫诲瀷", trigger: "change" },
],
},
};
@@ -208,7 +208,7 @@
methods: {
open() {
this.routerTypes = [];
- this.routerType = "";
+ this.routerType = { type: "" };
this.deviceCode = "";
this.deviceCodes = [];
this.filterDeviceCodes = [];
@@ -232,9 +232,6 @@
];
this.showDetialBox = true;
this.getData();
- this.$emit("parentCall", ($vue) => {
- console.log($vue);
- });
},
getData() {
this.http.post("/api/Router/GetBaseRouterInfo", {}, true).then((x) => {
@@ -282,7 +279,7 @@
});
this.http
.post(
- "/api/Router/AddRouters?routerType=" + this.routerType,
+ "/api/Router/AddRouters?routerType=" + this.routerType.type,
this.routers,
true
)
--
Gitblit v1.9.3