mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-10 19:36:43 +08:00
Merge branch '20151115-zxj' of https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal into 20251117-new-employee
This commit is contained in:
@@ -405,7 +405,9 @@ export default {
|
|||||||
// this.$router.push("/new-employee/welcome");
|
// this.$router.push("/new-employee/welcome");
|
||||||
const res = await enrollRequest();
|
const res = await enrollRequest();
|
||||||
if (res.data.sendToOaSuccess != 0) {
|
if (res.data.sendToOaSuccess != 0) {
|
||||||
this.$refs.customMessage.show("报名失败,请联系XXXX,联系方式:XXXXXX");
|
this.$refs.customMessage.show(
|
||||||
|
"报名失败请稍后重试,如果再次失败,请联系:XXXX,联系方式:XXXX。"
|
||||||
|
);
|
||||||
} else {
|
} else {
|
||||||
this.$refs.customMessage.show("您已重新报名成功");
|
this.$refs.customMessage.show("您已重新报名成功");
|
||||||
this.approvalResults = 2;
|
this.approvalResults = 2;
|
||||||
@@ -419,6 +421,7 @@ export default {
|
|||||||
this.$refs.customMessage.show("未报名或报名失败,请前往报名页面进行报名");
|
this.$refs.customMessage.show("未报名或报名失败,请前往报名页面进行报名");
|
||||||
this.$router.push("/new-employee/welcome");
|
this.$router.push("/new-employee/welcome");
|
||||||
}
|
}
|
||||||
|
this.guideDialogVisible = this.$route.query?.fromWelcome == 1;
|
||||||
// 1报名失败、2审核中、3审核通过、4审核失败
|
// 1报名失败、2审核中、3审核通过、4审核失败
|
||||||
this.approvalResults = res.data.approvalResults;
|
this.approvalResults = res.data.approvalResults;
|
||||||
await this.initIds();
|
await this.initIds();
|
||||||
|
|||||||
@@ -60,13 +60,13 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- 学习引导页面 -->
|
<!-- 学习引导页面 -->
|
||||||
<NewEmployeeGuideDialog
|
<!-- <NewEmployeeGuideDialog
|
||||||
:visible.sync="infoConfirmDialogVisible"
|
:visible.sync="infoConfirmDialogVisible"
|
||||||
:processing="processing"
|
:processing="processing"
|
||||||
:onConfirm="handleConfirm"
|
:onConfirm="handleConfirm"
|
||||||
:onCancel="() => (infoConfirmDialogVisible = false)"
|
:onCancel="() => (infoConfirmDialogVisible = false)"
|
||||||
@close="handleDialogClose"
|
@close="handleDialogClose"
|
||||||
/>
|
/> -->
|
||||||
<!-- 自定义信息提示 -->
|
<!-- 自定义信息提示 -->
|
||||||
<CustomInfoMessage ref="customMessage" />
|
<CustomInfoMessage ref="customMessage" />
|
||||||
</div>
|
</div>
|
||||||
@@ -109,6 +109,9 @@ export default {
|
|||||||
// 1报名失败、2审核中、3审核通过、4审核失败
|
// 1报名失败、2审核中、3审核通过、4审核失败
|
||||||
if (res.data.approvalResults) {
|
if (res.data.approvalResults) {
|
||||||
this.approvalResults = res.data.approvalResults;
|
this.approvalResults = res.data.approvalResults;
|
||||||
|
if (res.data.approvalResults != 1) {
|
||||||
|
this.$router.push("/new-employee/study");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
@@ -122,26 +125,26 @@ export default {
|
|||||||
const res = await enrollRequest();
|
const res = await enrollRequest();
|
||||||
if (res.data.sendToOaSuccess != 0) {
|
if (res.data.sendToOaSuccess != 0) {
|
||||||
this.$refs.customMessage.show(
|
this.$refs.customMessage.show(
|
||||||
"报名失败,请联系XXXX,联系方式:XXXXXX"
|
"报名失败请稍后重试,如果再次失败,请联系:XXXX,联系方式:XXXX。"
|
||||||
);
|
);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
this.infoConfirmDialogVisible = true;
|
this.$router.push("/new-employee/study?fromWelcome=1");
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
// 确认按钮
|
// 确认按钮
|
||||||
async handleConfirm() {
|
// async handleConfirm() {
|
||||||
try {
|
// try {
|
||||||
this.$router.push("/new-employee/study");
|
// this.$router.push("/new-employee/study");
|
||||||
} catch (error) {
|
// } catch (error) {
|
||||||
console.error("提交失败:", error);
|
// console.error("提交失败:", error);
|
||||||
this.processing = false;
|
// this.processing = false;
|
||||||
this.confirmBtnText = "确认";
|
// this.confirmBtnText = "确认";
|
||||||
this.$message.error("提交失败,请重试");
|
// this.$message.error("提交失败,请重试");
|
||||||
}
|
// }
|
||||||
},
|
// },
|
||||||
|
|
||||||
// 关闭对话框
|
// 关闭对话框
|
||||||
handleDialogClose() {
|
handleDialogClose() {
|
||||||
|
|||||||
Reference in New Issue
Block a user