Jelajahi Sumber

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

wsy 4 tahun lalu
induk
melakukan
5b3f0f8c30
2 mengubah file dengan 569 tambahan dan 536 penghapusan
  1. 48 51
      src/views/layout/Header.vue
  2. 521 485
      src/views/layout/Menu.vue

+ 48 - 51
src/views/layout/Header.vue

@@ -1,7 +1,11 @@
 <template>
   <div class="header-menu">
     <ul class="header-menu-list">
-      <li class="header-menu-item" v-for="(menu, index) of menus" :key="menu" @click="click(index, menu)" :class="{ active: activeIndex == index }">
+      <li class="header-menu-item"
+          v-for="(menu, index) of menus"
+          :key="menu"
+          @click="click(index, menu)"
+          :class="{ active: activeIndex == index }">
         {{ menu.text }}
       </li>
     </ul>
@@ -24,35 +28,22 @@ export default {
     return {
       menus: [
         {
-          id: "monitor",
-          text: "状态监视",
-          path: "/monitor/home",
-          isActive: true,
-        },
-
-        {
-          id: "performanceAnalysis",
-          text: "增发分析",
-          path: "/performanceAnalysis",
-          isActive: false,
+          id: 'monitor',
+          text: '状态监视',
+          path: '/monitor/home',
+          isActive: true
         },
         {
-          id: "ztfx",
-          text: "降损分析",
-          path: "/new/ztfx",
-          isActive: false,
-        },
-         {
-          id: "realSearch",
-          text: "数据支撑",
-          path: "/realSearch",
-          isActive: false,
+          id: 'decision1',
+          text: '经济运行',
+          path: '/decision1',
+          isActive: false
         },
         {
-          id: "health",
-          text: "健康管理",
-          path: "/health",
-          isActive: false,
+          id: 'health',
+          text: '智慧检修',
+          path: '/health',
+          isActive: false
         },
         // {
         //   id: "decision",
@@ -61,19 +52,25 @@ export default {
         //   isActive: false,
         // },
         {
-          id: "personnel",
-          text: "安措管控",
-          path: "/new/personnel",
-          isActive: false,
+          id: 'personnel',
+          text: '安全管控',
+          path: '/new/personnel',
+          isActive: false
         },
         {
-          id: "bdzcx",
-          text: "智能报表",
-          path: "/bdzcx",
-          isActive: false,
+          id: 'bdzcx',
+          text: '智能报表',
+          path: '/bdzcx',
+          isActive: false
         },
+        {
+          id: 'realSearch',
+          text: '其他',
+          path: '/realSearch',
+          isActive: false
+        }
       ],
-      activeIndex: 0,
+      activeIndex: 0
       // menusDropdown: [
       //   {
       //     text: "子菜单1",
@@ -89,39 +86,39 @@ export default {
       //   },
       // ],
       // dropdown: false,
-    };
+    }
   },
   methods: {
     click(index, data) {
-      this.activeIndex = index;
-      this.$router.push(data.path);
+      this.activeIndex = index
+      this.$router.push(data.path)
     },
     clickSubMenu(index, code) {
-      console.log(index, code);
+      console.log(index, code)
     },
     clickMenu() {
-      this.dropdown = !this.dropdown;
-    },
+      this.dropdown = !this.dropdown
+    }
   },
   computed: {
     activeClass(data) {
-      return data.isActive ? "active" : "";
-    },
+      return data.isActive ? 'active' : ''
+    }
   },
   watch: {
     $route: {
       handler: function(val, oldVal) {
         this.menus.some((t, index) => {
           if (val.path.includes(t.id)) {
-            this.activeIndex = index;
+            this.activeIndex = index
           }
-        });
+        })
       },
       //深度观察监听
-      deep: true,
-    },
-  },
-};
+      deep: true
+    }
+  }
+}
 </script>
 
 <style lang="less">
