|
@@ -165,25 +165,26 @@ export default {
|
|
|
localStorage.removeItem('checkPass')
|
|
|
}
|
|
|
|
|
|
- let path = '';
|
|
|
- switch(res.Data.RoleTypeCode) {
|
|
|
- case 'rai_researcher':
|
|
|
- case 'ficc_researcher':
|
|
|
- case 'researcher':
|
|
|
- path = '/reportlist';
|
|
|
- break
|
|
|
- case 'compliance': //合规
|
|
|
- path = '/contractapprovallist';
|
|
|
- break
|
|
|
- case 'special_researcher': //特邀研究员
|
|
|
- path = '/dataList';
|
|
|
- break
|
|
|
- case 'special_ficc_seller' :
|
|
|
- path = '/meetingCalendar';
|
|
|
- break
|
|
|
- default:
|
|
|
- path = await this.getOtherRolePath('myCalendar')
|
|
|
- }
|
|
|
+ let path = await this.getOtherRolePath();
|
|
|
+ // switch(res.Data.RoleTypeCode) {
|
|
|
+ // case 'rai_researcher':
|
|
|
+ // case 'ficc_researcher':
|
|
|
+ // case 'researcher':
|
|
|
+ // path = '/reportlist';
|
|
|
+ // break
|
|
|
+ // case 'compliance': //合规
|
|
|
+ // path = '/contractapprovallist';
|
|
|
+ // break
|
|
|
+ // case 'special_researcher': //特邀研究员
|
|
|
+ // path = '/dataList';
|
|
|
+ // break
|
|
|
+ // case 'special_ficc_seller' :
|
|
|
+ // path = '/meetingCalendar';
|
|
|
+ // break
|
|
|
+ // default:
|
|
|
+ // path = await this.getOtherRolePath('myCalendar')
|
|
|
+ // }
|
|
|
+ console.log(path);
|
|
|
this.$router.push({path})
|
|
|
}
|
|
|
that.logining = false
|
|
@@ -208,11 +209,11 @@ export default {
|
|
|
sessionStorage.setItem('hasGetMenu','true')
|
|
|
sessionStorage.setItem('MenuList',JSON.stringify(menuList));
|
|
|
/* 是否有数据报表权限 */
|
|
|
- this.$store.commit('SET_DATA_AUTH',menuList.some(item => item.name === '数据报表'))
|
|
|
+ this.$store.commit('SET_DATA_AUTH',menuList.some(item => item.name === '报表统计'))
|
|
|
|
|
|
for (let i = 0; i < menuList.length; i++) {
|
|
|
const element = menuList[i];
|
|
|
- if(element.children.some(it => it.path == pathVal)){
|
|
|
+ if(element.children?.some(it => it.path == pathVal)){
|
|
|
resolvePath='/'+pathVal
|
|
|
break
|
|
|
}
|