From 51ecc231aa4f73a5071e188b4528ab59d730b07f Mon Sep 17 00:00:00 2001
From: zhangzengfei <zhangzengfei@smartai.com>
Date: 星期二, 05 九月 2023 19:14:30 +0800
Subject: [PATCH] 移除视频分析相关功能, 默认自动登录

---
 src/pages/vindicate/index/App.vue |  169 +++++++++++++++++++++++---------------------------------
 1 files changed, 69 insertions(+), 100 deletions(-)

diff --git a/src/pages/vindicate/index/App.vue b/src/pages/vindicate/index/App.vue
index df6d8ed..20e3725 100644
--- a/src/pages/vindicate/index/App.vue
+++ b/src/pages/vindicate/index/App.vue
@@ -21,32 +21,14 @@
       @refreshPercent="getLeftPer"
       ref="view_1"
     ></systemClean>
-    <updateSettings
-      v-if="activePage == 0"
-      style="width: 100%"
-      ref="view_0"
-    ></updateSettings>
+    <updateSettings v-if="activePage == 0" style="width: 100%" ref="view_0"></updateSettings>
     <back-up v-if="activePage == 3" style="width: 100%"></back-up>
-    <restartSettings
-      v-if="activePage == 2"
-      style="width: 100%"
-      ref="view_2"
-    ></restartSettings>
+    <restartSettings v-if="activePage == 2" style="width: 100%" ref="view_2"></restartSettings>
     <sysInfo v-if="activePage == 4" style="width: 100%" ref="view_3"></sysInfo>
   </div>
 
-  <div
-    class="welcome-page"
-    v-else
-    ref="curPage"
-    @click="showRecomand = false"
-    @mouseup="mouseDownIndex = ''"
-  >
-    <div
-      class="search-box"
-      :class="showRecomand ? 'border-change' : ''"
-      @click.stop
-    >
+  <div class="welcome-page" v-else ref="curPage" @click="showRecomand = false" @mouseup="mouseDownIndex = ''">
+    <div class="search-box" :class="showRecomand ? 'border-change' : ''" @click.stop>
       <!-- @blur="showRecomand = false" -->
       <el-input
         class="search-input"
@@ -61,17 +43,10 @@
       </el-input>
 
       <div class="search-res" v-if="showRecomand">
-        <div
-          class="res-bar"
-          v-for="(item, index) in searchArrForShow"
-          :key="index"
-          @click="pickQuick(item.addr)"
-        >
+        <div class="res-bar" v-for="(item, index) in searchArrForShow" :key="index" @click="pickQuick(item.addr)">
           {{ item.name }}
         </div>
-        <div class="no-res-bar" v-if="searchArrForShow.length == 0">
-          娌℃湁鎵惧埌涓� {{ searchText }} 鐩稿叧鐨勭粨鏋�
-        </div>
+        <div class="no-res-bar" v-if="searchArrForShow.length == 0">娌℃湁鎵惧埌涓� {{ searchText }} 鐩稿叧鐨勭粨鏋�</div>
       </div>
       <div class="dummy-end" v-if="showRecomand" style="height: 14px"></div>
     </div>
@@ -95,13 +70,13 @@
 </template>
 
 <script>
