河南春笋(企业大屏):解决跳转以及页面关闭问题

This commit is contained in:
骆乐 2022-10-12 19:17:33 +08:00
parent e9b97c16ac
commit db8b254b9b
4 changed files with 15 additions and 8 deletions

BIN
dist.zip

Binary file not shown.

View File

@ -31,12 +31,18 @@ export default {
// console.log('',res) // console.log('',res)
// }) // })
if ( this.styleType != 3 && this.$route.path.indexOf('/project/dataBoard') != -1 || this.$route.path.indexOf('/project/videoOverview') != -1 || this.$route.path.indexOf('/project/environmentalOverview') != -1 || this.$route.path.indexOf('/project/projectSummary') != -1 || this.$route.path.indexOf('/project/imgRanging') != -1 || this.$route.path.indexOf('/project/warningManage') != -1 ) { if ( this.styleType != 3 && this.$route.path.indexOf('/project/dataBoard') != -1 ||
this.$route.path.indexOf('/project/videoOverview') != -1 || this.$route.path.indexOf('/project/environmentalOverview') != -1 ||
this.$route.path.indexOf('/project/projectSummary') != -1 || this.$route.path.indexOf('/project/imgRanging') != -1 ||
this.$route.path.indexOf('/project/warningManage') != -1 ) {
console.log(window.location.href.split('#/')[0] + '#/projectIndex') console.log(window.location.href.split('#/')[0] + '#/projectIndex')
window.location.href = window.location.href.split('#/')[0] + '#/projectIndex' // window.location.href = window.location.href.split('#/')[0] + '#/projectIndex' //
} else if (this.styleType == 3){ } else if (this.styleType == 3){
this.$router.push({ path:'/projectV3/taskList' }) this.$router.push({ path:'/projectV3/taskList' })
}else if(this.$route.path.indexOf('/companyAdmin/heNanBigScreen') != -1 ){
this.$router.push({ path:'/firm/projectManage' })
}else { }else {
console.log('========')
window.history.back() window.history.back()
} }
} }

View File

@ -49,9 +49,9 @@ export default new Vuex.Store({
FILEURL: window.location.protocol + '//' + window.location.host + '/image/', //测试 // tag: 本地测试接口 FILEURL: window.location.protocol + '//' + window.location.host + '/image/', //测试 // tag: 本地测试接口
/* 2022-05-16 */ /* 2022-05-16 */
// tag: 部署河南项目时,需要打开这两行代码 // tag: 部署河南项目时,需要打开这两行代码
// UPLOADURL: 'http://124.71.178.44:100/upload/image', // UPLOADURL: 'http://139.9.66.234:6324/upload/image',
// FILEURL: 'http://124.71.178.44:100/image/', // FILEURL: 'http://139.9.66.234:6324/image/',
/* 2022-06-06 广西本地的*/ // BASEURL:'http://192.168.34.174:6023/', /* 2022-06-06 广西本地的*/ // BASEURL:'http://192.168.34.174:6023/',
// UPLOADURL: 'http://182.90.224.237:7000/upload/image', // UPLOADURL: 'http://182.90.224.237:7000/upload/image',
// FILEURL: 'http://182.90.224.237:7000/image/', // FILEURL: 'http://182.90.224.237:7000/image/',

View File

@ -2805,10 +2805,11 @@ export default {
return await $.getJSON(url); return await $.getJSON(url);
}, },
toOverview2() { toOverview2() {
let routeUrl = this.$router.resolve({ this.$router.push({ path:'/project/dataBoard/digitalSite' })
path: "/project/dataBoard/index", // let routeUrl = this.$router.resolve({
}); // path: "/project/dataBoard/digitalSite",
window.open(routeUrl.href, "_self"); // });
// window.open(routeUrl.href, "_self");
}, },
getSafeyHatSession() { getSafeyHatSession() {
getSafeyHatSessionApi().then((res) => { getSafeyHatSessionApi().then((res) => {