|
|
@ -63,7 +63,6 @@ export default {
|
|
|
|
index: "/realTimeMonitor",
|
|
|
|
index: "/realTimeMonitor",
|
|
|
|
title: "实时监控",
|
|
|
|
title: "实时监控",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
icon: "el-icon-film",
|
|
|
|
icon: "el-icon-film",
|
|
|
|
index: "/pictureRotation",
|
|
|
|
index: "/pictureRotation",
|
|
|
@ -74,7 +73,6 @@ export default {
|
|
|
|
index: "/photoAlarm",
|
|
|
|
index: "/photoAlarm",
|
|
|
|
title: "告警处理",
|
|
|
|
title: "告警处理",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
icon: "el-icon-search",
|
|
|
|
icon: "el-icon-search",
|
|
|
|
index: "/realTimeSearch",
|
|
|
|
index: "/realTimeSearch",
|
|
|
@ -289,6 +287,7 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
],
|
|
|
|
role: "",
|
|
|
|
role: "",
|
|
|
|
|
|
|
|
menuList: [],
|
|
|
|
};
|
|
|
|
};
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
@ -309,25 +308,23 @@ export default {
|
|
|
|
this.role = localStorage.getItem("role");
|
|
|
|
this.role = localStorage.getItem("role");
|
|
|
|
console.log("用户管理");
|
|
|
|
console.log("用户管理");
|
|
|
|
console.log(this.role);
|
|
|
|
console.log(this.role);
|
|
|
|
|
|
|
|
|
|
|
|
// if (this.role == 0) {
|
|
|
|
// if (this.role == 0) {
|
|
|
|
// this.items = this.items;
|
|
|
|
// this.items = this.items;
|
|
|
|
// } else {
|
|
|
|
// } else {
|
|
|
|
// this.items = this.items1;
|
|
|
|
// this.menuList = JSON.parse(localStorage.getItem("menuPermission"));
|
|
|
|
|
|
|
|
// this.items = this.menuList;
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
if (this.role == 0) {
|
|
|
|
if (this.role == 0) {
|
|
|
|
console.log("ssssssssssssssssssssssssssssssssssssssss");
|
|
|
|
|
|
|
|
this.items = this.items;
|
|
|
|
this.items = this.items;
|
|
|
|
} else if (this.role == 1) {
|
|
|
|
} else if (this.role == 1) {
|
|
|
|
this.items = this.items1;
|
|
|
|
this.items = this.items1;
|
|
|
|
} else if (this.role == 2) {
|
|
|
|
} else if (this.role == 2) {
|
|
|
|
this.items = this.items2;
|
|
|
|
this.items = this.items2;
|
|
|
|
} else if (this.role == 4) {
|
|
|
|
} else if (this.role == 4) {
|
|
|
|
console.log("ssssssssssssssssssssssssssssssssssssssss");
|
|
|
|
|
|
|
|
this.items = this.hnjcitems;
|
|
|
|
this.items = this.hnjcitems;
|
|
|
|
console.log("ssssssssssssssssssssssssssssssssssssssss", this.items);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
this.activeIndex = this.items[0].index;
|
|
|
|
console.log(this.items);
|
|
|
|
console.log(this.items);
|
|
|
|
console.log(this.activeIndex);
|
|
|
|
console.log(this.activeIndex);
|
|
|
|
},
|
|
|
|
},
|
|
|
|