|
|
|
@ -107,6 +107,12 @@ export class SingleloginComponent implements OnInit {
|
|
|
|
|
params: { |
|
|
|
|
token: this.sinToken, |
|
|
|
|
}, |
|
|
|
|
headers: { |
|
|
|
|
resId: |
|
|
|
|
this.pageType == "ai" |
|
|
|
|
? "1721962524656509998111" |
|
|
|
|
: "1723021348346795029111", |
|
|
|
|
}, |
|
|
|
|
}) |
|
|
|
|
.subscribe( |
|
|
|
|
(data: any) => { |
|
|
|
@ -195,10 +201,10 @@ export class SingleloginComponent implements OnInit {
|
|
|
|
|
alert("当前用户没有组织机构信息"); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
if (data.result.user.organization.isGasStation) { |
|
|
|
|
alert("油站用户无系统管理权限"); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
// if (data.result.user.organization.isGasStation) {
|
|
|
|
|
// alert("油站用户无系统管理权限");
|
|
|
|
|
// return;
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
//跳转页面
|
|
|
|
|
this.toPageSystem(); |
|
|
|
@ -240,8 +246,6 @@ export class SingleloginComponent implements OnInit {
|
|
|
|
|
this.message.create("warning", "未分配系统管理菜单"); |
|
|
|
|
return; |
|
|
|
|
} else { |
|
|
|
|
// window.open(this.menuList2[0].url);
|
|
|
|
|
|
|
|
|
|
this.router.navigate([this.menuList2[0].url]); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|