Browse Source

新增NCSI页面

hongxuepeng 5 years ago
parent
commit
e1cf39ea97

+ 3 - 0
src/assets/css/iview_style_reset.scss

@@ -156,6 +156,9 @@
 .ivu-menu-horizontal .ivu-menu-submenu .ivu-select-dropdown .ivu-menu-item:hover {
     color: #fff;
 }
+.event-log-form .ivu-form-item-label {
+    color: #fff;
+}
 
 
 

+ 1 - 1
src/components/menu.vue

@@ -70,7 +70,7 @@ export default {
                 {name:"LDAP/E-Directory", link:'/index/LDAP', isDisabel: false},
                 {name:"证书", link:'/index/License', isDisabel: false},
                 {name:"鼠标的模式", link:'/index/mouse_mode', isDisabel: false},
-                {name:"NCSI", link:'index/', isDisabel: false},
+                {name:"NCSI", link:'/index/ncsi', isDisabel: false},
                 {name:"网络", link:'index/', isDisabel: false},
                 {name:"网络绑定", link:'index/', isDisabel: false},
                 {name:"网络连接", link:'index/', isDisabel: false},

+ 7 - 0
src/router/index.js

@@ -79,6 +79,13 @@ const router = new Router({
                     },
                     component: r => require.ensure([], () => r(require('../views/configuration/MouseMode')), 'configuration'),
                 },
+                {
+                    path: 'ncsi',
+                    meta: {
+                        title: 'NCSI'
+                    },
+                    component: r => require.ensure([], () => r(require('../views/configuration/NCSI')), 'configuration'),
+                },
             ]
         },
         {

+ 69 - 0
src/views/configuration/NCSI.vue

@@ -0,0 +1,69 @@
+<template>
+    <div class="event-log">
+        <div class="configuration-title">NCSI Settings</div>
+        <div class="configuration-text">The following options are for configuring the channel number and package ID information for the NCSI interface.</div>
+        <div class="event-log-form">
+            <Form :model="formEventLog" label-position="left" :label-width="0">
+                <div class="configuration-subtitle">Current NCSI Mode:</div>
+                <FormItem>
+                    <RadioGroup v-model="formEventLog.radioPolicy" vertical>
+                        <Radio label="0">Set NCSI Mode to Auto Failover Mode</Radio>
+                        <Radio label="1">Set NCSI Mode to Manual Switch Mode</Radio>
+                    </RadioGroup>
+                </FormItem>
+                <FormItem label="NCSI Interface" :label-width="120">
+                    <Select v-model="formEventLog.interface" style="width: 200px;">
+
+                    </Select>
+                </FormItem>
+                <FormItem label="Channel Number" :label-width="120">
+                    <Select v-model="formEventLog.channelNumber" style="width: 200px;">
+                        <Option value="0">0</Option>
+                        <Option value="1">1</Option>
+                    </Select>
+                </FormItem>
+                <FormItem label="Package ID" :label-width="120">
+                    <Select v-model="formEventLog.packageID" style="width: 200px;">
+                        <Option value="0">0</Option>
+                        <Option value="1">1</Option>
+                    </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: "NCSI",
+        data() {
+            return {
+                formEventLog: {
+                    radioPolicy: '',
+                    interface: '',
+                    channelNumber: '',
+                    packageID: ''
+                }
+            }
+        }
+    }
+</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>
+
+