Parcourir la source

Merge branch 'wsy' of http://61.161.152.110:10101/r/electronic-map into sl

# Conflicts:
#	src/views/layout/Menu.vue
shilin il y a 4 ans
Parent
commit
7068265277

+ 7 - 1
src/App.vue

@@ -201,6 +201,7 @@ export default {
       // 当前子系统
       root: "",
       isLogined: true,
+      memuCloseTimeout: null,
     };
   },
 
@@ -242,9 +243,14 @@ export default {
     },
     showMenu() {
       this.isShowMenu = true;
+      this.memuCloseTimeout && clearTimeout(this.memuCloseTimeout);
     },
     hideMenu() {
-      this.isShowMenu = false;
+      const that = this;
+      this.memuCloseTimeout = setTimeout(function(){
+        that.isShowMenu = false;
+      }, 500 )
+      
     },
     login(params) {
       if (params.username && params.password) this.isLogined = true;

+ 11 - 0
src/assets/icon/svg/menu/dbgl.svg

@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<svg width="193px" height="193px" viewBox="0 0 193 193" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
+    <!-- Generator: Sketch 55.2 (78181) - https://sketchapp.com -->
+    <title>对标</title>
+    <desc>Created with Sketch.</desc>
+    <g id="页面1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
+        <g id="对标" transform="translate(0.101562, 0.710938)" fill="#000000" fill-rule="nonzero">
+            <path d="M12.1443359,108.086328 L84.1011719,108.086328 L84.1011719,180.042969 L58.1945313,154.136523 L20.3371094,191.989062 L0.192578125,171.844336 L38.0509766,133.992969 L12.1443359,108.086328 Z M154.136523,133.992969 L191.989062,171.851367 L171.845508,191.994922 L133.992969,154.136523 L108.080273,180.049219 L108.080273,108.092383 L180.037109,108.092383 L154.136523,133.992969 L154.136523,133.992969 Z M180.042969,84.1009766 L108.086328,84.1009766 L108.086328,12.1443359 L133.992969,38.0537109 L171.851367,0.1984375 L191.994922,20.3421875 L154.136523,58.1974609 L180.042969,84.1009766 Z M58.1945313,38.0537109 L84.1011719,12.1443359 L84.1011719,84.1009766 L12.1443359,84.1009766 L38.05,58.1914063 L0.1984375,20.3371094 L20.3423828,0.192578125 L58.1945313,38.0537109 Z" id="形状"></path>
+        </g>
+    </g>
+</svg>

+ 11 - 0
src/assets/icon/svg/menu/dlyc.svg

@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<svg width="150px" height="150px" viewBox="0 0 150 150" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
+    <!-- Generator: Sketch 55.2 (78181) - https://sketchapp.com -->
+    <title>电量 (1)-01-01</title>
+    <desc>Created with Sketch.</desc>
+    <g id="页面1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
+        <g id="电量-(1)-01-01" fill="#2C2C2C" fill-rule="nonzero">
+            <path d="M75,0 C33.6,0 0,33.6 0,75 C0,116.4 33.6,150 75,150 C116.4,150 150,116.4 150,75 C150,33.6 116.4,0 75,0 Z M71.9,119 L78.4,85.8 L41.7,85.8 L78.3,31 L71.8,66.9 L108.3,66.9 L71.9,119 Z" id="形状"></path>
+        </g>
+    </g>
+</svg>

+ 11 - 0
src/assets/icon/svg/menu/fjfx.svg

@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<svg width="157px" height="147px" viewBox="0 0 157 147" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
+    <!-- Generator: Sketch 55.2 (78181) - https://sketchapp.com -->
+    <title>单机分析</title>
+    <desc>Created with Sketch.</desc>
+    <g id="页面1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
+        <g id="单机分析" transform="translate(0.070312, 0.148438)" fill="#000000" fill-rule="nonzero">
+            <path d="M14.3496875,0.0115625 L141.929687,0.0115625 C147.339687,0.0115625 157.059687,1.9215625 156.759687,15.0115625 L156.659687,112.881563 C156.659687,118.301563 153.749688,127.251562 142.469688,127.251562 L14.9296875,127.251562 C2.3896875,127.251562 0.1896875,118.251562 0.1896875,112.891562 L0.1196875,15.0115625 C0.2196875,3.8515625 8.9296875,0.0115625 14.3496875,0.0115625 Z M117.229688,57.1315625 L127.869687,64.5915625 C130.099688,66.1615625 131.869687,65.1715625 131.869687,62.4715625 L132.219688,33.6015625 C132.219688,30.9015625 130.219688,29.4915625 127.699688,30.4415625 L100.699688,40.6515625 C98.1596875,41.6015625 97.8896875,43.6515625 100.069688,45.1515625 L109.149688,51.5115625 L78.3396875,89.8515625 L52.9296875,55.7915625 C51.9770533,54.5148288 50.4622408,53.7821361 48.8699264,53.8279151 C47.277612,53.8736942 45.8073967,54.6922065 44.9296875,56.0215625 L25.3696875,85.3815625 C23.9104213,87.6281904 24.5305029,90.6307305 26.7603699,92.1154822 C28.990237,93.600234 31.9996427,93.0143796 33.5096875,90.8015625 L49.5096875,66.8015625 L74.4396875,100.801563 C75.347204,102.011146 76.7632795,102.73282 78.2752738,102.756883 C79.7872682,102.779765 81.2250624,102.102393 82.1696875,100.921563 L117.229688,57.1315625 Z M39.2296875,141.911562 C39.251439,139.219951 41.4280763,137.043314 44.1196875,137.021563 L112.629688,137.021563 C115.333121,137.021563 117.524688,139.213129 117.524688,141.916563 C117.524688,144.619996 115.333121,146.811563 112.629688,146.811563 L44.1196875,146.811563 C41.4303141,146.784477 39.2567729,144.610936 39.2296875,141.921563 L39.2296875,141.911562 Z" id="形状"></path>
+        </g>
+    </g>
+</svg>

+ 11 - 0
src/assets/icon/svg/menu/jjyx.svg

@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<svg width="151px" height="136px" viewBox="0 0 151 136" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
+    <!-- Generator: Sketch 55.2 (78181) - https://sketchapp.com -->
+    <title>经济运行</title>
+    <desc>Created with Sketch.</desc>
+    <g id="页面1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
+        <g id="经济运行" fill="#2C2C2C" fill-rule="nonzero">
+            <path d="M142,0 C147,0 151,4.1 151,9 L151,9 L151,126.8 C151,131.8 146.9,135.8 142,135.8 L9,135.8 C4,135.8 0,131.7 0,126.8 L0,86.6 L35.3,56.9 L75.1,66 L102.5,44.2 L112.5,55 L128.1,10.2 L82.4,22.6 L92.2,33.2 L71.4,49.7 L31.3,40.5 L0,66.9 L0,9 C0,4 4.1,0 9,0 L9,0 L142,0 L142,0 Z M45.3,83 L30.3,83 L30.3,113.3 L45.4,113.3 L45.4,83 L45.3,83 Z M83,83 L68,83 L68,113.3 L83,113.3 L83,83 Z M120.8,68 L105.7,68 L105.7,113.3 L120.8,113.3 L120.8,68 Z" id="形状"></path>
+        </g>
+    </g>
+</svg>

+ 11 - 0
src/assets/icon/svg/menu/phb.svg

@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<svg width="198px" height="198px" viewBox="0 0 198 198" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
+    <!-- Generator: Sketch 55.2 (78181) - https://sketchapp.com -->
+    <title>排行榜 (1)</title>
+    <desc>Created with Sketch.</desc>
+    <g id="页面1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
+        <g id="排行榜-(1)" transform="translate(0.148438, -0.046875)" fill="#2C2C2C" fill-rule="nonzero">
+            <path d="M43.978499,47.6220873 L11.3947908,47.6220873 C5.19788926,47.6220873 0.000488085938,52.3197385 0.000488085938,59.0163902 L0.000488085938,186.652572 C0.000488085938,192.849474 5.19788945,198.046875 11.3947908,198.046875 L44.4782492,198.046875 C50.6751508,198.046875 55.872552,193.349224 55.872552,186.652572 L55.872552,59.0163902 C55.3728018,52.7195387 50.7751006,47.6220873 43.978499,47.6220873 Z M185.607684,91.9998984 L152.524226,91.9998984 C146.327325,91.9998984 141.129923,96.6975496 141.129923,103.394201 L141.129923,186.552622 C141.129923,192.749524 146.327325,197.946925 152.524226,197.946925 L185.607684,197.946925 C191.804586,197.946925 197.001987,193.249274 197.001987,186.552622 L197.001987,103.394201 C197.001987,97.1972998 191.804586,91.9998984 185.607684,91.9998984 Z M115.342817,0.0458755859 L82.2593586,0.0458755859 C76.062457,0.0458755859 70.8650557,4.74352676 70.8650557,11.4401783 L70.8650557,186.652572 C70.8650557,192.849474 76.062457,198.046875 82.2593586,198.046875 L115.342817,198.046875 C121.539718,198.046875 126.73712,193.349224 126.73712,186.652572 L126.73712,11.4401783 C126.73712,4.74352656 121.039968,0.0458755859 115.342817,0.0458755859 Z" id="形状"></path>
+        </g>
+    </g>
+</svg>

+ 11 - 0
src/assets/icon/svg/menu/qxfx.svg

@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<svg width="170px" height="101px" viewBox="0 0 170 101" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
+    <!-- Generator: Sketch 55.2 (78181) - https://sketchapp.com -->
+    <title>气象预测</title>
+    <desc>Created with Sketch.</desc>
+    <g id="页面1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
+        <g id="气象预测" fill="#000000" fill-rule="nonzero">
+            <path d="M141.6,101 L27.9,101 C27,100.9 26,100.7 25.1,100.6 C13.2,98.7 3.2,89.4 0.7,77.7 C0.4,76.3 0.2,74.8 0,73.3 L0,69.1 C0.1,68.3 0.2,67.5 0.3,66.8 C2.6,54.6 9.7,46.6 21.5,42.7 C22,42.5 22.3,42.3 22.4,41.8 C25.7,27.7 40.1,18.8 54.3,22.1 C55,22.3 55.4,22.1 55.8,21.5 C66.5,5.3 86.4,-2.9 105.4,1 C125.4,5.1 140.3,20.7 143.3,40.7 C143.4,41.5 143.7,41.8 144.5,41.9 C156.4,43.7 166.4,53.1 168.9,64.7 C169.2,66.2 169.4,67.7 169.6,69.1 L169.6,73.3 C169.5,74.2 169.3,75.2 169.2,76.1 C167.3,87.9 157.9,97.8 146.1,100.2 C144.5,100.6 143.1,100.8 141.6,101 L141.6,101 Z" id="路径"></path>
+        </g>
+    </g>
+</svg>

+ 11 - 0
src/assets/icon/svg/menu/slgl.svg

@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<svg width="166px" height="172px" viewBox="0 0 166 172" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
+    <!-- Generator: Sketch 55.2 (78181) - https://sketchapp.com -->
+    <title>三率</title>
+    <desc>Created with Sketch.</desc>
+    <g id="页面1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
+        <g id="三率" fill="#2C2C2C" fill-rule="nonzero">
+            <path d="M107.4,122.9 C93.9,122.9 82.9,133.9 82.9,147.4 C82.9,160.9 93.9,171.9 107.4,171.9 C120.9,171.9 131.9,160.9 131.9,147.4 C131.9,133.8 120.9,122.9 107.4,122.9 Z M35.3,84.2 C15.8,84.2 0,100 0,119.4 C0,138.9 15.8,154.7 35.3,154.7 C54.8,154.7 70.6,138.9 70.6,119.4 C70.6,100 54.8,84.2 35.3,84.2 Z M119.8,0 C94.4,0 73.9,20.6 73.9,45.9 C73.9,71.3 94.5,91.8 119.8,91.8 C145.2,91.8 165.700363,71.2 165.700363,45.9 C165.8,20.6 145.2,0 119.8,0 Z" id="形状"></path>
+        </g>
+    </g>
+</svg>

+ 13 - 0
src/assets/icon/svg/menu/ztfx.svg

@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<svg width="180px" height="180px" viewBox="0 0 180 180" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
+    <!-- Generator: Sketch 55.2 (78181) - https://sketchapp.com -->
+    <title>专题 </title>
+    <desc>Created with Sketch.</desc>
+    <g id="页面1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
+        <g id="专题-" transform="translate(0.109375, -0.085938)" fill="#000000" fill-rule="nonzero">
+            <path d="M71.2239584,86.4192709 L7.5572916,54.4192709 C-2.4427084,49.4192709 -2.4427084,41.4192709 7.5572916,36.4192709 L71.2239584,4.08593745 C82.890625,-1.2473959 96.2239584,-1.2473959 107.890625,4.08593745 L171.890625,36.4192709 C181.890625,41.4192709 181.890625,49.4192709 171.890625,54.4192709 L107.890625,86.4192709 C96.2239584,91.4192709 82.890625,91.4192709 71.2239584,86.4192709 Z" id="路径"></path>
+            <path d="M171.890625,81.0859375 L153.223958,71.0859375 L107.890625,93.7526041 C96.2239584,99.0859375 82.890625,99.0859375 71.2239584,93.7526041 L26.5572916,71.4192709 L7.890625,81.4192709 C-2.109375,86.4192709 -2.109375,94.4192709 7.890625,99.4192709 L71.2239584,131.419271 C82.890625,136.752604 96.2239584,136.752604 107.890625,131.419271 L171.890625,99.0859375 C181.223958,94.0859375 181.223958,86.0859375 171.890625,81.0859375 Z" id="路径"></path>
+            <path d="M171.890625,126.085938 L153.223958,116.085938 L107.890625,138.419271 C96.2239584,143.752604 82.890625,143.752604 71.2239584,138.419271 L26.5572916,116.085938 L7.890625,126.085938 C-2.109375,131.085938 -2.109375,139.085938 7.890625,144.085938 L71.2239584,176.085938 C82.890625,181.419271 96.2239584,181.419271 107.890625,176.085938 L171.890625,143.752604 C181.223958,139.085938 181.223958,130.752604 171.890625,126.085938 L171.890625,126.085938 Z" id="路径"></path>
+        </g>
+    </g>
+</svg>

+ 448 - 468
src/views/layout/Menu.vue

@@ -1,20 +1,10 @@
 <template>
   <div class="menu">
     <ul class="menu-list">
-      <li class="menu-item"
-          v-for="(menu, index) of currentMenu"
-          :key="menu"
-          @click="click(index)"
-          :class="{ active: activeIndex == index }"
-          @mouseenter="subMenuShow(menu.children, index)">
+      <li class="menu-item" v-for="(menu, index) of currentMenu" :key="menu" @click="click(index)" :class="{ active: activeIndex == index }" @mouseenter="subMenuShow(menu.children, index)">
         <router-link :to="menu.path">
-          <el-tooltip class="item"
-                      effect="dark"
-                      :content="menu.text"
-                      placement="bottom"
-                      :show-after="500">
-            <div class="menu-icon svg-icon"
-                 :class="activeIndex == index ? 'svg-icon-green' : 'svg-icon-gray'">
+          <el-tooltip class="item" effect="dark" :content="menu.text" placement="bottom" :show-after="500" :enterable="false" hide-after="10">
+            <div class="menu-icon svg-icon" :class="activeIndex == index ? 'svg-icon-green' : 'svg-icon-gray'">
               <SvgIcon :svgid="menu.icon"></SvgIcon>
             </div>
           </el-tooltip>
@@ -27,40 +17,33 @@
       </li>
     </ul>
   </div>
-  <div class="sub-menu"
-       v-show="isShowSubMenu"
-       @mouseleave="subMenuHide">
+  <div class="sub-menu" v-show="isShowSubMenu" @mouseleave="subMenuHide">
     <ul class="menu-list">
-      <li class="menu-item"
-          v-for="(menu, index) of subMenu"
-          @click="subclick(index)"
-          :key="menu"
-          :class="{ active: subIndex == index }">
+      <li class="menu-item" v-for="(menu, index) of subMenu" @click="subclick(index)" :key="menu" :class="{ active: subIndex == index }">
         <router-link :to="menu.path">
           <div class="menu-icon svg-icon">
             <SvgIcon :svgid="menu.icon"></SvgIcon>
           </div>
-          <div class="sub-menu-text"
-               :class="subIndex == index ? 'green' : 'gray'">{{ menu.text }}</div>
+          <div class="sub-menu-text" :class="subIndex == index ? 'green' : 'gray'">{{ menu.text }}</div>
         </router-link>
       </li>
     </ul>
   </div>
 </template>
 <script>
-import SvgIcon from '@com/coms/icon/svg-icon.vue'
+import SvgIcon from "@com/coms/icon/svg-icon.vue";
 export default {
   components: {
-    SvgIcon
+    SvgIcon,
   },
   props: {},
   data() {
     return {
-      currRoot: 'monitor',
+      currRoot: "monitor",
       menuData: [
         {
-          id: 'monitor',
-          text: '驾驶舱',
+          id: "monitor",
+          text: "驾驶舱",
           data: [
             // {
             //   text: '驾驶舱',
@@ -68,46 +51,45 @@ export default {
             //   path: '/monitor/home'
             // },
             {
-              text: '基础矩阵',
-              icon: 'svg-matrix',
-              path: '/monitor/lightmatrix1'
+              text: "基础矩阵",
+              icon: "svg-matrix",
+              path: "/monitor/lightmatrix1",
             },
             {
-              text: '明细矩阵',
-              icon: 'svg-mx-matrix',
-              path: '/monitor/lightmatrix3'
+              text: "明细矩阵",
+              icon: "svg-mx-matrix",
+              path: "/monitor/lightmatrix3",
             },
             {
-              text: '欠发矩阵',
-              icon: 'svg-qf-matrix',
-              path: '/monitor/lightmatrix2'
+              text: "欠发矩阵",
+              icon: "svg-qf-matrix",
+              path: "/monitor/lightmatrix2",
             },
             {
-              text: '光伏矩阵',
-              icon: 'svg-gf-matrix',
-              path: '/monitor/lightmatrix'
+              text: "光伏矩阵",
+              icon: "svg-gf-matrix",
+              path: "/monitor/lightmatrix",
             },
             {
-              text: '状态监视',
-              icon: 'svg-state-watch',
-              path: '/monitor/status'
+              text: "状态监视",
+              icon: "svg-state-watch",
+              path: "/monitor/status",
             },
             {
-              text: 'Agc',
-              icon: 'svg-agc',
-              path: '/monitor/agc'
+              text: "Agc",
+              icon: "svg-agc",
+              path: "/monitor/agc",
             },
             {
-              text: '风场',
-              icon: 'svg-wind-site',
-              path: '/monitor/windsite/home/MHS_FDC'
-            }
-          ]
-        }
-        ,
+              text: "风场",
+              icon: "svg-wind-site",
+              path: "/monitor/windsite/home/MHS_FDC",
+            },
+          ],
+        },
         {
-          id: 'decision',
-          text: '经济运行',
+          id: "decision",
+          text: "经济运行",
           data: [
             //  {
             //   text: '经济运行首页',
@@ -116,87 +98,87 @@ export default {
             //    path: '/decision/pb'
             // },
             {
-              text: '对标管理',
-              icon: 'svg-matrix',
-              path: '/decision/decision1',
+              text: "对标管理",
+              icon: "svg-dbgl",
+              path: "/decision/decision1",
               children: [
                 {
-                  text: '风机绩效榜',
-                  icon: 'svg-wind-site',
-                  path: '/decision/decision1'
+                  text: "风机绩效榜",
+                  icon: "svg-wind-site",
+                  path: "/decision/decision1",
                 },
                 {
-                  text: '五项损失率',
-                  icon: 'svg-wind-site',
-                  path: '/decision/decision2'
+                  text: "五项损失率",
+                  icon: "svg-wind-site",
+                  path: "/decision/decision2",
                 },
                 {
-                  text: '场内对标',
-                  icon: 'svg-wind-site',
-                  path: '/decision/decision2Cndb'
+                  text: "场内对标",
+                  icon: "svg-wind-site",
+                  path: "/decision/decision2Cndb",
                 },
                 {
-                  text: '场际对标',
-                  icon: 'svg-wind-site',
-                  path: '/decision/decision2Cjdb'
+                  text: "场际对标",
+                  icon: "svg-wind-site",
+                  path: "/decision/decision2Cjdb",
                 },
                 {
-                  text: '项目对标',
-                  icon: 'svg-wind-site',
-                  path: '/decision/decision2Xmdb'
+                  text: "项目对标",
+                  icon: "svg-wind-site",
+                  path: "/decision/decision2Xmdb",
                 },
                 {
-                  text: '线路对标',
-                  icon: 'svg-wind-site',
-                  path: '/decision/decision2Xldb'
+                  text: "线路对标",
+                  icon: "svg-wind-site",
+                  path: "/decision/decision2Xldb",
                 },
                 {
-                  text: '性能对标',
-                  icon: 'svg-wind-site',
-                  path: '/decision/decision3'
+                  text: "性能对标",
+                  icon: "svg-wind-site",
+                  path: "/decision/decision3",
                 },
                 {
-                  text: '值际对标',
-                  icon: 'svg-wind-site',
-                  path: '/decision/decision4'
+                  text: "值际对标",
+                  icon: "svg-wind-site",
+                  path: "/decision/decision4",
                 },
                 {
-                  text: '单机横向对比',
-                  icon: 'svg-matrix',
-                  path: '/decision/decision3db'
+                  text: "单机横向对比",
+                  icon: "svg-matrix",
+                  path: "/decision/decision3db",
                 },
                 {
-                  text: '操作指令统计',
-                  icon: 'svg-matrix',
-                  path: '/decision/decision4czzl'
-                }
-              ]
-            }, // 三率管理
+                  text: "操作指令统计",
+                  icon: "svg-matrix",
+                  path: "/decision/decision4czzl",
+                },
+              ],
+            },
             {
-              text: '三率管理',
-              icon: 'svg-matrix',
-              path: '/fwjsl',
+              text: "三率管理",
+              icon: "svg-slgl",
+              path: "/fwjsl",
               children: [
                 {
-                  text: '复位及时率',
-                  icon: 'svg-wind-site',
-                  path: '/fwjsl'
+                  text: "复位及时率",
+                  icon: "svg-wind-site",
+                  path: "/fwjsl",
                 },
                 {
-                  text: '状态转换率',
-                  icon: 'svg-wind-site',
-                  path: '/ztzhl'
+                  text: "状态转换率",
+                  icon: "svg-wind-site",
+                  path: "/ztzhl",
                 },
                 {
-                  text: '消缺及时率',
-                  icon: 'svg-wind-site',
-                  path: '/xqjsl'
-                }
-              ]
-            } ,
+                  text: "消缺及时率",
+                  icon: "svg-wind-site",
+                  path: "/xqjsl",
+                },
+              ],
+            },
             {
               text: "排行榜",
-              icon: "svg-matrix",
+              icon: "svg-phb",
               path: "/phb",
               children: [
                 {
@@ -217,121 +199,121 @@ export default {
               ],
             },
             {
-              text: '专题分析',
-              icon: 'svg-wind-site',
-              path: '/new/ztfx',
+              text: "专题分析",
+              icon: "svg-ztfx",
+              path: "/new/ztfx",
               children: [
                 {
-                  text: '综合分析',
-                  icon: 'svg-wind-site',
-                  path: '/new/ztfx'
+                  text: "综合分析",
+                  icon: "svg-wind-site",
+                  path: "/new/ztfx",
                 },
                 {
-                  text: '风能利用率',
-                  icon: 'svg-wind-site',
-                  path: '/new/fnlyl'
+                  text: "风能利用率",
+                  icon: "svg-wind-site",
+                  path: "/new/fnlyl",
                 },
                 {
-                  text: '维护损失率',
-                  icon: 'svg-wind-site',
-                  path: '/new/whssl'
+                  text: "维护损失率",
+                  icon: "svg-wind-site",
+                  path: "/new/whssl",
                 },
                 {
-                  text: '故障损失率',
-                  icon: 'svg-wind-site',
-                  path: '/new/gzssl'
+                  text: "故障损失率",
+                  icon: "svg-wind-site",
+                  path: "/new/gzssl",
                 },
                 {
-                  text: '限电损失率',
-                  icon: 'svg-wind-site',
-                  path: '/new/xdssl'
+                  text: "限电损失率",
+                  icon: "svg-wind-site",
+                  path: "/new/xdssl",
                 },
                 {
-                  text: '性能损失率',
-                  icon: 'svg-wind-site',
-                  path: '/new/xnssl'
+                  text: "性能损失率",
+                  icon: "svg-wind-site",
+                  path: "/new/xnssl",
                 },
                 {
-                  text: '受累损失率',
-                  icon: 'svg-wind-site',
-                  path: '/new/slssl'
+                  text: "受累损失率",
+                  icon: "svg-wind-site",
+                  path: "/new/slssl",
                 },
                 {
-                  text: 'MTBF分析',
-                  icon: 'svg-wind-site',
-                  path: '/new/mtbf'
+                  text: "MTBF分析",
+                  icon: "svg-wind-site",
+                  path: "/new/mtbf",
                 },
                 {
-                  text: 'MTTR分析',
-                  icon: 'svg-wind-site',
-                  path: '/new/mttr'
+                  text: "MTTR分析",
+                  icon: "svg-wind-site",
+                  path: "/new/mttr",
                 },
                 {
-                  text: '复位分析',
-                  icon: 'svg-wind-site',
-                  path: '/new/zfwjsl'
+                  text: "复位分析",
+                  icon: "svg-wind-site",
+                  path: "/new/zfwjsl",
                 },
                 {
-                  text: '状态分析',
-                  icon: 'svg-wind-site',
-                  path: '/new/zztzhl'
+                  text: "状态分析",
+                  icon: "svg-wind-site",
+                  path: "/new/zztzhl",
                 },
                 {
-                  text: '消缺及时率',
-                  icon: 'svg-wind-site',
-                  path: '/new/zxqjsl'
+                  text: "消缺及时率",
+                  icon: "svg-wind-site",
+                  path: "/new/zxqjsl",
                 },
                 {
-                  text: '发电量分析',
-                  icon: 'svg-wind-site',
-                  path: '/new/zfdl'
+                  text: "发电量分析",
+                  icon: "svg-wind-site",
+                  path: "/new/zfdl",
                 },
                 {
-                  text: '综合场用电量',
-                  icon: 'svg-wind-site',
-                  path: '/new/zzhcydl'
-                }
-              ]
-            } ,
+                  text: "综合场用电量",
+                  icon: "svg-wind-site",
+                  path: "/new/zzhcydl",
+                },
+              ],
+            },
             {
               text: "风机分析",
-              icon: "svg-matrix",
+              icon: "svg-fjfx",
               path: "/fjfx",
               children: [
                 {
-                  text: '单机性能分析',
-                  icon: 'svg-wind-site',
-                  path: '/performanceAnalysis'
+                  text: "单机性能分析",
+                  icon: "svg-wind-site",
+                  path: "/performanceAnalysis",
                 },
                 {
-                  text: '单机月度分析',
-                  icon: 'svg-wind-site',
-                  path: '/singleAnalysis'
+                  text: "单机月度分析",
+                  icon: "svg-wind-site",
+                  path: "/singleAnalysis",
                 },
               ],
             },
             {
-              text: '气象分析',
-              icon: 'svg-wind-site',
-              path: '/new/fs'
+              text: "气象分析",
+              icon: "svg-qxfx",
+              path: "/new/fs",
             },
             {
-              text: '电量预测',
-              icon: 'svg-wind-site',
-              path: '/nhycfsdl',
+              text: "电量预测",
+              icon: "svg-dlyc",
+              path: "/nhycfsdl",
               children: [
                 {
-                  text: '预测拟合风速电量',
-                  icon: 'svg-wind-site',
-                  path: '/nhycfsdl'
+                  text: "预测拟合风速电量",
+                  icon: "svg-wind-site",
+                  path: "/nhycfsdl",
                 },
                 {
-                  text: '修正预测风速电量',
-                  icon: 'svg-wind-site',
-                  path: '/xzycfsdl'
-                }
-              ]
-            }
+                  text: "修正预测风速电量",
+                  icon: "svg-wind-site",
+                  path: "/xzycfsdl",
+                },
+              ],
+            },
             // {
             //   text: "单机分析",
             //   icon: "svg-wind-site",
