fix: 解决冲突

This commit is contained in:
kun 2024-04-28 09:07:45 +08:00
commit 0be557b435

View File

@ -129,6 +129,18 @@
<img src="@/assets/images/icon-bigData.png" alt srcset />
综合监管大屏
</p>
<p
v-show="
$route.path.indexOf('projectIndex') != -1 &&
$store.state.userInfo.projectKanban == 0
"
class="header-btn"
style="margin-right:10px"
@click="toOverviewCommand()"
>
<img src="@/assets/images/icon-bigData.png" alt srcset />
指挥部大屏
</p>
<p
v-show="
$route.path.indexOf('projectIndex') != -1 &&
@ -556,6 +568,39 @@ export default {
// window._paq.push(['trackEvent', '', '', ''])
// }
},
toOverviewCommand() {
this.$forceUpdate();
this.newBigScreen = this.getNewBigScreen;
if (this.newBigScreen == null || this.newBigScreen == "") {
//--------------------
//
let arr = this.$store.state.userInfo.menuAuthority.moduleList;
let arr2 = [];
arr.forEach((element) => {
if (element.moduleType == 4) {
arr2.push(element);
return;
}
});
// 访
if (!arr2.length) {
return this.$message.warning("暂无权限");
}
let routeUrl = this.$router.resolve({
path: arr2[0].modulePath,
});
window.location.href = routeUrl.href;
window._paq.push(["trackEvent", "点击", "数据看板", "进入数据看板"]);
} else {
console.log("当前跳转链接", this.newBigScreen);
//--------------------
this.jumpToken = localStorage.getItem("jumpToken");
// window.open(this.newBigScreen + "?token=" + this.jumpToken + '&sn=' + this.$store.state.projectSn, "_self");
window.open('http://47.93.215.234:55544/#/login' + "?token=" + this.jumpToken + '&sn=' + this.$store.state.projectSn, "_self"); //
// window.open('http://192.168.34.138:8081/#/large?token=' + this.jumpToken + '&sn=' + this.$store.state.projectSn, "_self")//token
}
},
toOverview3() {
if (COMPANY == "shenbai") {
let routeUrl = this.$router.resolve({