fix(扫码登录): 修复扫码登录页面样式问题

This commit is contained in:
guoyuqi 2024-09-27 19:22:03 +08:00 committed by Yuki Guo
parent a1af5cf130
commit 368ad8f11d
2 changed files with 42 additions and 12 deletions

View File

@ -119,9 +119,12 @@ export default {
}
:deep(.el-tabs__nav){
width: 100%;
display: flex;
}
:deep(.el-tabs__item ){
width: 25%;
width: 100%;
margin-left: 1px !important;
margin-top: 0px !important;
}
.ms-icon{

View File

@ -231,38 +231,65 @@ export default {
},
//
async getValidateHandler(key) {
getValidateHandler(key) {
this.loading = true;
if (key === 'WE_COM') {
validateWeComConfig(this.weComInfo).then(res => {
this.$message.success(this.$t('qrcode.service_testLinkStatusTip'));
this.$nextTick(() => {
this.loadList();
});
}).catch(e => {
closeValidateWeCom();
this.$message.error(this.$t('qrcode.service_testLinkStatusErrorTip'));
closeValidateWeCom().then(res=>{
this.$message.error(this.$t('qrcode.service_testLinkStatusErrorTip'));
this.$nextTick(() => {
this.loadList();
});
});
});
} else if (key === 'DING_TALK') {
validateDingTalkConfig(this.dingTalkInfo).then(res => {
this.$message.success(this.$t('qrcode.service_testLinkStatusTip'));
this.$nextTick(() => {
this.loadList();
});
}).catch(e => {
closeValidateDingTalk();
this.$message.error(this.$t('qrcode.service_testLinkStatusErrorTip'));
closeValidateDingTalk().then(res=>{
this.$message.error(this.$t('qrcode.service_testLinkStatusErrorTip'));
this.$nextTick(() => {
this.loadList();
});
});
});
} else if (key === 'LARK') {
validateLarkConfig(this.larkInfo).then(res => {
this.$message.success(this.$t('qrcode.service_testLinkStatusTip'));
this.$nextTick(() => {
this.loadList();
});
}).catch(e => {
closeValidateLark();
this.$message.error(this.$t('qrcode.service_testLinkStatusErrorTip'));
closeValidateLark().then(res=>{
this.$message.error(this.$t('qrcode.service_testLinkStatusErrorTip'));
this.$nextTick(() => {
this.loadList();
});
});
});
} else if (key === 'LARK_SUITE') {
await validateLarkSuiteConfig(this.larkInfo).then(res => {
validateLarkSuiteConfig(this.larkInfo).then(res => {
this.$message.success(this.$t('qrcode.service_testLinkStatusTip'));
this.$nextTick(() => {
this.loadList();
});
}).catch(e => {
closeValidateLarkSuite();
this.$message.error(this.$t('qrcode.service_testLinkStatusErrorTip'));
closeValidateLarkSuite().then(res=>{
this.$message.error(this.$t('qrcode.service_testLinkStatusErrorTip'));
this.$nextTick(() => {
this.loadList();
});
});
});
}
this.loadList();
this.loading = false;
},
checkPermission(key){