@@ -354,11 +336,11 @@ export default {
             //     }
             //   ]
             // }
-          ]
+          ],
         },
         {
-          id: 'health',
-          text: '智慧检修',
+          id: "health",
+          text: "智慧检修",
           data: [
             // {
             //   text: '沙盘',
@@ -367,52 +349,51 @@ export default {
             //    path: '/health/sandtable'
             // },
             {
-              text: '等级评估',
-              icon: 'svg-wind-site',
-              path: '/assess/index'
+              text: "等级评估",
+              icon: "svg-wind-site",
+              path: "/assess/index",
             },
             {
-              text: '故障诊断',
-              icon: 'svg-wind-site',
-              path: '/malfunctionDiagnose',
+              text: "故障诊断",
+              icon: "svg-wind-site",
+              path: "/malfunctionDiagnose",
               children: [
                 {
-                  text: '故障诊断',
-                  icon: 'svg-wind-site',
-                  path: '/malfunctionDiagnose'
+                  text: "故障诊断",
+                  icon: "svg-wind-site",
+                  path: "/malfunctionDiagnose",
                 },
                 {
-                  text: '故障回溯',
-                  icon: 'svg-wind-site',
-                  path: '/malfunctionRecall'
+                  text: "故障回溯",
+                  icon: "svg-wind-site",
+                  path: "/malfunctionRecall",
                 },
-               
-              ]
+              ],
             },
             {
-              text: '健康管理',
-              icon: 'svg-wind-site',
-              path: '/health',
+              text: "健康管理",
+              icon: "svg-wind-site",
+              path: "/health",
               children: [
                 {
-                  text: '健康推荐',
-                  icon: 'svg-wind-site',
-                  path: '/health'
+                  text: "健康推荐",
+                  icon: "svg-wind-site",
+                  path: "/health",
                 },
                 {
-                  text: '健康首页',
-                  icon: 'svg-wind-site',
-                  path: '/health/health2'
+                  text: "健康首页",
+                  icon: "svg-wind-site",
+                  path: "/health/health2",
                 },
                 {
-                  text: '健康总览',
-                  icon: 'svg-wind-site',
-                  path: '/health/health6'
+                  text: "健康总览",
+                  icon: "svg-wind-site",
+                  path: "/health/health6",
                 },
                 {
-                  text: '健康矩阵',
-                  icon: 'svg-wind-site',
-                  path: '/health/health5'
+                  text: "健康矩阵",
+                  icon: "svg-wind-site",
+                  path: "/health/health5",
                 },
                 // {
                 //   text: "健康列表",
@@ -420,126 +401,127 @@ export default {
                 //   path: "/health/health6",
                 // },
                 {
-                  text: '健康列表',
-                  icon: 'svg-wind-site',
-                  path: '/health/health8'
-                }
-              ]
+                  text: "健康列表",
+                  icon: "svg-wind-site",
+                  path: "/health/health8",
+                },
+              ],
+            },
+            {
+              text: "全生命周期",
+              icon: "svg-wind-site",
+              path: "/allLifeManage",
             },
             {
-              text: '全生命周期',
-              icon: 'svg-wind-site',
-              path: '/allLifeManage'
-            }, {
-              text: '能效分析',
-              icon: 'svg-wind-site',
-              path: '/powerCurve',
+              text: "能效分析",
+              icon: "svg-wind-site",
+              path: "/powerCurve",
               children: [
                 {
-                  text: '功率曲线拟合',
-                  icon: 'svg-wind-site',
-                  path: '/powerCurve'
+                  text: "功率曲线拟合",
+                  icon: "svg-wind-site",
+                  path: "/powerCurve",
                 },
                 {
-                  text: '偏航对风分析',
-                  icon: 'svg-wind-site',
-                  path: '/phdffx'
+                  text: "偏航对风分析",
+                  icon: "svg-wind-site",
+                  path: "/phdffx",
                 },
                 {
-                  text: '切入切出分析',
-                  icon: 'svg-wind-site',
-                  path: '/cutAnalyse'
+                  text: "切入切出分析",
+                  icon: "svg-wind-site",
+                  path: "/cutAnalyse",
                 },
                 {
-                  text: '曲线偏差率分析',
-                  icon: 'svg-wind-site',
-                  path: '/qxpclfx'
+                  text: "曲线偏差率分析",
+                  icon: "svg-wind-site",
+                  path: "/qxpclfx",
                 },
-               
+
                 {
-                  text: '单机饱和度',
-                  icon: 'svg-wind-site',
-                  path: '/wtSaturability'
-                }
-              ]
+                  text: "单机饱和度",
+                  icon: "svg-wind-site",
+                  path: "/wtSaturability",
+                },
+              ],
             },
             {
-              text: '可靠性分析',
-              icon: 'svg-wind-site',
-              path: '/new/alarmcenter1',
+              text: "可靠性分析",
+              icon: "svg-wind-site",
+              path: "/new/alarmcenter1",
               children: [
                 {
-                  text: '预警分析',
-                  icon: 'svg-wind-site',
-                  path: '/new/alarmcenter1'
+                  text: "预警分析",
+                  icon: "svg-wind-site",
+                  path: "/new/alarmcenter1",
                 },
                 {
-                  text: '故障分析',
-                  icon: 'svg-wind-site',
-                  path: '/new/alarmcenter2'
+                  text: "故障分析",
+                  icon: "svg-wind-site",
+                  path: "/new/alarmcenter2",
                 },
                 {
-                  text: '预警评判分析',
-                  icon: 'svg-wind-site',
-                  path: '/warnStatistics'
+                  text: "预警评判分析",
+                  icon: "svg-wind-site",
+                  path: "/warnStatistics",
                 },
                 {
-                  text: '故障评判分析',
-                  icon: 'svg-wind-site',
-                  path: '/malfunctionStatistics'
+                  text: "故障评判分析",
+                  icon: "svg-wind-site",
+                  path: "/malfunctionStatistics",
                 },
                 {
-                  text: '部件评判分析',
-                  icon: 'svg-wind-site',
-                  path: '/bjgltjb'
+                  text: "部件评判分析",
+                  icon: "svg-wind-site",
+                  path: "/bjgltjb",
                 },
-              ]
+              ],
             },
             {
-              text: '风光资源分析',
-              icon: 'svg-wind-site',
-              path: '/windAnalysis',
+              text: "风光资源分析",
+              icon: "svg-wind-site",
+              path: "/windAnalysis",
               children: [
                 {
-                  text: '风资源散点',
-                  icon: 'svg-wind-site',
-                  path: '/windAnalysis'
+                  text: "风资源散点",
+                  icon: "svg-wind-site",
+                  path: "/windAnalysis",
                 },
                 {
-                  text: '风资源风向',
-                  icon: 'svg-wind-site',
-                  path: '/windAnalysis/fx'
-                }
-              ]
+                  text: "风资源风向",
+                  icon: "svg-wind-site",
+                  path: "/windAnalysis/fx",
+                },
+              ],
             },
