瀏覽代碼

新增网络链接页面

hongxuepeng 4 年之前
父節點
當前提交
f5ad4246f1
共有 3 個文件被更改,包括 74 次插入1 次删除
  1. 1 1
      src/components/menu.vue
  2. 7 0
      src/router/index.js
  3. 66 0
      src/views/configuration/NetworkLink.vue

+ 1 - 1
src/components/menu.vue

@@ -73,7 +73,7 @@ export default {
                 {name:"NCSI", link:'/index/ncsi', isDisabel: false},
                 {name:"网络", link:'/index/network', isDisabel: false},
                 {name:"网络绑定", link:'/index/network_bond', isDisabel: false},
-                {name:"网络连接", link:'index/', isDisabel: false},
+                {name:"网络连接", link:'/index/network_link', isDisabel: false},
                 {name:"NTP", link:'index/', isDisabel: false},
                 {name:"PAM 指令", link:'index/', isDisabel: false},
                 {name:"PEF", link:'index/', isDisabel: false},

+ 7 - 0
src/router/index.js

@@ -100,6 +100,13 @@ const router = new Router({
                     },
                     component: r => require.ensure([], () => r(require('../views/configuration/NetworkBond')), 'configuration'),
                 },
+                {
+                    path: 'network_link',
+                    meta: {
+                        title: '网络链接'
+                    },
+                    component: r => require.ensure([], () => r(require('../views/configuration/NetworkLink')), 'configuration'),
+                },
             ]
         },
         {

+ 66 - 0
src/views/configuration/NetworkLink.vue

@@ -0,0 +1,66 @@
+<template>
+    <div class="event-log">
+        <div class="configuration-title">Network Link Configuration</div>
+        <div class="configuration-text">Manage network link settings of the device.</div>
+        <div class="event-log-form">
+            <Form :model="formEventLog" label-position="left" :label-width="150">
+                <div class="configuration-subtitle"></div>
+                <FormItem label="LAN Interface">
+                    <Select v-model="formEventLog.LANInterface" style="width: 200px;">
+                    </Select>
+                </FormItem>
+                <FormItem label="Auto Negotiation">
+                    <RadioGroup v-model="formEventLog.AutoNegotiation">
+                        <Radio label="0">ON</Radio>
+                        <Radio label="1">OFF</Radio>
+                    </RadioGroup>
+                </FormItem>
+                <FormItem label="Link Speed">
+                    <Select v-model="formEventLog.LinkSpeed" style="width: 200px;">
+                    </Select>
+                </FormItem>
+                <FormItem label="Duplex Mode" >
+                    <Select v-model="formEventLog.DuplexMode" style="width: 200px;">
+                    </Select>
+                </FormItem>
+            </Form>
+        </div>
+        <div class="configuration-btn-right">
+            <Button type="primary" style="margin-right: 10px;">Save</Button>
+            <Button type="primary">Reset</Button>
+        </div>
+    </div>
+</template>
+
+<script>
+    export default {
+        name: "NetworkLink",
+        data() {
+            return {
+                formEventLog: {
+                    LANInterface: '',
+                    AutoNegotiation: '0',
+                    LinkSpeed: '',
+                    DuplexMode: '',
+                }
+            }
+        }
+    }
+</script>
+
+<style lang="scss" scoped>
+    .event-log-form {
+        padding-left: 30px;
+        .configuration-subtitle {
+            font-size: 14px;
+            margin-bottom: 10px;
+        }
+    }
+    .configuration-btn-right {
+        border-top: 1px solid #000;
+    }
+</style>
+
+
+
+