Compare commits

...

3 Commits

Author SHA1 Message Date
dong
bad39c9f9d 代码调整 2023-04-07 15:19:18 +08:00
dong
3f19db5143 规则重复添加提示 2023-03-23 17:46:22 +08:00
dong
e3d8637ffe 跳转登录时先登入组织再获取用户信息 2023-03-23 10:09:03 +08:00
3 changed files with 25 additions and 5 deletions

View File

@ -203,9 +203,18 @@ export default {
if (orgList.length < 2) {
if (orgList.length === 1) {
orgId = orgList[0].orgId;
selectOrgnization(orgId);
}
selectOrgnization(orgId).then(() => { //
this.handleLoginSucessRoute();
}).catch(err => {
this.loading = false;
this.tipsMsg = `登入组织失败!,${err.message}`;
setTimeout(() => {
this.tipsMsg = '';
}, 5000);
});
} else {
this.handleLoginSucessRoute();
}
} else {
this.$emit('showOrgList', orgList);
}
@ -216,8 +225,17 @@ export default {
},
//
selectOrg(orgId) {
// this.handleLoginSucessRoute();
// selectOrgnization(orgId);
selectOrgnization(orgId).then(() => { //
this.handleLoginSucessRoute();
selectOrgnization(orgId);
}).catch(err => {
this.loading = false;
this.tipsMsg = `登入组织失败!,${err.message}`;
setTimeout(() => {
this.tipsMsg = '';
}, 5000);
});
},
//
handleLoginSucessRoute() {

View File

@ -251,7 +251,7 @@ export default {
}
};
</script>
<style lang="scss">
<style lang="scss" scoped>
.equipmentConstructionTable{
width:91%;margin-left:15px
}

View File

@ -133,6 +133,8 @@ export default {
console.log(uploadData);
console.log(resp);
}
}).catch(err => {
this.$message.error(err.message);
});
},
turnback() {