@@ -158,7 +155,7 @@ export default {
         transition: color 0.2s ease-in-out;
 
         &::after {
-          content: "";
+          content: '';
           position: absolute;
           width: 100%;
           height: 0.463vh;
@@ -215,7 +212,7 @@ export default {
         background-color: fade(@write, 5%);
 
         &::after {
-          content: "";
+          content: '';
           position: absolute;
           width: 100%;
           height: 0.463vh;

+ 521 - 485
src/views/layout/Menu.vue

@@ -1,10 +1,20 @@
 <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">
+            <div class="menu-icon svg-icon"
+                 :class="activeIndex == index ? 'svg-icon-green' : 'svg-icon-gray'">
               <SvgIcon :svgid="menu.icon"></SvgIcon>
             </div>
           </el-tooltip>
@@ -17,308 +27,284 @@
       </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 () {
+  data() {
     return {
-      currRoot: "monitor",
+      currRoot: 'monitor',
       menuData: [
         {
-          id: "monitor",
-          text: "状态监视",
+          id: 'monitor',
+          text: '状态监视',
           data: [
             {
-              text: "驾驶舱",
-              icon: "svg-lead-cockpit",
-              path: "/monitor/home",
+              text: '驾驶舱',
+              icon: 'svg-lead-cockpit',
+              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: "realSearch",
-          text: "数据管理",
+          id: 'decision1',
+          text: '经济运行',
           data: [
+            ,
             {
-              text: "原始数据查询",
-              icon: "svg-wind-site",
-              path: "/yssjcx",
+              text: '对标管理',
+              icon: 'svg-matrix',
+              path: '/decision1',
               children: [
                 {
-                  text: "测点数据查询",
-                  icon: "svg-wind-site",
-                  path: "/realSearch",
+                  text: '风机绩效榜',
+                  icon: 'svg-wind-site',
+                  path: '/decision1'
                 },
                 {
-                  text: "测点历史数据查询",
-                  icon: "svg-wind-site",
-                  path: "/historySearch",
+                  text: '五项损失率',
+                  icon: 'svg-wind-site',
+                  path: '/decision2'
                 },
-              ],
-            },
-            {
-              text: "预警记录",
-              icon: "svg-wind-site",
-              path: "/new",
-              children: [
                 {
-                  text: "预警管理",
-                  icon: "svg-wind-site",
-                  path: "/new/alarmcenter",
+                  text: '场内对标',
+                  icon: 'svg-wind-site',
+                  path: '/decision2Cndb'
                 },
-
                 {
-                  text: "停机事件管理",
-                  icon: "svg-wind-site",
-                  path: "/new/tjsj",
+                  text: '场际对标',
+                  icon: 'svg-wind-site',
+                  path: '/decision2Cjdb'
                 },
                 {
-                  text: "限电管理",
-                  icon: "svg-wind-site",
-                  path: "/new/xdgl",
+                  text: '项目对标',
+                  icon: 'svg-wind-site',
+                  path: '/decision2Xmdb'
                 },
                 {
-                  text: "升压站报警",
-                  icon: "svg-wind-site",
-                  path: "/alarmCenter/boosterAlarm",
+                  text: '线路对标',
+                  icon: 'svg-wind-site',
+                  path: '/decision2Xldb'
                 },
                 {
-                  text: "SCADA报警",
-                  icon: "svg-wind-site",
-                  path: "/alarmCenter/scadaAlarm",
+                  text: '性能对标',
+                  icon: 'svg-wind-site',
+                  path: '/decision3'
                 },
                 {
-                  text: "自定义报警",
-                  icon: "svg-wind-site",
-                  path: "/alarmCenter/customAlarm",
+                  text: '值际对标',
+                  icon: 'svg-wind-site',
+                  path: '/decision4'
                 },
                 {
-                  text: "自定义报警统计",
-                  icon: "svg-wind-site",
-                  path: "/alarmCenter/customStatistics",
+                  text: '单机横向对比',
+                  icon: 'svg-matrix',
+                  path: '/decision3db'
                 },
-              ],
-            },
-          ],
-        },
-        {
-          id: "performanceAnalysis",
-          text: "统计分析",
-          data: [
+                {
+                  text: '操作指令统计',
+                  icon: 'svg-matrix',
+                  path: '/decision4czzl'
+                }
+              ]
+            }, // 三率管理
             {
-              text: "能效分析",
-              icon: "svg-wind-site",
-              path: "/nxfx",
+              text: '三率管理',
+              icon: 'svg-matrix',
+              path: '/fwjsl',
               children: [
                 {
-                  text: "功率曲线拟合",
-                  icon: "svg-wind-site",
-                  path: "/powerCurve",
-                },
-                {
-                  text: "偏航对风分析",
-                  icon: "svg-wind-site",
-                  path: "/nxfx2",
+                  text: '复位及时率',
+                  icon: 'svg-wind-site',
+                  path: '/fwjsl'
                 },
                 {
-                  text: "切入切出分析",
-                  icon: "svg-wind-site",
-                  path: "/cutAnalyse",
+                  text: '状态转换率',
+                  icon: 'svg-wind-site',
+                  path: '/ztzhl'
                 },
                 {
-                  text: "曲线偏差率分析",
-                  icon: "svg-wind-site",
-                  path: "/qxpclfx",
-                },
-                {
-                  text: "单机性能分析",
-                  icon: "svg-wind-site",
-                  path: "/performanceAnalysis",
-                },
-                {
-                  text: "单机月度分析",
-                  icon: "svg-wind-site",
-                  path: "/singleAnalysis",
-                },
-                {
-                  text: "单机饱和度",
-                  icon: "svg-wind-site",
-                  path: "/wtSaturability",
-                },
-              ],
-            },
+                  text: '消缺及时率',
+                  icon: 'svg-wind-site',
+                  path: '/xqjsl'
+                }
+              ]
+            } ,
             {
-              text: "可靠性分析",
-              icon: "svg-wind-site",
-              path: "/kxkfx",
+              text: "排行榜",
+              icon: "svg-matrix",
+              path: "/phb",
               children: [
-                                {
-                  text: "预警分析",
-                  icon: "svg-wind-site",
-                  path: "/new/alarmcenter1",
-                },
                 {
-                  text: "故障分析",
+                  text: "发电效率排行",
                   icon: "svg-wind-site",
-                  path: "/new/alarmcenter2",
+                  path: "/powerRank",
                 },
                 {
-                  text: "预警评判分析",
+                  text: "总发电效率排行",
                   icon: "svg-wind-site",
-                  path: "/warnStatistics",
+                  path: "/totalPowerRank",
                 },
                 {
-                  text: "故障评判分析",
+                  text: "报警排行",
                   icon: "svg-wind-site",
-                  path: "/malfunctionStatistics",
-                }
+                  path: "/warningRank",
+                },
               ],
             },
             {
-              text: "风光资源分析",
-              icon: "svg-wind-site",
-              path: "/fgzyfx",
+              text: '专题分析',
+              icon: 'svg-wind-site',
+              path: '/new/ztfx',
               children: [
                 {
-                  text: "风资源散点",
-                  icon: "svg-wind-site",
-                  path: "/windAnalysis",
-                }, {
-                  text: "风资源风向",
-                  icon: "svg-wind-site",
-                  path: "/windAnalysis/fx",
+                  text: '综合分析',
+                  icon: 'svg-wind-site',
+                  path: '/new/ztfx'
                 },
-              ],
-            },
-            {
-              text: "专题分析",
-              icon: "svg-wind-site",
-              path: "/fgzyfx",
-              children: [
                 {
-                  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-matrix",
+              path: "/fjfx",
+              children: [
+                {
+                  text: '单机性能分析',
+                  icon: 'svg-wind-site',
+                  path: '/performanceAnalysis'
                 },
                 {
-                  text: "综合场用电量",
-                  icon: "svg-wind-site",
-                  path: "/new/zzhcydl",
+                  text: '单机月度分析',
+                  icon: 'svg-wind-site',
+                  path: '/singleAnalysis'
                 },
-              ]
-            },
+              ],
+            }
             // {
             //   text: "单机分析",
             //   icon: "svg-wind-site",
@@ -341,53 +327,46 @@ export default {
             //     }
             //   ]
             // }
-          ],
+          ]
         },
         {
-          id: "health",
-          text: "健康管理",
+          id: 'health',
+          text: '智慧检修',
           data: [
             {
-              text: "等级评估",
-              icon: "svg-wind-site",
-              path: "/assess",
-              children: [
-                {
-                  text: "等级评估",
-                  icon: "svg-wind-site",
-                  path: "/assess/index",
-                },
-                {
-                   text: "评估配置",
-                  icon: "svg-wind-site",
-                  path: "/assess/config",
-                },
-              ]
-            },{
-              text: "健康管理",
-              icon: "svg-wind-site",
-              path: "/health",
+              text: '沙盘',
+              icon: 'svg-wind-site',
+              path: '/spt'
+            },
+            {
+              text: '等级评估',
+              icon: 'svg-wind-site',
+              path: '/djpg'
+            },
+            {
+              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: "健康列表",
@@ -395,81 +374,99 @@ export default {
                 //   path: "/health/health6",
                 // },
                 {
-                  text: "健康列表",
-                  icon: "svg-wind-site",
-                  path: "/health/health8",
-                },
-              ],
-            },{
-              text: "全生命周期",
-              icon: "svg-wind-site",
-              path: "/allLifeManage",
-             
+                  text: '健康列表',
+                  icon: 'svg-wind-site',
+                  path: '/health/health8'
+                }
+              ]
             },
-          ],
-        },
-        {
-          id: "decision",
-          text: "决策支持",
-          data: [
             {
-              text: "对标管理",
-              icon: "svg-matrix",
-              path: "/decision/decision1",
+              text: '全生命周期',
+              icon: 'svg-wind-site',
+              path: '/allLifeManage'
+            }, {
+              text: '能效分析',
+              icon: 'svg-wind-site',
+              path: '/powerCurve',
               children: [
-              
                 {
-                  text: "风机绩效榜",
-                  icon: "svg-wind-site",
-                  path: "/decision/decision1",
+                  text: '功率曲线拟合',
+                  icon: 'svg-wind-site',
+                  path: '/powerCurve'
                 },
                 {
-                  text: "五项损失率",
-                  icon: "svg-wind-site",
-                  path: "/decision/decision2",
+                  text: '偏航对风分析',
+                  icon: 'svg-wind-site',
+                  path: '/nxfx2'
                 },
                 {
-                  text: "场内对标",
-                  icon: "svg-wind-site",
-                  path: "/decision/decision2Cndb",
+                  text: '切入切出分析',
+                  icon: 'svg-wind-site',
+                  path: '/cutAnalyse'
                 },
                 {
-                  text: "场际对标",
-                  icon: "svg-wind-site",
-                  path: "/decision/decision2Cjdb",
+                  text: '曲线偏差率分析',
+                  icon: 'svg-wind-site',
+                  path: '/qxpclfx'
                 },
+               
                 {
-                  text: "项目对标",
-                  icon: "svg-wind-site",
-                  path: "/decision/decision2Xmdb",
-                },
+                  text: '单机饱和度',
+                  icon: 'svg-wind-site',
+                  path: '/wtSaturability'
+                }
+              ]
+            },
+            {
+              text: '可靠性分析',
+              icon: 'svg-wind-site',
+              path: '/new/alarmcenter1',
+              children: [
                 {
-                  text: "线路对标",
-                  icon: "svg-wind-site",
-                  path: "/decision/decision2Xldb",
+                  text: '预警分析',
+                  icon: 'svg-wind-site',
+                  path: '/new/alarmcenter1'
                 },
                 {
-                  text: "性能对标",
-                  icon: "svg-wind-site",
-                  path: "/decision/decision3",
+                  text: '故障分析',
+                  icon: 'svg-wind-site',
+                  path: '/new/alarmcenter2'
                 },
                 {
-                  text: "值际对标",
-                  icon: "svg-wind-site",
-                  path: "/decision/decision4",
+                  text: '预警评判分析',
+                  icon: 'svg-wind-site',
+                  path: '/warnStatistics'
                 },
                 {
-                  text: "单机横向对比",
-                  icon: "svg-matrix",
-                  path: "/decision/decision3db",
-                },{
-                  text: "操作指令统计",
-                  icon: "svg-matrix",
-                  path: "/decision/decision4czzl",
+                  text: '故障评判分析',
+                  icon: 'svg-wind-site',
+                  path: '/malfunctionStatistics'
+                }
+              ]
+            },
+            {
+              text: '风光资源分析',
+              icon: 'svg-wind-site',
+              path: '/windAnalysis',
+              children: [
+                {
+                  text: '风资源散点',
+                  icon: 'svg-wind-site',
+                  path: '/windAnalysis'
                 },
-                
-              ],
+                {
+                  text: '风资源风向',
+                  icon: 'svg-wind-site',
+                  path: '/windAnalysis/fx'
+                }
+              ]
             }
+          ]
+        },
+        {
+          id: 'personnel',
+          text: '安全管控',
+          data: [
             // ,
             // {
             //   text: "五项损失率",
@@ -506,294 +503,333 @@ export default {
             //   icon: "svg-matrix",
             //   path: "/decision/decision4",
             // }
-            ,
+
             {
-              text: "排行榜",
-              icon: "svg-matrix",
-              path: "/phb",
+              text: '安全管控',
+              icon: 'svg-matrix',
+              path: '/new/personnel',
               children: [
                 {
-                  text: "发电效率排行",
-                  icon: "svg-wind-site",
-                  path: "/powerRank",
+                  text: '人员矩阵',
+                  icon: 'svg-wind-site',
+                  path: '/new/personnel'
                 },
                 {
-                  text: "总发电效率排行",
-                  icon: "svg-wind-site",
-                  path: "/totalPowerRank",
-                },
+                  text: '全局监视',
+                  icon: 'svg-wind-site',
+                  path: '/new/personnel'
+                }
+              ]
+            }
+          ]
+        },
+        {
+          id: 'bdzcx',
+          text: '智能报表',
+          data: [
+            // 统计分析
+            {
+              text: '统计分析',
+              icon: 'svg-matrix',
+              path: '/tjfx',
+              children: [
                 {
-                  text: "报警排行",
-                  icon: "svg-wind-site",
-                  path: "/warningRank",
+                  text: '统计分析',
+                  icon: 'svg-matrix',
+                  path: '/tjfx'
                 },
-              ],
+                {
+                  text: '表底值查询',
+                  icon: 'svg-matrix',
+                  path: '/bdzcx'
+                }
+              ]
             },
-            // 三率管理
+            // 报表管理
             {
-              text: "三率管理",
-              icon: "svg-matrix",
-              path: "/slgl",
+              text: '报表管理',
+              icon: 'svg-matrix',
+              path: '/bdzcx',
               children: [
                 {
-                  text: "复位及时率",
-                  icon: "svg-wind-site",
-                  path: "/fwjsl",
+                  text: 'OA日报',
+                  icon: 'svg-matrix',
+                  path: '/oafd'
                 },
                 {
-                  text: "状态转换率",
-                  icon: "svg-wind-site",
-                  path: "/ztzhl",
+                  text: 'OA日报(光伏)',
+                  icon: 'svg-matrix',
+                  path: '/oagf'
                 },
                 {
-                  text: "消缺及时率",
-                  icon: "svg-wind-site",
-                  path: "/xqjsl",
+                  text: '新能源日报',
+                  icon: 'svg-matrix',
+                  path: '/xnyrb'
                 },
-              ],
-            },
-          ],
-        },
-        {
-          id: "knowledge",
-          text: "知识管理",
-          data: [
-            {
-              text: "故障知识列表",
-              icon: "svg-matrix",
-              path: "/knowledge",
-            },
-            {
-              text: "安全措施知识",
-              icon: "svg-matrix",
-              path: "/knowledge2",
-            },
-            {
-              text: "排查检修方案",
-              icon: "svg-matrix",
-              path: "/knowledge6",
-            },
-            {
-              text: "预警知识",
-              icon: "svg-matrix",
-              path: "/knowledge7",
-            },
-            {
-              text: "特征参数",
-              icon: "svg-matrix",
-              path: "/knowledge5",
-            },
-            {
-              text: "风险辨识知识",
-              icon: "svg-matrix",
-              path: "/knowledge3",
-            },
-            {
-              text: "作业指导知识",
-              icon: "svg-matrix",
-              path: "/knowledge4",
-            },
-          ],
-        },
-        {
-          id: "bdzcx",
-          text: "智能报表",
-          data: [
-            // 统计分析
-            {
-              text: "统计分析",
-              icon: "svg-matrix",
-              path: "/bdzcx",
-              children: [
                 {
-                  text: "统计分析",
-                  icon: "svg-matrix",
-                  path: "/tjfx",
+                  text: '国电电力MISS日报(风电)',
+                  icon: 'svg-matrix',
+                  path: '/missfdrb'
                 },
                 {
-                  text: "表底值查询",
-                  icon: "svg-matrix",
-                  path: "/bdzcx",
+                  text: '国电电力MISS日报(光伏)',
+                  icon: 'svg-matrix',
+                  path: '/missgfrb'
                 },
-              ],
-            },
-            // 报表管理
-            {
-              text: "报表管理",
-              icon: "svg-matrix",
-              path: "/bdzcx",
-              children: [
                 {
-                  text: "OA日报",
-                  icon: "svg-matrix",
-                  path: "/oafd",
+                  text: '新能源风电生产月报',
+                  icon: 'svg-matrix',
+                  path: '/xnyfdscyb'
                 },
                 {
-                  text: "OA日报(光伏)",
-                  icon: "svg-matrix",
-                  path: "/oagf",
+                  text: '麻黄山生产月报',
+                  icon: 'svg-matrix',
+                  path: '/mhsscyb'
                 },
                 {
-                  text: "新能源日报",
-                  icon: "svg-matrix",
-                  path: "/xnyrb",
+                  text: '牛首山生产月报',
+                  icon: 'svg-matrix',
+                  path: '/nssscyb'
                 },
                 {
-                  text: "国电电力MISS日报(风电)",
-                  icon: "svg-matrix",
-                  path: "/missfdrb",
+                  text: '青山生产月报',
+                  icon: 'svg-matrix',
+                  path: '/qsscyb'
                 },
                 {
-                  text: "国电电力MISS日报(光伏)",
-                  icon: "svg-matrix",
-                  path: "/missgfrb",
+                  text: '石板泉生产月报',
+                  icon: 'svg-matrix',
+                  path: '/sbqscyb'
                 },
                 {
-                  text: "新能源风电生产月报",
-                  icon: "svg-matrix",
-                  path: "/xnyfdscyb",
+                  text: '香山生产月报',
+                  icon: 'svg-matrix',
+                  path: '/xsscyb'
                 },
                 {
-                  text: "麻黄山生产月报",
-                  icon: "svg-matrix",
-                  path: "/mhsscyb",
+                  text: '新能源光伏生产月报',
+                  icon: 'svg-matrix',
+                  path: '/xnygfscyb'
                 },
                 {
-                  text: "牛首山生产月报",
-                  icon: "svg-matrix",
-                  path: "/nssscyb",
+                  text: '大武口生产月报',
+                  icon: 'svg-matrix',
+                  path: '/dwkscyb'
                 },
                 {
-                  text: "青山生产月报",
-                  icon: "svg-matrix",
-                  path: "/qsscyb",
+                  text: '平罗生产月报',
+                  icon: 'svg-matrix',
+                  path: '/plscyb'
                 },
                 {
-                  text: "石板泉生产月报",
-                  icon: "svg-matrix",
-                  path: "/sbqscyb",
+                  text: '宣和生产月报',
+                  icon: 'svg-matrix',
+                  path: '/xhscyb'
+                }
+              ]
+            },
+            // 自定制报表管理
+            {
+              text: '自定制报表管理',
+              icon: 'svg-matrix',
+              path: '/fdczzdy',
+              children: [
+                {
+                  text: '风电场站自定义',
+                  icon: 'svg-matrix',
+                  path: '/fdczzdy'
                 },
                 {
-                  text: "香山生产月报",
-                  icon: "svg-matrix",
-                  path: "/xsscyb",
+                  text: '风电项目自定义',
+                  icon: 'svg-matrix',
+                  path: '/fdxmzdy'
                 },
                 {
-                  text: "新能源光伏生产月报",
-                  icon: "svg-matrix",
-                  path: "/xnygfscyb",
+                  text: '光伏场站自定义',
+                  icon: 'svg-matrix',
+                  path: '/gfczzdy'
                 },
                 {
-                  text: "大武口生产月报",
-                  icon: "svg-matrix",
-                  path: "/dwkscyb",
+                  text: '光伏项目自定义',
+                  icon: 'svg-matrix',
+                  path: '/gfxmzdy'
+                }
+              ]
+            }
+          ]
+        },
+        {
+          id: 'realSearch',
+          text: '数据管理',
+          data: [
+            {
+              text: '原始数据查询',
+              icon: 'svg-wind-site',
+              path: '/realSearch',
+              children: [
+                {
+                  text: '测点数据查询',
+                  icon: 'svg-wind-site',
+                  path: '/realSearch'
                 },
                 {
-                  text: "平罗生产月报",
-                  icon: "svg-matrix",
-                  path: "/plscyb",
+                  text: '测点历史数据查询',
+                  icon: 'svg-wind-site',
+                  path: '/historySearch'
+                }
+              ]
+            },
+            {
+              text: '预警记录',
+              icon: 'svg-wind-site',
+              path: '/new/alarmcenter',
+              children: [
+                {
+                  text: '预警管理',
+                  icon: 'svg-wind-site',
+                  path: '/new/alarmcenter'
                 },
+
                 {
-                  text: "宣和生产月报",
-                  icon: "svg-matrix",
-                  path: "/xhscyb",
+                  text: '停机事件管理',
+                  icon: 'svg-wind-site',
+                  path: '/new/tjsj'
                 },
-              ],
+                {
+                  text: '限电管理',
+                  icon: 'svg-wind-site',
+                  path: '/new/xdgl'
+                },
+                {
+                  text: '升压站报警',
+                  icon: 'svg-wind-site',
+                  path: '/alarmCenter/boosterAlarm'
+                },
+                {
+                  text: 'SCADA报警',
+                  icon: 'svg-wind-site',
+                  path: '/alarmCenter/scadaAlarm'
+                },
+                {
+                  text: '自定义报警',
+                  icon: 'svg-wind-site',
+                  path: '/alarmCenter/customAlarm'
+                },
+                {
+                  text: '自定义报警统计',
+                  icon: 'svg-wind-site',
+                  path: '/alarmCenter/customStatistics'
+                }
+              ]
             },
-            // 自定制报表管理
             {
-              text: "自定制报表管理",
-              icon: "svg-matrix",
-              path: "/fdczzdy",
+              text: '专家知识',
+              icon: 'svg-wind-site',
+              path: '/knowledge',
               children: [
                 {
-                  text: "风电场站自定义",
-                  icon: "svg-matrix",
-                  path: "/fdczzdy",
+                  text: '故障知识列表',
+                  icon: 'svg-matrix',
+                  path: '/knowledge'
                 },
                 {
-                  text: "风电项目自定义",
-                  icon: "svg-matrix",
-                  path: "/fdxmzdy",
+                  text: '安全措施知识',
+                  icon: 'svg-matrix',
+                  path: '/knowledge2'
                 },
                 {
-                  text: "光伏场站自定义",
-                  icon: "svg-matrix",
-                  path: "/gfczzdy",
+                  text: '排查检修方案',
+                  icon: 'svg-matrix',
+                  path: '/knowledge6'
                 },
                 {
-                  text: "光伏项目自定义",
-                  icon: "svg-matrix",
-                  path: "/gfxmzdy",
+                  text: '预警知识',
+                  icon: 'svg-matrix',
+                  path: '/knowledge7'
                 },
-              ],
-            },
-          ],
-        },
+                {
+                  text: '特征参数',
+                  icon: 'svg-matrix',
+                  path: '/knowledge5'
+                },
+                {
+                  text: '风险辨识知识',
+                  icon: 'svg-matrix',
+                  path: '/knowledge3'
+                },
+                {
+                  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;
+    click(index) {
+      this.activeIndex = index
+      this.subIndex = null
     },
-    subMenuShow (children, index) {
+    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;
+    subMenuHide() {
+      this.isShowSubMenu = false
+      this.parentIndex = null
       // this.subMenu = [];
     },
-    subclick (index) {
-      this.activeIndex = this.parentIndex;
-      this.subIndex = index;
-    },
+    subclick(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;
-    },
+    currentMenu() {
+      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">