-import { freedisk } from "@/api/system";
-import { getUrlKey } from "@/api/utils";
-import systemClean from "../views/systemClean";
-import updateSettings from "../views/updateSettings";
-import BackUp from "../views/backUp";
-import restartSettings from "../views/restartSettings";
-import sysInfo from "../views/sysInfo";
+import { freedisk } from "@/api/system"
+import { getUrlKey } from "@/api/utils"
+import systemClean from "../views/systemClean"
+import updateSettings from "../views/updateSettings"
+import BackUp from "../views/backUp"
+import restartSettings from "../views/restartSettings"
+import sysInfo from "../views/sysInfo"
 export default {
   name: "settings",
   components: {
@@ -109,50 +84,50 @@
     updateSettings,
     BackUp,
     restartSettings,
-    sysInfo,
+    sysInfo
   },
   data() {
     return {
       menuArr: [
-        {
-          name: "鏇存柊璁剧疆",
-          img_black: "/images/vindicate/鏇存柊璁剧疆-榛�.png",
-          img_white: "/images/vindicate/鏇存柊璁剧疆-鐧�.png",
-          img_welcome: "/images/vindicate/鏇存柊璁剧疆.png",
-        },
-        {
-          name: "绯荤粺娓呯悊",
-          img_black: "/images/vindicate/绯荤粺娓呯悊-榛�.png",
-          img_white: "/images/vindicate/绯荤粺娓呯悊-鐧�.png",
-          img_welcome: "/images/vindicate/绯荤粺娓呯悊.png",
-        },
+        // {
+        //   name: "鏇存柊璁剧疆",
+        //   img_black: "/images/vindicate/鏇存柊璁剧疆-榛�.png",
+        //   img_white: "/images/vindicate/鏇存柊璁剧疆-鐧�.png",
+        //   img_welcome: "/images/vindicate/鏇存柊璁剧疆.png",
+        // },
+        // {
+        //   name: "绯荤粺娓呯悊",
+        //   img_black: "/images/vindicate/绯荤粺娓呯悊-榛�.png",
+        //   img_white: "/images/vindicate/绯荤粺娓呯悊-鐧�.png",
+        //   img_welcome: "/images/vindicate/绯荤粺娓呯悊.png",
+        // },
 
         {
           name: "閲嶅惎璁剧疆",
           img_black: "/images/vindicate/閲嶅惎璁剧疆-榛�.png",
           img_white: "/images/vindicate/閲嶅惎璁剧疆-鐧�.png",
-          img_welcome: "/images/vindicate/閲嶅惎璁剧疆.png",
+          img_welcome: "/images/vindicate/閲嶅惎璁剧疆.png"
         },
         {
           name: "澶囦唤杩樺師",
           img_black: "/images/vindicate/绯荤粺娓呯悊-榛�.png",
           img_white: "/images/vindicate/绯荤粺娓呯悊-鐧�.png",
-          img_welcome: "/images/vindicate/绯荤粺娓呯悊.png",
+          img_welcome: "/images/vindicate/绯荤粺娓呯悊.png"
         },
         {
           name: "绯荤粺淇℃伅",
           img_black: "/images/vindicate/绯荤粺淇℃伅-榛�.png",
           img_white: "/images/vindicate/绯荤粺淇℃伅-鐧�.png",
-          img_welcome: "/images/vindicate/绯荤粺淇℃伅.png",
-        },
+          img_welcome: "/images/vindicate/绯荤粺淇℃伅.png"
+        }
       ],
       searchArr: [
-        { name: "绯荤粺璁剧疆", addr: [0] },
-        { name: "绯荤粺鏇存柊", addr: [0, 0] },
-        { name: "鏇存柊璁剧疆", addr: [0, 1] },
-        { name: "绯荤粺娓呯悊", addr: [1] },
+        // { name: "绯荤粺璁剧疆", addr: [0] },
+        // { name: "绯荤粺鏇存柊", addr: [0, 0] },
+        // { name: "鏇存柊璁剧疆", addr: [0, 1] },
+        // { name: "绯荤粺娓呯悊", addr: [1] },
         { name: "閲嶅惎璁剧疆", addr: [2] },
-        { name: "绯荤粺淇℃伅", addr: [3] },
+        { name: "绯荤粺淇℃伅", addr: [3] }
       ],
       activePage: 0,
       free: 0,
@@ -160,77 +135,74 @@
       showWelcome: true,
       searchText: "",
       showRecomand: false,
-      mouseDownIndex: "",
-    };
+      mouseDownIndex: ""
+    }
   },
   created() {
-    let color = localStorage.getItem("--colorCard");
+    let color = localStorage.getItem("--colorCard")
     if (color) {
-      document.documentElement.style.setProperty("--colorCard", `${color}`);
+      document.documentElement.style.setProperty("--colorCard", `${color}`)
     }
   },
   mounted() {
-    const menu = getUrlKey("menu");
+    const menu = getUrlKey("menu")
     if (menu) {
-      this.activePage = this.menuArr.findIndex((x) => x.name == menu);
+      this.activePage = this.menuArr.findIndex((x) => x.name == menu)
       // this.$nextTick(() => {
       //   this.$refs.netSettings.openRight(2);
       // });
     }
-    this.getLeftPer();
+    this.getLeftPer()
     window.addEventListener("message", (e) => {
       if (e.data.msg === "changeColor") {
-        document.documentElement.style.setProperty(
-          "--colorCard",
-          `${e.data.color}`
-        );
+        document.documentElement.style.setProperty("--colorCard", `${e.data.color}`)
       }
       if (e.data.msg === "杩斿洖绯荤粺缁存姢") {
-        this.showWelcome = true;
+        this.showWelcome = true
       }
-    });
+    })
   },
   methods: {
     openMenu(item, i) {
-      this.activePage = i;
+      this.activePage = i
     },
     getLeftPer() {
       freedisk().then((res) => {
-        this.free = res.data.free;
-        this.full = res.data.all;
-      });
+        this.free = res.data.free
+        this.full = res.data.all
+      })
     },
     pickQuick(addr) {
       if (addr.length == 1) {
-        this.openWelcome(addr[0]);
+        this.openWelcome(addr[0])
       } else {
-        this.openWelcome(addr[0]);
+        this.openWelcome(addr[0])
         this.$nextTick(() => {
           if (addr[0] == 1) {
             // addr[1] == 0
             //   ? this.changeSwitch("isNtp")
             //   : this.changeSwitch("isManual");
-            return;
+            return
           }
-          this.$refs[`view_${addr[0]}`].openRight(addr[1]);
-        });
+          this.$refs[`view_${addr[0]}`].openRight(addr[1])
+        })
       }
     },
     openWelcome(i) {
-      this.showWelcome = false;
-      this.openMenu(1, i);
-    },
+      this.showWelcome = false
+      this.openMenu(1, i)
+    }
   },
   computed: {
     searchArrForShow() {
       if (this.searchText == "") {
-        return this.searchArr;
+        return this.searchArr
       } else {
         return this.searchArr.filter((item) => {
-          return item.name.indexOf(this.searchText.toUpperCase()) > -1;
-        });
+          return item.name.indexOf(this.searchText.toUpperCase()) > -1
+        })
       }
-    },
+    }
   },
   watch: {
     showWelcome(newVal) {
@@ -238,22 +210,22 @@
         // 闅愯棌杩斿洖鎸夋寜閽�
         window.parent.postMessage(
           {
-            msg: "hiddenBack",
+            msg: "hiddenBack"
           },
           "*"
-        );
+        )
       } else {
         //鏄剧ず杩斿洖鎸夐挳
         window.parent.postMessage(
           {
-            msg: "showBack",
+            msg: "showBack"
           },
           "*"
-        );
+        )
       }
-    },
-  },
-};
+    }
+  }
+}
 </script>
 <style lang="scss">
 .welcome-page {
@@ -302,8 +274,7 @@
         line-height: 36px;
         outline: 0;
         padding: 0 20px;
-        -webkit-transition: border-color 0.2s
-          cubic-bezier(0.645, 0.045, 0.355, 1);
+        -webkit-transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
         transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
         width: 100%;
         font-weight: bold;
@@ -522,5 +493,3 @@
   border-top: 2px solid #e1e0e6;
 }
 </style>
-
-

--
Gitblit v1.8.0