中建四局(项目帐号默认跳转到大屏)

This commit is contained in:
骆乐 2022-11-07 16:08:38 +08:00
parent fb4cc47beb
commit ec1a22d1b1
4 changed files with 67 additions and 34 deletions

View File

@ -18,7 +18,7 @@ var PROJECT = {
} }
var PROJECT_TYPE = PROJECT.local_test var PROJECT_TYPE = PROJECT.online_zjsj
var headerShow = true; // 是否显示头部 var headerShow = true; // 是否显示头部
var tabsShow = true; // 是否显示tabs var tabsShow = true; // 是否显示tabs

View File

@ -41,10 +41,10 @@ if (process.env.NODE_ENV == 'development') {
// tag: 本地 // tag: 本地
// axios.defaults.baseURL = 'http://192.168.34.174:6023/' // 老大本地 // axios.defaults.baseURL = 'http://192.168.34.174:6023/' // 老大本地
// axios.defaults.baseURL = 'http://192.168.34.116:6023/' // 邱平毅本地 // axios.defaults.baseURL = 'http://192.168.34.116:6023/' // 邱平毅本地
axios.defaults.baseURL = 'http://192.168.34.117:6023/' // 杨杰本地 // axios.defaults.baseURL = 'http://192.168.34.117:6023/' // 杨杰本地
// axios.defaults.baseURL = 'http://ue6a4s.natappfree.cc' // 邱平毅vpn本地 // axios.defaults.baseURL = 'http://ue6a4s.natappfree.cc' // 邱平毅vpn本地
// axios.defaults.baseURL = 'http://139.9.66.234:6324/' // 河南春笋 // axios.defaults.baseURL = 'http://139.9.66.234:6324/' // 河南春笋
// axios.defaults.baseURL ='http://124.71.67.160:8088/' //中建四局线上 axios.defaults.baseURL ='http://124.71.67.160:8088/' //中建四局线上
// axios.defaults.baseURL = 'http://192.168.34.125:6023/' //杨意本地 http/1.1 // axios.defaults.baseURL = 'http://192.168.34.125:6023/' //杨意本地 http/1.1
// axios.defaults.baseURL ='http://47.97.202.104:6023/' //金林湾线上 // axios.defaults.baseURL ='http://47.97.202.104:6023/' //金林湾线上
// axios.defaults.baseURL = 'http://192.168.34.231:6023/'; //杨思瑞本地 // axios.defaults.baseURL = 'http://192.168.34.231:6023/'; //杨思瑞本地

View File

@ -159,15 +159,35 @@ function handler(data, sn) {
break break
case 5: case 5:
case 6: case 6:
if (data.styleType == 1 || !data.styleType) { if(PROJECT_TYPE != "zjsj"){
router.push('/projectIndex') //看看项目看板内有没有菜单
} else if (data.styleType == 2) { let arr = data.menuAuthority.moduleList
router.push('/projectV2/taskList') let arr2=[]
} else { arr.forEach(element => {
router.push('/projectV3/taskList') if(element.moduleType==4){
arr2.push(element)
return
}
});
console.log('arr2',arr2)
// 如果数组为空表示该用户没有权限访问
if (!arr2.length) {
this.$router.push("/projectIndex");
}else{
this.$router.push(arr2[0].modulePath);
}
}else{
if (data.styleType == 1 || !data.styleType) {
router.push('/projectIndex')
} else if (data.styleType == 2) {
router.push('/projectV2/taskList')
} else {
router.push('/projectV3/taskList')
}
store.commit('setProjectSn', data.sn)
break
} }
store.commit('setProjectSn', data.sn)
break
} }
// this.selectMp3FileList() // this.selectMp3FileList()
} }
@ -252,8 +272,7 @@ router.beforeEach((to, form, next) => {
} else if (LOGINTYPE == 3) { } else if (LOGINTYPE == 3) {
projectLoginApi(account).then(tentative) projectLoginApi(account).then(tentative)
} }
}else {
} else {
if (COMPANY == 'xingxuan') return next() if (COMPANY == 'xingxuan') return next()
if (store.state.userInfo) { if (store.state.userInfo) {
next(); next();

View File

@ -462,7 +462,7 @@ export default {
if (valid) { if (valid) {
if (LOGINTYPE == 1) { if (LOGINTYPE == 1) {
loginApi(this.form).then((res) => { loginApi(this.form).then((res) => {
console.log("--------------------10"); console.log("--------------------么么儿们10");
console.log(res.result); console.log(res.result);
this.parseLoginData(res.result); this.parseLoginData(res.result);
}); });
@ -472,7 +472,9 @@ export default {
companyLoginApi(this.form).then((res) => { companyLoginApi(this.form).then((res) => {
this.parseLoginData(res.result); this.parseLoginData(res.result);
}); });
} else if (LOGINTYPE == 3) { } else if(LOGINTYPE == 5){
console.log('中建四局项目账号')
}else if (LOGINTYPE == 3) {
console.log(333333333); console.log(333333333);
projectLoginApi(this.form).then((res) => { projectLoginApi(this.form).then((res) => {
@ -513,7 +515,7 @@ export default {
}); });
} }
}); });
} else { }else {
this.$refs["form2"].validate((valid) => { this.$refs["form2"].validate((valid) => {
if (valid) { if (valid) {
loginPhoneApi(this.form2).then((res) => { loginPhoneApi(this.form2).then((res) => {
@ -614,26 +616,38 @@ export default {
this.$router.push(companyModule[0].modulePath); this.$router.push(companyModule[0].modulePath);
break; break;
case 5: case 5:
// styleType == 3
if (data.styleType == 1 || !data.styleType) {
this.$router.push("/projectIndex");
} else if (data.styleType == 2) {
this.$router.push("/projectV2/taskList");
} else {
this.$router.push("/projectV3/taskList");
}
this.$store.commit("setProjectSn", data.sn);
break;
case 6: case 6:
if (data.styleType == 1 || !data.styleType) { //
this.$router.push("/projectIndex"); if (this.projectType == "zjsj"){
} else if (data.styleType == 2) { console.log('是这里吗')
this.$router.push("/projectV2/taskList"); //
} else { let arr = data.menuAuthority.moduleList
this.$router.push("/projectV3/taskList"); let arr2=[]
arr.forEach(element => {
if(element.moduleType==4){
arr2.push(element)
return
}
});
console.log('arr2',arr2)
// 访
if (!arr2.length) {
this.$router.push("/projectIndex");
}else{
this.$router.push(arr2[0].modulePath);
}
}else{
// styleType == 3
if (data.styleType == 1 || !data.styleType ) {
this.$router.push("/projectIndex");
} else if (data.styleType == 2) {
this.$router.push("/projectV2/taskList");
}else {
this.$router.push("/projectV3/taskList");
}
this.$store.commit("setProjectSn", data.sn);
break;
} }
this.$store.commit("setProjectSn", data.sn);
break;
} }
this.selectMp3FileList(); this.selectMp3FileList();
}, },