-          ]
+          ],
         },
         {
-          id: 'personnel',
-          text: '安全管控',
+          id: "personnel",
+          text: "安全管控",
           data: [
-              {
-              text: '安全管控',
-              icon: 'svg-matrix',
-              path: '/new/personnel',
+            {
+              text: "安全管控",
+              icon: "svg-matrix",
+              path: "/new/personnel",
               children: [
                 {
-                  text: '人员矩阵',
-                  icon: 'svg-wind-site',
-                  path: '/new/personnel'
+                  text: "人员矩阵",
+                  icon: "svg-wind-site",
+                  path: "/new/personnel",
                 },
                 {
-                  text: '全局监视',
-                  icon: 'svg-wind-site',
-                  path: '/globalMonitor'
-                }
-              ]
-            }
-          ]
+                  text: "全局监视",
+                  icon: "svg-wind-site",
+                  path: "/globalMonitor",
+                },
+              ],
+            },
+          ],
         },
         {
-          id: 'znbb',
-          text: '智能报表',
+          id: "znbb",
+          text: "智能报表",
           data: [
             // {
             //   text: '报表首页',
@@ -547,307 +529,305 @@ export default {
             //   path: '/znbb/reportPandect'
             // },// 统计分析
             {
-              text: '统计分析',
-              icon: 'svg-matrix',
-              path: '/tjfx',
+              text: "统计分析",
+              icon: "svg-matrix",
+              path: "/tjfx",
               children: [
                 {
-                  text: '统计分析',
-                  icon: 'svg-matrix',
-                  path: '/tjfx'
+                  text: "统计分析",
+                  icon: "svg-matrix",
+                  path: "/tjfx",
                 },
                 {
-                  text: '表底值查询',
-                  icon: 'svg-matrix',
-                  path: '/bdzcx'
-                }
-              ]
+                  text: "表底值查询",
+                  icon: "svg-matrix",
+                  path: "/bdzcx",
+                },
+              ],
             },
-            // 报表管理
             {
-              text: '报表管理',
-              icon: 'svg-matrix',
-              path: '/bdzcx',
+              text: "报表管理",
+              icon: "svg-matrix",
+              path: "/bdzcx",
               children: [
                 {
-                  text: 'OA日报',
-                  icon: 'svg-matrix',
-                  path: '/oafd'
+                  text: "OA日报",
+                  icon: "svg-matrix",
+                  path: "/oafd",
                 },
                 {
-                  text: 'OA日报(光伏)',
-                  icon: 'svg-matrix',
-                  path: '/oagf'
+                  text: "OA日报(光伏)",
+                  icon: "svg-matrix",
+                  path: "/oagf",
                 },
                 {
-                  text: '新能源日报',
-                  icon: 'svg-matrix',
-                  path: '/xnyrb'
+                  text: "新能源日报",
+                  icon: "svg-matrix",
+                  path: "/xnyrb",
                 },
                 {
-                  text: '国电电力MISS日报(风电)',
-                  icon: 'svg-matrix',
-                  path: '/missfdrb'
+                  text: "国电电力MISS日报(风电)",
+                  icon: "svg-matrix",
+                  path: "/missfdrb",
                 },
                 {
-                  text: '国电电力MISS日报(光伏)',
-                  icon: 'svg-matrix',
-                  path: '/missgfrb'
+                  text: "国电电力MISS日报(光伏)",
+                  icon: "svg-matrix",
+                  path: "/missgfrb",
                 },
                 {
-                  text: '新能源风电生产月报',
-                  icon: 'svg-matrix',
-                  path: '/xnyfdscyb'
+                  text: "新能源风电生产月报",
+                  icon: "svg-matrix",
+                  path: "/xnyfdscyb",
                 },
                 {
-                  text: '麻黄山生产月报',
-                  icon: 'svg-matrix',
-                  path: '/mhsscyb'
+                  text: "麻黄山生产月报",
+                  icon: "svg-matrix",
+                  path: "/mhsscyb",
                 },
                 {
-                  text: '牛首山生产月报',
-                  icon: 'svg-matrix',
-                  path: '/nssscyb'
+                  text: "牛首山生产月报",
+                  icon: "svg-matrix",
+                  path: "/nssscyb",
                 },
                 {
-                  text: '青山生产月报',
-                  icon: 'svg-matrix',
-                  path: '/qsscyb'
+                  text: "青山生产月报",
+                  icon: "svg-matrix",
+                  path: "/qsscyb",
                 },
                 {
-                  text: '石板泉生产月报',
-                  icon: 'svg-matrix',
-                  path: '/sbqscyb'
+                  text: "石板泉生产月报",
+                  icon: "svg-matrix",
+                  path: "/sbqscyb",
                 },
                 {
-                  text: '香山生产月报',
-                  icon: 'svg-matrix',
-                  path: '/xsscyb'
+                  text: "香山生产月报",
+                  icon: "svg-matrix",
+                  path: "/xsscyb",
                 },
                 {
-                  text: '新能源光伏生产月报',
-                  icon: 'svg-matrix',
-                  path: '/xnygfscyb'
+                  text: "新能源光伏生产月报",
+                  icon: "svg-matrix",
+                  path: "/xnygfscyb",
                 },
                 {
-                  text: '大武口生产月报',
-                  icon: 'svg-matrix',
-                  path: '/dwkscyb'
+                  text: "大武口生产月报",
+                  icon: "svg-matrix",
+                  path: "/dwkscyb",
                 },
                 {
-                  text: '平罗生产月报',
-                  icon: 'svg-matrix',
-                  path: '/plscyb'
+                  text: "平罗生产月报",
+                  icon: "svg-matrix",
+                  path: "/plscyb",
                 },
                 {
-                  text: '宣和生产月报',
-                  icon: 'svg-matrix',
-                  path: '/xhscyb'
-                }
-              ]
+                  text: "宣和生产月报",
+                  icon: "svg-matrix",
+                  path: "/xhscyb",
+                },
+              ],
             },
