gaoshuaixing vor 4 Jahren
Ursprung
Commit
9847ec74ce

+ 0 - 11
frontend/src/api/main.js

@@ -21,15 +21,4 @@ export function localApi (uri, parameter) {
     method: 'post',
     data: parameter
   })
-}
-
-/**
- * uploadFile
- */
-export function uploadFile (parameter) {
-  return request({
-    url: mainApi.uploadFile,
-    method: 'post',
-    data: parameter
-  })
 }

+ 5 - 0
frontend/src/config/router.config.js

@@ -43,6 +43,11 @@ export const constantRouterMap = [
             name: 'DemoSoftwareOpen',
             component: () => import('@/views/demo/software/Open')
           },
+          {
+            path: '/demo/system/autoLaunch',
+            name: 'DemoSystemAutoLaunch',
+            component: () => import('@/views/demo/system/AutoLaunch')
+          },
         ]  
       },
       {

+ 7 - 2
frontend/src/layouts/DemoMenu.vue

@@ -54,6 +54,12 @@ export default {
           pageName: 'DemoSoftwareOpen',
           params: {}
         },
+        'menu_6' : {
+          icon: 'profile',
+          title: '系统 - 开机启动',
+          pageName: 'DemoSystemAutoLaunch',
+          params: {}
+        },
       }
     };
   },
@@ -71,13 +77,12 @@ export default {
 };
 </script>
 <style lang="less" scoped>
-// 嵌套
 #app-demo-menu {
   height: 100%;
   text-align: left;
   .layout-sider {
     border-top: 1px solid #e8e8e8;
-    border-right: 1px solid #e8e8e8;
+    border-right: 0px solid #e8e8e8;
     background-color: #FAFAFA;
   }
 }

+ 1 - 1
frontend/src/views/demo/software/Open.vue

@@ -37,7 +37,7 @@ export default {
   },
   methods: {
     openSoft (id) {
-			localApi('openSoftware', {}).then(res => {
+			localApi('openSoftware', {id:id}).then(res => {
 				if (res.code !== 0) {
 					this.$message.info(res.msg)
 					return false

+ 41 - 21
frontend/src/views/Setting.vue → frontend/src/views/demo/system/AutoLaunch.vue

@@ -1,21 +1,30 @@
 <template>
-  <a-list id="set" itemLayout="horizontal">
-    <a-list-item style="text-align: left;">
-      <a-list-item-meta>
-        <template v-slot:title>
-          <a>启动</a>
-        </template>
-        <template v-slot:description>
-          <span>
-            开机自动启动
-          </span>
-        </template>
-      </a-list-item-meta>
-      <template v-slot:actions>
-        <a-switch checkedChildren="开" unCheckedChildren="关" v-model="autoLaunchChecked" @change="autoLaunchChange(autoLaunchChecked)" />
-      </template>
-    </a-list-item>
-  </a-list>
+  <div id="app-demo-system-launch">
+    <!-- <div class="one-block-1">
+      <span>
+        开机启动
+      </span>
+    </div>   -->
+    <div class="one-block-2">
+      <a-list class="set-auto" itemLayout="horizontal">
+        <a-list-item style="text-align: left;">
+          <a-list-item-meta>
+            <template v-slot:title>
+              <a>启动</a>
+            </template>
+            <template v-slot:description>
+              <span>
+                开机自动启动
+              </span>
+            </template>
+          </a-list-item-meta>
+          <template v-slot:actions>
+            <a-switch v-model="autoLaunchChecked" checkedChildren="开" unCheckedChildren="关" @change="autoLaunchChange(autoLaunchChecked)" />
+          </template>
+        </a-list-item>
+      </a-list>
+    </div>
+  </div>
 </template>
 <script>
 import { localApi } from '@/api/main'
@@ -68,10 +77,21 @@ export default {
 }
 </script>
 <style lang="less" scoped>
-// 嵌套
-#set {
-  .ant-list-item:last-child {
-    border-bottom: 1px solid #e8e8e8;
+#app-demo-system-launch {
+  padding: 0px 10px;
+  text-align: center;
+  width: 100%;
+  .one-block-1 {
+    font-size: 16px;
+    padding-top: 10px;
+  }
+  .one-block-2 {
+    padding-top: 10px;
+  }
+  .set-auto {
+    .ant-list-item:last-child {
+      border-bottom: 1px solid #e8e8e8;
+    }
   }
 }  
 </style>  

+ 23 - 5
frontend/src/views/other/Index.vue

@@ -1,8 +1,13 @@
 <template>
-  <div>
-    <h3 :style="{ marginBottom: '16px' }">
-      待开发...
-    </h3>
+  <div id="app-other">
+    <div class="one-block-1">
+      <span>
+        待开发...
+      </span>
+    </div>  
+    <div class="one-block-2">
+      e
+    </div>
   </div>
 </template>
 <script>
@@ -26,4 +31,17 @@ export default {
   }
 };
 </script>
-<style></style>
+<style lang="less" scoped>
+#app-other {
+  padding: 0px 10px;
+  text-align: center;
+  width: 100%;
+  .one-block-1 {
+    font-size: 16px;
+    padding-top: 10px;
+  }
+  .one-block-2 {
+    padding-top: 10px;
+  }
+}
+</style>