|
@@ -102,19 +102,8 @@ export default {
|
|
this.$message.error(msg);
|
|
this.$message.error(msg);
|
|
}
|
|
}
|
|
});
|
|
});
|
|
- } else if (appId == 1009 || appId == 1010 || appId == 1011) {
|
|
|
|
- this.$http
|
|
|
|
- .post('/third/party/login/getLoginUrl', {
|
|
|
|
- menuId: id,
|
|
|
|
- systemType: 'YYSF'
|
|
|
|
- })
|
|
|
|
- .then(({ status, data, msg }) => {
|
|
|
|
- if (0 === status) {
|
|
|
|
- window.open(`${data}`);
|
|
|
|
- } else {
|
|
|
|
- this.$message.error(msg);
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
|
|
+ } else if (Number(appId) < 0) {
|
|
|
|
+ window.open(url);
|
|
} else {
|
|
} else {
|
|
window.open(url);
|
|
window.open(url);
|
|
}
|
|
}
|
|
@@ -128,20 +117,6 @@ export default {
|
|
} else {
|
|
} else {
|
|
this.navList = data;
|
|
this.navList = data;
|
|
}
|
|
}
|
|
- // let xx=data.find(item=>{
|
|
|
|
- // if(item.name=='客户服务'){
|
|
|
|
- // item.name="新物联网";
|
|
|
|
- // item.appId=1010
|
|
|
|
- // return item.linkPath="http://localhost:8081/"
|
|
|
|
- // }
|
|
|
|
- // })
|
|
|
|
- // if(this.navList[4].name)
|
|
|
|
- // {
|
|
|
|
- // this.navList[4].name="新物联网"
|
|
|
|
- // this.navList[4].linkPath="http://localhost:8081/"
|
|
|
|
- // this.navList[4].appId=1010
|
|
|
|
- // }
|
|
|
|
- // console.dir(this.navList);
|
|
|
|
}
|
|
}
|
|
});
|
|
});
|
|
},
|
|
},
|
|
@@ -161,7 +136,6 @@ export default {
|
|
},
|
|
},
|
|
getlogin() {
|
|
getlogin() {
|
|
this.isSelectTenant = false;
|
|
this.isSelectTenant = false;
|
|
- // let { phone, tenantId } = this.$route.query;
|
|
|
|
this.selectDta = JSON.parse(window.sessionStorage.getItem('loginJson'));
|
|
this.selectDta = JSON.parse(window.sessionStorage.getItem('loginJson'));
|
|
let { phone, tenantId } = JSON.parse(window.sessionStorage.getItem('loginJsonActive'));
|
|
let { phone, tenantId } = JSON.parse(window.sessionStorage.getItem('loginJsonActive'));
|
|
this.selectDta.map((item, index) => {
|
|
this.selectDta.map((item, index) => {
|
|
@@ -174,7 +148,6 @@ export default {
|
|
this.$http
|
|
this.$http
|
|
.postForm('/user/login', { mobile: phone, tenatId: tenantId, token: localStorage.getItem('SC_token') })
|
|
.postForm('/user/login', { mobile: phone, tenatId: tenantId, token: localStorage.getItem('SC_token') })
|
|
.then(({ status, data, msg }) => {
|
|
.then(({ status, data, msg }) => {
|
|
- // localStorage.setItem('UMIS_token', data.token);
|
|
|
|
localStorage.setItem('customerID', data.customerId);
|
|
localStorage.setItem('customerID', data.customerId);
|
|
if (data.enableState === '0') {
|
|
if (data.enableState === '0') {
|
|
if (this.tenantName.length > 1) {
|
|
if (this.tenantName.length > 1) {
|