-            // 自定制报表管理
             {
-              text: '自定制报表管理',
-              icon: 'svg-matrix',
-              path: '/fdczzdy',
+              text: "自定制报表管理",
+              icon: "svg-matrix",
+              path: "/fdczzdy",
               children: [
                 {
-                  text: '风电场站自定义',
-                  icon: 'svg-matrix',
-                  path: '/fdczzdy'
+                  text: "风电场站自定义",
+                  icon: "svg-matrix",
+                  path: "/fdczzdy",
                 },
                 {
-                  text: '风电项目自定义',
-                  icon: 'svg-matrix',
-                  path: '/fdxmzdy'
+                  text: "风电项目自定义",
+                  icon: "svg-matrix",
+                  path: "/fdxmzdy",
                 },
                 {
-                  text: '光伏场站自定义',
-                  icon: 'svg-matrix',
-                  path: '/gfczzdy'
+                  text: "光伏场站自定义",
+                  icon: "svg-matrix",
+                  path: "/gfczzdy",
                 },
                 {
-                  text: '光伏项目自定义',
-                  icon: 'svg-matrix',
-                  path: '/gfxmzdy'
-                }
-              ]
-            }
-          ]
+                  text: "光伏项目自定义",
+                  icon: "svg-matrix",
+                  path: "/gfxmzdy",
+                },
+              ],
+            },
+          ],
         },
         {
-          id: 'realSearch',
-          text: '其他',
+          id: "realSearch",
+          text: "其他",
           data: [
             {
-              text: '原始数据查询',
-              icon: 'svg-wind-site',
-              path: '/realSearch',
+              text: "原始数据查询",
+              icon: "svg-wind-site",
+              path: "/realSearch",
               children: [
                 {
-                  text: '测点数据查询',
-                  icon: 'svg-wind-site',
-                  path: '/realSearch'
+                  text: "测点数据查询",
+                  icon: "svg-wind-site",
+                  path: "/realSearch",
                 },
                 {
-                  text: '测点历史数据查询',
-                  icon: 'svg-wind-site',
-                  path: '/historySearch'
-                }
-              ]
+                  text: "测点历史数据查询",
+                  icon: "svg-wind-site",
+                  path: "/historySearch",
+                },
+              ],
             },
             {
-              text: '预警记录',
-              icon: 'svg-wind-site',
-              path: '/new/alarmcenter',
+              text: "预警记录",
+              icon: "svg-wind-site",
+              path: "/new/alarmcenter",
               children: [
                 {
-                  text: '预警管理',
-                  icon: 'svg-wind-site',
-                  path: '/new/alarmcenter'
+                  text: "预警管理",
+                  icon: "svg-wind-site",
+                  path: "/new/alarmcenter",
                 },
 
                 {
-                  text: '停机事件管理',
-                  icon: 'svg-wind-site',
-                  path: '/new/tjsj'
+                  text: "停机事件管理",
+                  icon: "svg-wind-site",
+                  path: "/new/tjsj",
                 },
                 {
-                  text: '限电管理',
-                  icon: 'svg-wind-site',
-                  path: '/new/xdgl'
+                  text: "限电管理",
+                  icon: "svg-wind-site",
+                  path: "/new/xdgl",
                 },
                 {
-                  text: '升压站报警',
-                  icon: 'svg-wind-site',
-                  path: '/alarmCenter/boosterAlarm'
+                  text: "升压站报警",
+                  icon: "svg-wind-site",
+                  path: "/alarmCenter/boosterAlarm",
                 },
                 {
-                  text: 'SCADA报警',
-                  icon: 'svg-wind-site',
-                  path: '/alarmCenter/scadaAlarm'
+                  text: "SCADA报警",
+                  icon: "svg-wind-site",
+                  path: "/alarmCenter/scadaAlarm",
                 },
                 {
-                  text: '自定义报警',
-                  icon: 'svg-wind-site',
-                  path: '/alarmCenter/customAlarm'
+                  text: "自定义报警",
+                  icon: "svg-wind-site",
+                  path: "/alarmCenter/customAlarm",
                 },
                 {
-                  text: '自定义报警统计',
-                  icon: 'svg-wind-site',
-                  path: '/alarmCenter/customStatistics'
-                }
-              ]
+                  text: "自定义报警统计",
+                  icon: "svg-wind-site",
+                  path: "/alarmCenter/customStatistics",
+                },
+              ],
             },
             {
-              text: '专家知识',
-              icon: 'svg-wind-site',
-              path: '/knowledge',
+              text: "专家知识",
+              icon: "svg-wind-site",
+              path: "/knowledge",
               children: [
                 {
-                  text: '故障知识列表',
-                  icon: 'svg-matrix',
-                  path: '/knowledge'
+                  text: "故障知识列表",
+                  icon: "svg-matrix",
+                  path: "/knowledge",
                 },
                 {
-                  text: '安全措施知识',
-                  icon: 'svg-matrix',
-                  path: '/knowledge2'
+                  text: "安全措施知识",
+                  icon: "svg-matrix",
+                  path: "/knowledge2",
                 },
                 {
-                  text: '排查检修方案',
-                  icon: 'svg-matrix',
-                  path: '/knowledge6'
+                  text: "排查检修方案",
+                  icon: "svg-matrix",
+                  path: "/knowledge6",
                 },
                 {
-                  text: '预警知识',
-                  icon: 'svg-matrix',
-                  path: '/knowledge7'
+                  text: "预警知识",
+                  icon: "svg-matrix",
+                  path: "/knowledge7",
                 },
                 {
-                  text: '特征参数',
-                  icon: 'svg-matrix',
-                  path: '/knowledge5'
+                  text: "特征参数",
+                  icon: "svg-matrix",
+                  path: "/knowledge5",
                 },
                 {
-                  text: '风险辨识知识',
-                  icon: 'svg-matrix',
-                  path: '/knowledge3'
+                  text: "风险辨识知识",
+                  icon: "svg-matrix",
+                  path: "/knowledge3",
                 },
                 {
-                  text: '作业指导知识',
-                  icon: 'svg-matrix',
-                  path: '/knowledge4'
-                }
-              ]
-            }
-          ]
-        }
+                  text: "作业指导知识",
+                  icon: "svg-matrix",
+                  path: "/knowledge4",
+                },
+              ],
+            },
+          ],
+        },
       ],
       activeIndex: 0,
       isShowSubMenu: false,
       parentIndex: null,
       subMenu: [],
