mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-22 01:06:43 +08:00
Merge branch '20251117-new-employee' of http://10.251.129.121/boeu/learning-system-portal into master-20251210
This commit is contained in:
@@ -426,11 +426,21 @@ export default {
|
|||||||
};
|
};
|
||||||
window.open(obj[val]);
|
window.open(obj[val]);
|
||||||
},
|
},
|
||||||
handleCommand(val) {
|
async handleCommand(val) {
|
||||||
if (val === "four") {
|
if (val === "four") {
|
||||||
window.open("https://m.qingxuetang.com/x/?appId=qxtcorp306130");
|
window.open("https://m.qingxuetang.com/x/?appId=qxtcorp306130");
|
||||||
// this.$emit('showClass',true)
|
// this.$emit('showClass',true)
|
||||||
} else {
|
} else {
|
||||||
|
if (val === "five") {
|
||||||
|
// 从后端获取用户信息和报名状态
|
||||||
|
const res = await getWelcomeData();
|
||||||
|
if (res.status === 200 && res.data) {
|
||||||
|
if (res.data?.approvalResults && res.data?.approvalResults != 1) {
|
||||||
|
this.$router.push("/new-employee/study");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
let urlPre = window.location.protocol + "//" + window.location.host;
|
let urlPre = window.location.protocol + "//" + window.location.host;
|
||||||
// process.env.VUE_APP_BOE_WEB_URL
|
// process.env.VUE_APP_BOE_WEB_URL
|
||||||
let obj = {
|
let obj = {
|
||||||
|
|||||||
@@ -422,6 +422,10 @@ export default {
|
|||||||
// four: 'https://m.qingxuetang.com/x/?appId=qxtcorp306130',
|
// four: 'https://m.qingxuetang.com/x/?appId=qxtcorp306130',
|
||||||
// five: process.env.VUE_APP_BOE_WEB_URL+'/boe/new-employee/index.html'
|
// five: process.env.VUE_APP_BOE_WEB_URL+'/boe/new-employee/index.html'
|
||||||
// };
|
// };
|
||||||
|
|
||||||
|
if (val === "for") {
|
||||||
|
this.uClassShow = true;
|
||||||
|
} else {
|
||||||
if (val === "five") {
|
if (val === "five") {
|
||||||
// 从后端获取用户信息和报名状态
|
// 从后端获取用户信息和报名状态
|
||||||
const res = await getWelcomeData();
|
const res = await getWelcomeData();
|
||||||
@@ -432,9 +436,6 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (val === "for") {
|
|
||||||
this.uClassShow = true;
|
|
||||||
} else {
|
|
||||||
let urlPre = window.location.protocol + "//" + window.location.host;
|
let urlPre = window.location.protocol + "//" + window.location.host;
|
||||||
// process.env.VUE_APP_BOE_WEB_URL
|
// process.env.VUE_APP_BOE_WEB_URL
|
||||||
let obj = {
|
let obj = {
|
||||||
|
|||||||
@@ -128,7 +128,7 @@
|
|||||||
>转正攻略</el-button
|
>转正攻略</el-button
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div v-if="bpmApprovalRequired">
|
||||||
<div v-if="approvalResults == 2">
|
<div v-if="approvalResults == 2">
|
||||||
<el-alert type="warning" center show-icon :closable="false">
|
<el-alert type="warning" center show-icon :closable="false">
|
||||||
<template slot="title">
|
<template slot="title">
|
||||||
@@ -160,7 +160,7 @@
|
|||||||
</el-alert>
|
</el-alert>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div style="text-align: center">
|
<div style="text-align: center" v-if="bpmApprovalRequired">
|
||||||
<el-button type="text" @click="chartVisible = true"
|
<el-button type="text" @click="chartVisible = true"
|
||||||
>转正流程示意图 ></el-button
|
>转正流程示意图 ></el-button
|
||||||
>
|
>
|
||||||
@@ -293,6 +293,7 @@ export default {
|
|||||||
4: "审核失败",
|
4: "审核失败",
|
||||||
},
|
},
|
||||||
approvalResults: 1,
|
approvalResults: 1,
|
||||||
|
bpmApprovalRequired: 1,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@@ -413,6 +414,7 @@ export default {
|
|||||||
this.guideDialogVisible = this.$route.query?.fromWelcome == 1;
|
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;
|
||||||
|
this.bpmApprovalRequired = res.data.bpmApprovalRequired;
|
||||||
await this.initIds();
|
await this.initIds();
|
||||||
if (!this.projectId || !this.studentId) {
|
if (!this.projectId || !this.studentId) {
|
||||||
this.$message.warning("未获得项目或学员信息,列表可能无法加载");
|
this.$message.warning("未获得项目或学员信息,列表可能无法加载");
|
||||||
|
|||||||
Reference in New Issue
Block a user