Parcourir la source

新增网络绑定页面

hongxuepeng il y a 4 ans
Parent
commit
ad63466689
3 fichiers modifiés avec 68 ajouts et 1 suppressions
  1. 1 1
      src/components/menu.vue
  2. 7 0
      src/router/index.js
  3. 60 0
      src/views/configuration/NetworkBond.vue

+ 1 - 1
src/components/menu.vue

@@ -72,7 +72,7 @@ export default {
                 {name:"鼠标的模式", link:'/index/mouse_mode', isDisabel: false},
                 {name:"NCSI", link:'/index/ncsi', isDisabel: false},
                 {name:"网络", link:'/index/network', isDisabel: false},
-                {name:"网络绑定", link:'index/', isDisabel: false},
+                {name:"网络绑定", link:'/index/network_bond', isDisabel: false},
                 {name:"网络连接", link:'index/', isDisabel: false},
                 {name:"NTP", link:'index/', isDisabel: false},
                 {name:"PAM 指令", link:'index/', isDisabel: false},

+ 7 - 0
src/router/index.js

@@ -93,6 +93,13 @@ const router = new Router({
                     },
                     component: r => require.ensure([], () => r(require('../views/configuration/Network')), 'configuration'),
                 },
+                {
+                    path: 'network_bond',
+                    meta: {
+                        title: '网络绑定'
+                    },
+                    component: r => require.ensure([], () => r(require('../views/configuration/NetworkBond')), 'configuration'),
+                },
             ]
         },
         {

+ 60 - 0
src/views/configuration/NetworkBond.vue

@@ -0,0 +1,60 @@
+<template>
+    <div class="event-log">
+        <div class="configuration-title">Network Bonding Configuration</div>
+        <div class="configuration-text">The following options are for configuring the networking bonding for the device.</div>
+        <div class="event-log-form">
+            <Form :model="formEventLog" label-position="left" :label-width="150">
+                <div class="configuration-subtitle"></div>
+                <FormItem label="Network Bonding">
+                    <Checkbox v-model="formEventLog.NetworkBonding">Enable</Checkbox>
+                </FormItem>
+                <FormItem label="Bonding Mode">
+                    <Input v-model="formEventLog.BondingMode" style="width: 200px;"/>
+                </FormItem>
+                <FormItem label="Default Interfaces">
+                    <Select v-model="formEventLog.DefaultInterfaces" style="width: 200px;">
+                    </Select>
+                </FormItem>
+                <FormItem label="Auto Configuration" >
+                    <Checkbox v-model="formEventLog.AutoConfiguration">Enable</Checkbox>
+                </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: "NetworkBond",
+        data() {
+            return {
+                formEventLog: {
+                    NetworkBonding: false,
+                    BondingMode: '',
+                    DefaultInterfaces: '',
+                    AutoConfiguration: true,
+                }
+            }
+        }
+    }
+</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>
+
+
+