-      subIndex: null
-    }
+      subIndex: null,
+    };
   },
   methods: {
     click(index) {
-      this.activeIndex = index
-      this.subIndex = null
+      this.activeIndex = index;
+      this.subIndex = null;
     },
     subMenuShow(children, index) {
       if (children) {
-        this.isShowSubMenu = true
-        this.parentIndex = index
+        this.isShowSubMenu = true;
+        this.parentIndex = index;
       } else {
-        this.isShowSubMenu = false
-        this.parentIndex = null
+        this.isShowSubMenu = false;
+        this.parentIndex = null;
       }
-      this.subMenu = children
+      this.subMenu = children;
     },
     subMenuHide() {
-      this.isShowSubMenu = false
-      this.parentIndex = null
+      this.isShowSubMenu = false;
+      this.parentIndex = null;
       // this.subMenu = [];
     },
     subclick(index) {
-      this.activeIndex = this.parentIndex
-      this.subIndex = index
-    }
+      this.activeIndex = this.parentIndex;
+      this.subIndex = index;
+    },
   },
   computed: {
     currentMenu() {
-      let data = this.menuData.filter(t => {
-        return t.id == this.currRoot
-      })[0].data
-      return data
-    }
+      let data = this.menuData.filter((t) => {
+        return t.id == this.currRoot;
+      })[0].data;
+      return data;
+    },
   },
   watch: {
     // 监听路由
     $route: {
-      handler: function(val, oldVal) {
+      handler: function (val, oldVal) {
         this.menuData.some((element, index) => {
           if (val.path.includes(element.id)) {
-            this.currRoot = element.id
+            this.currRoot = element.id;
             this.$nextTick(() => {
               this.currentMenu.some((element, index) => {
                 if (val.path == element.path) {
-                  this.activeIndex = index
+                  this.activeIndex = index;
                 }
-              })
-            })
-            return true
+              });
+            });
+            return true;
           }
-        })
+        });
       },
       //深度观察监听
-      deep: true
-    }
-  }
-}
+      deep: true,
+    },
+  },
+};
 </script>
  
 <style lang="less">