Browse Source

增加鼠标的模式页面

hongxuepeng 5 năm trước cách đây
mục cha
commit
9361fc22e2
3 tập tin đã thay đổi với 57 bổ sung1 xóa
  1. 1 1
      src/components/menu.vue
  2. 7 0
      src/router/index.js
  3. 49 0
      src/views/configuration/MouseMode.vue

+ 1 - 1
src/components/menu.vue

@@ -69,7 +69,7 @@ export default {
                 {name:"Images重定向", link:'/index/images_redirection', isDisabel: false},
                 {name:"LDAP/E-Directory", link:'/index/LDAP', isDisabel: false},
                 {name:"证书", link:'/index/License', isDisabel: false},
-                {name:"鼠标的模式", link:'index/', isDisabel: false},
+                {name:"鼠标的模式", link:'/index/mouse_mode', isDisabel: false},
                 {name:"NCSI", link:'index/', isDisabel: false},
                 {name:"网络", link:'index/', isDisabel: false},
                 {name:"网络绑定", link:'index/', isDisabel: false},

+ 7 - 0
src/router/index.js

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

+ 49 - 0
src/views/configuration/MouseMode.vue

@@ -0,0 +1,49 @@
+<template>
+    <div class="event-log">
+        <div class="configuration-title">Mouse Mode Settings</div>
+        <div class="configuration-text">Redirection console mouse mode settings can be modified here.</div>
+        <div class="event-log-form">
+            <Form :model="formEventLog" label-position="left" :label-width="0">
+                <div class="configuration-subtitle">Current Mouse Mode:</div>
+                <FormItem>
+                    <RadioGroup v-model="formEventLog.radioPolicy" vertical>
+                        <Radio label="0">Set Mode to Relative (Recommended when server OS is Linux)</Radio>
+                        <Radio label="1">Set Mode to Absolute (Recommended when server OS is Windows)</Radio>
+                        <Radio label="2">Set Mode to Other Mode (Recommended for SLES-11 OS Installation)</Radio>
+                    </RadioGroup>
+                </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: "MouseMode",
+        data() {
+            return {
+                formEventLog: {
+                    radioPolicy: ''
+                }
+            }
+        }
+    }
+</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>
+