From 49a8a78f9ee54592a501ea4c94eb738ce5e284fd Mon Sep 17 00:00:00 2001
From: ZZJ <zzjdsg2300@163.com>
Date: 星期二, 19 十月 2021 10:13:37 +0800
Subject: [PATCH] 网络设置v0

---
 src/pages/settings/views/NetSettings.vue |   35 +++++++++++++++++++++++------------
 1 files changed, 23 insertions(+), 12 deletions(-)

diff --git a/src/pages/settings/views/NetSettings.vue b/src/pages/settings/views/NetSettings.vue
index a8262ae..46e370c 100644
--- a/src/pages/settings/views/NetSettings.vue
+++ b/src/pages/settings/views/NetSettings.vue
@@ -330,6 +330,9 @@
             <div class="ok" @click="saveWire">淇濆瓨</div>
           </div>
         </div>
+        <WifiGateway  v-if="activePage == 3"></WifiGateway>
+        <LoraGateway  v-if="activePage == 4"></LoraGateway>
+        <MqttGateway  v-if="activePage == 5"></MqttGateway>
       </div>
     </div>
   </div>
@@ -349,10 +352,17 @@
 import ipInput from "../components/IPInput";
 import switchBar from "../components/switchBar";
 
+import WifiGateway from '../components/WifiGateway'
+import LoraGateway from '../components/LoraGateway'
+import MqttGateway from '../components/MqttGateway'
+
 export default {
   components: {
     ipInput,
     switchBar,
+    WifiGateway,
+    LoraGateway,
+    MqttGateway
   },
   data() {
     const checkPwd = (rule, value, callback) => {
@@ -406,6 +416,9 @@
         { name: "缃戠粶璁剧疆", icon: "\ue6dd" },
         { name: "鏃犵嚎缃戠粶", icon: "\uea13" },
         { name: "鏈夌嚎缃戠粶", icon: "\ue73b" },
+        { name: "WiFi缃戝叧", icon: "\ue73b" },
+        { name: "LORA缃戝叧", icon: "\ue73b" },
+        { name: "MQTT缃戝叧", icon: "\ue73b" },
       ],
       ipv6FormRules: {},
       options: [
@@ -422,10 +435,6 @@
       IPV4_hid: false,
       IPV6_hid: false
     };
-  },
-  components: {
-    ipInput,
-    switchBar,
   },
   mounted() {
     this.getCurServer();
@@ -589,11 +598,11 @@
   width: 100%;
 }
 .wire{
-  width: 460px;
+  width: 456px;
   margin: 0 auto;
 }
 .wire-detail {
-  width: 460px;
+  width: 456px;
   margin: 0 auto;
   .title {
     font-size: 16px;
@@ -631,7 +640,7 @@
   }
 }
 .net-set {
-  max-width: 600px;
+  max-width: 456px;
   margin: 0 auto;
   .title {
     font-size: 16px;
@@ -711,6 +720,8 @@
     padding: 10px;
     padding-top: 6px;
     border-top: 4px solid #f2f2f7;
+    overflow-y: overlay;
+
     .title {
       height: 48px;
       font-size: 16px;
@@ -718,7 +729,7 @@
       color: #4F4F4F;
       font-weight: bold;    background: #F2F2F7;
     border-radius: 8px;
-    margin-bottom: 10px;
+    margin-bottom: 4px;
     }
     .el-form-item.is-required:not(.is-no-asterisk)
       > .el-form-item__label:before,
@@ -731,7 +742,7 @@
       width: 100%;
     }
     .el-form-item {
-      margin-bottom: 16px;
+      margin-bottom: 4px;
     }
     .el-form-item__content {
       line-height: 48px;
@@ -803,7 +814,7 @@
       max-width: none !important;
     }
     .wifi-set {
-      max-width: 600px;
+      max-width: 456px;
       margin: 0 auto;
       .switch-bar {
         background: #f2f2f7;
@@ -822,7 +833,7 @@
         align-items: center;
         box-sizing: border-box;
         padding: 0 20px;
-        margin-bottom: 10px;
+        margin-bottom: 4px;
         background: #f2f2f7;
         border-radius: 8px;
         .name {
@@ -948,7 +959,7 @@
         align-items: center;
         box-sizing: border-box;
         padding: 0 20px;
-        margin-bottom: 10px;
+        margin-bottom: 4px;
         border-radius: 8px;
         .name {
           font-size: 15px;

--
Gitblit v1.8.0