|
@@ -82,38 +82,12 @@ export default {
|
|
|
icon: "svg-agc",
|
|
|
path: "/agc",
|
|
|
},
|
|
|
- /* {
|
|
|
- text: "网络",
|
|
|
- icon: "svg-agc",
|
|
|
- path: "/agc",
|
|
|
- },
|
|
|
- {
|
|
|
- text: "风场",
|
|
|
- icon: "svg-wind-site",
|
|
|
- path: "/windsite/home",
|
|
|
- },
|
|
|
- {
|
|
|
- text: "关于",
|
|
|
- icon: "svg-agc",
|
|
|
- path: "/about",
|
|
|
- },*/
|
|
|
],
|
|
|
},
|
|
|
{
|
|
|
id: "datacenter",
|
|
|
text: "数据管理",
|
|
|
- data: [
|
|
|
- /*{
|
|
|
- text: "矩阵",
|
|
|
- icon: "svg-matrix",
|
|
|
- path: "/lightmatrix",
|
|
|
- },
|
|
|
- {
|
|
|
- text: "矩阵",
|
|
|
- icon: "svg-matrix",
|
|
|
- path: "/lightmatrix1",
|
|
|
- },*/
|
|
|
- ],
|
|
|
+ data: [],
|
|
|
},
|
|
|
{
|
|
|
id: "statistic",
|
|
@@ -128,7 +102,7 @@ export default {
|
|
|
text: "健康管理1",
|
|
|
icon: "svg-wind-site",
|
|
|
path: "/health1",
|
|
|
- }/*,
|
|
|
+ },
|
|
|
{
|
|
|
text: "健康管理2",
|
|
|
icon: "svg-wind-site",
|
|
@@ -158,7 +132,7 @@ export default {
|
|
|
text: "健康管理7",
|
|
|
icon: "svg-wind-site",
|
|
|
path: "/health7",
|
|
|
- },*/
|
|
|
+ },
|
|
|
],
|
|
|
},
|
|
|
{
|
|
@@ -169,22 +143,22 @@ export default {
|
|
|
text: "决策支持1",
|
|
|
icon: "svg-matrix",
|
|
|
path: "/decision1",
|
|
|
- },/*
|
|
|
- {
|
|
|
- text: "决策支持2",
|
|
|
- icon: "svg-matrix",
|
|
|
- path: "/decision2",
|
|
|
- },
|
|
|
- {
|
|
|
- text: "决策支持3",
|
|
|
- icon: "svg-matrix",
|
|
|
- path: "/decision3",
|
|
|
},
|
|
|
- {
|
|
|
- text: "决策支持4",
|
|
|
- icon: "svg-matrix",
|
|
|
- path: "/decision4",
|
|
|
- },*/
|
|
|
+ // {
|
|
|
+ // text: "决策支持2",
|
|
|
+ // icon: "svg-matrix",
|
|
|
+ // path: "/decision2",
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // text: "决策支持3",
|
|
|
+ // icon: "svg-matrix",
|
|
|
+ // path: "/decision3",
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // text: "决策支持4",
|
|
|
+ // icon: "svg-matrix",
|
|
|
+ // path: "/decision4",
|
|
|
+ // },
|
|
|
],
|
|
|
},
|
|
|
{
|
|
@@ -236,20 +210,20 @@ export default {
|
|
|
},
|
|
|
watch: {
|
|
|
//监听路由
|
|
|
- $route: {
|
|
|
- handler: function(val, oldVal) {
|
|
|
- if (val.query.root) this.currRoot = val.query.root;
|
|
|
+ // $route: {
|
|
|
+ // handler: function(val, oldVal) {
|
|
|
+ // if (val.query.root) this.currRoot = val.query.root;
|
|
|
|
|
|
- this.currentMenu.some((element, index) => {
|
|
|
- if (element.path == val.path) {
|
|
|
- this.activeIndex = index;
|
|
|
- return true;
|
|
|
- }
|
|
|
- });
|
|
|
- },
|
|
|
- //深度观察监听
|
|
|
- deep: true,
|
|
|
- },
|
|
|
+ // this.currentMenu.some((element, index) => {
|
|
|
+ // if (element.path == val.path) {
|
|
|
+ // this.activeIndex = index;
|
|
|
+ // return true;
|
|
|
+ // }
|
|
|
+ // });
|
|
|
+ // },
|
|
|
+ // //深度观察监听
|
|
|
+ // deep: true,
|
|
|
+ // },
|
|
|
root: {
|
|
|
handler: function(val, oldVal) {
|
|
|
this.currRoot = val;
|
|
@@ -261,13 +235,13 @@ export default {
|
|
|
// 基于 root 和 currRoot 为一致
|
|
|
// 进行页面刷新
|
|
|
// 防止 刷新页面也同步执行切换页面逻辑
|
|
|
- if (this.root == this.currRoot) {
|
|
|
- this.activeIndex = 0;
|
|
|
- this.$router.push({
|
|
|
- path: val[0].path,
|
|
|
- query: { root: this.currRoot },
|
|
|
- });
|
|
|
- }
|
|
|
+ // if (this.root == this.currRoot) {
|
|
|
+ // this.activeIndex = 0;
|
|
|
+ // this.$router.push({
|
|
|
+ // path: val[0].path,
|
|
|
+ // query: { root: this.currRoot },
|
|
|
+ // });
|
|
|
+ // }
|
|
|
}
|
|
|
},
|
|
|
},
|