فهرست منبع

绘制尾流页面及健康评估页面、页面主题新增设置

liujiejie 2 ماه پیش
والد
کامیت
c0ca71883e

+ 2 - 2
src/main.js

@@ -141,7 +141,7 @@ window.addEventListener("beforeunload", () => {
 });
 document.documentElement.setAttribute(
   "data-theme",
-  store.state.themes.theme || process.env.VUE_APP_THEM || "green"
+  store.state.themes.theme || process.env.VUE_APP_THEM || "green",
 );
 
 new Vue({
@@ -168,7 +168,7 @@ new Vue({
         const theme = await import(`@/themes/${themeFile}.scss`);
 
         Vue.prototype.$backgroundColor = getComputedStyle(
-          document.documentElement
+          document.documentElement,
         ).getPropertyValue("--background-color");
 
         // 移除之前的主题样式

+ 9 - 17
src/views/home/components/MenuDt.vue

@@ -9,7 +9,10 @@
 <template>
   <el-aside
     :width="!isCollapse ? '250px' : '100px'"
-    :class="['asideBox', isTechBlueTheme ? 'asideBox--tech' : 'asideBox--legacy']"
+    :class="[
+      'asideBox',
+      isTechBlueTheme ? 'asideBox--tech' : 'asideBox--legacy',
+    ]"
   >
     <div class="homeBox"></div>
     <el-menu
@@ -190,10 +193,7 @@ export default {
       if (direct) return direct;
       if (
         this.staleMenuFallbackIndex &&
-        this.routeMatchesMenuIndex(
-          this.$route,
-          this.staleMenuFallbackIndex,
-        )
+        this.routeMatchesMenuIndex(this.$route, this.staleMenuFallbackIndex)
       ) {
         return this.staleMenuFallbackIndex;
       }
@@ -211,10 +211,7 @@ export default {
       if (d) {
         this.staleMenuFallbackIndex = d;
       } else if (
-        !this.routeMatchesMenuIndex(
-          this.$route,
-          this.staleMenuFallbackIndex,
-        )
+        !this.routeMatchesMenuIndex(this.$route, this.staleMenuFallbackIndex)
       ) {
         this.staleMenuFallbackIndex = "";
       }
@@ -308,9 +305,7 @@ export default {
       for (const item of this.routerList) {
         if (item.meta?.hidden !== false) continue;
         const isSubmenuParent =
-          item.children &&
-          item.children.length &&
-          item.meta?.hidden === false;
+          item.children && item.children.length && item.meta?.hidden === false;
         if (isSubmenuParent) {
           for (const child of item.children) {
             if (child.meta?.hidden === false) {
@@ -336,8 +331,7 @@ export default {
 
       if (pathMatches.length === 1) {
         chosen =
-          qid !== undefined &&
-          String(pathMatches[0].id) !== qid
+          qid !== undefined && String(pathMatches[0].id) !== qid
             ? null
             : pathMatches[0];
       } else if (pathMatches.length > 1) {
@@ -384,9 +378,7 @@ export default {
 
       if (!items[idx]) {
         if (retriesLeft > 0) {
-          this.$nextTick(() =>
-            this.syncElMenuHighlight(retriesLeft - 1),
-          );
+          this.$nextTick(() => this.syncElMenuHighlight(retriesLeft - 1));
         } else if (
           current &&
           items[current] &&

+ 5 - 1
src/views/overview/components/analysis_information/index.vue

@@ -1,5 +1,9 @@
 <template>
-  <el-card shadow="always" class="box-card analysis-info-card" v-loading="loading">
+  <el-card
+    shadow="always"
+    class="box-card analysis-info-card"
+    v-loading="loading"
+  >
     <div class="box-header">
       <h4 style="font-weight: 700">分析介绍:</h4>
       <div class="box-header-min">

+ 1 - 3
src/views/overview/components/filterChart/index.vue

@@ -68,9 +68,7 @@
           "
           >查询</el-button
         >
-        <el-button
-          size="small"
-          @click="onSubmit('handlePrevious')"
+        <el-button size="small" @click="onSubmit('handlePrevious')"
           >上一次分析结果</el-button
         >
         <el-button size="small" @click="onSubmit('handleNext')"

+ 0 - 1
src/views/overview/index.vue

@@ -568,7 +568,6 @@ export default {
   ::v-deep .el-submenu__title {
     padding: 0 10px !important;
   }
-
 }
 
 .el-dialog__wrapper {