mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-10 19:36:43 +08:00
fix:社招新员工项目学习页细节样式调整
This commit is contained in:
112
src/components/CustomInfoMessage.vue
Normal file
112
src/components/CustomInfoMessage.vue
Normal file
@@ -0,0 +1,112 @@
|
|||||||
|
<template>
|
||||||
|
<transition name="fade">
|
||||||
|
<div v-if="visible" class="custom-info-message" @click="handleClose">
|
||||||
|
<div class="message-content">
|
||||||
|
<div class="icon-wrapper">
|
||||||
|
<span class="icon-text">i</span>
|
||||||
|
</div>
|
||||||
|
<div class="message-text">{{ message }}</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</transition>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: "CustomInfoMessage",
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
visible: false,
|
||||||
|
message: "",
|
||||||
|
timer: null,
|
||||||
|
};
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
show(msg, duration = 3000) {
|
||||||
|
this.message = msg;
|
||||||
|
this.visible = true;
|
||||||
|
|
||||||
|
if (this.timer) {
|
||||||
|
clearTimeout(this.timer);
|
||||||
|
}
|
||||||
|
|
||||||
|
this.timer = setTimeout(() => {
|
||||||
|
this.hide();
|
||||||
|
}, duration);
|
||||||
|
},
|
||||||
|
hide() {
|
||||||
|
this.visible = false;
|
||||||
|
if (this.timer) {
|
||||||
|
clearTimeout(this.timer);
|
||||||
|
this.timer = null;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
handleClose() {
|
||||||
|
this.hide();
|
||||||
|
},
|
||||||
|
},
|
||||||
|
beforeDestroy() {
|
||||||
|
if (this.timer) {
|
||||||
|
clearTimeout(this.timer);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
.custom-info-message {
|
||||||
|
position: fixed;
|
||||||
|
top: 20%;
|
||||||
|
left: 50%;
|
||||||
|
transform: translate(-50%, -50%);
|
||||||
|
z-index: 3000;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.message-content {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
background: #ffffff;
|
||||||
|
border-radius: 8px;
|
||||||
|
padding: 8px 16px;
|
||||||
|
box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-wrapper {
|
||||||
|
width: 16px;
|
||||||
|
height: 16px;
|
||||||
|
border-radius: 50%;
|
||||||
|
background: rgba(22, 119, 255, 1);
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
margin-right: 12px;
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-wrapper .icon-text {
|
||||||
|
color: #ffffff;
|
||||||
|
font-size: 12px;
|
||||||
|
font-weight: 400;
|
||||||
|
font-style: normal;
|
||||||
|
line-height: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.message-text {
|
||||||
|
color: rgba(0, 0, 0, 0.88);
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: 400;
|
||||||
|
line-height: 1.5;
|
||||||
|
flex: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.fade-enter-active,
|
||||||
|
.fade-leave-active {
|
||||||
|
transition: opacity 0.3s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.fade-enter,
|
||||||
|
.fade-leave-to {
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -19,10 +19,16 @@
|
|||||||
type="primary"
|
type="primary"
|
||||||
:loading="processing"
|
:loading="processing"
|
||||||
@click="handleConfirmClick"
|
@click="handleConfirmClick"
|
||||||
|
v-if="showBtn"
|
||||||
>
|
>
|
||||||
立即学习
|
立即学习
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button class="footer-btn" type="text" @click="handleCancelClick">
|
<el-button
|
||||||
|
v-if="showBtn"
|
||||||
|
class="footer-btn"
|
||||||
|
type="text"
|
||||||
|
@click="handleCancelClick"
|
||||||
|
>
|
||||||
取消
|
取消
|
||||||
</el-button>
|
</el-button>
|
||||||
</div>
|
</div>
|
||||||
@@ -46,6 +52,10 @@ export default {
|
|||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: false,
|
default: false,
|
||||||
},
|
},
|
||||||
|
showBtn: {
|
||||||
|
type: Boolean,
|
||||||
|
default: true,
|
||||||
|
},
|
||||||
onConfirm: {
|
onConfirm: {
|
||||||
type: Function,
|
type: Function,
|
||||||
default: null,
|
default: null,
|
||||||
|
|||||||
@@ -429,7 +429,7 @@ export default {
|
|||||||
two: urlPre + "/grow180/login",
|
two: urlPre + "/grow180/login",
|
||||||
three: this.webBaseUrl + "/study/index?study=1",
|
three: this.webBaseUrl + "/study/index?study=1",
|
||||||
// four: 'https://m.qingxuetang.com/x/?appId=qxtcorp306130',
|
// four: 'https://m.qingxuetang.com/x/?appId=qxtcorp306130',
|
||||||
five: urlPre + "/new-employee/welcome",
|
five: this.webBaseUrl + "/new-employee/welcome",
|
||||||
six: this.webBaseUrl + "/web/contributor/index",
|
six: this.webBaseUrl + "/web/contributor/index",
|
||||||
seven: this.webBaseUrl + "/grateful/index",
|
seven: this.webBaseUrl + "/grateful/index",
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -86,6 +86,7 @@ Vue.use(Element, {
|
|||||||
size: VueCookies.get('size') || 'medium' // set element-ui default size
|
size: VueCookies.get('size') || 'medium' // set element-ui default size
|
||||||
})
|
})
|
||||||
|
|
||||||
|
// VueCookies.set('token', "eyJ0eXBlIjoidG9rZW4iLCJhbGciOiJIUzI1NiJ9.eyJjb21wYW55Q29kZSI6IkMwMDEiLCJ1SWQiOiI5NjUzNDIwMjc0OTc2MDcxNjgiLCJjb21wYW55SWQiOiIxMDQxNjczOTc3Mzc5OTQ2NDk2IiwibG9naW5JZCI6IjE5MzgwNTQ2NDY2OTAxNzcwMjYiLCJpc3MiOiJodHRwOi8vdS5ib2UuY29tIiwiR2l2ZW5OYW1lIjoiYm9ldSIsImV4cCI6MTc1MDkxMDQwOTc0NiwidXNlck5hbWUiOiLmnY7njonlhrAiLCJ1c2VySWQiOiI2QjA0OUZBRi1DMzE0LTdDQ0YtMEQyOC0wRDIzRjRDNDI1MzEifQ==.7f03d1ce991253197f0e733ba554496e8de715595b169b505bed8831ede565a9", 1)
|
||||||
// 加入百度统计
|
// 加入百度统计
|
||||||
router.beforeEach((to, from, next) => {
|
router.beforeEach((to, from, next) => {
|
||||||
if (to.path) {
|
if (to.path) {
|
||||||
|
|||||||
@@ -61,21 +61,23 @@
|
|||||||
<div class="title-box">
|
<div class="title-box">
|
||||||
<div class="item-title">{{ it.name }}</div>
|
<div class="item-title">{{ it.name }}</div>
|
||||||
<!-- 右侧动作/成绩 -->
|
<!-- 右侧动作/成绩 -->
|
||||||
<div
|
<div class="item-right">
|
||||||
class="item-right"
|
<el-button
|
||||||
:class="it.completed ? 'done' : 'link'"
|
v-if="it.status == 0"
|
||||||
|
type="text"
|
||||||
|
style="color: #999999"
|
||||||
|
>未开始</el-button
|
||||||
>
|
>
|
||||||
<el-button
|
<el-button
|
||||||
v-if="!it.completed"
|
v-if="it.status == 2"
|
||||||
type="text"
|
type="text"
|
||||||
style="color: #ffb01e"
|
style="color: #ffb01e"
|
||||||
>进行中</el-button
|
>进行中</el-button
|
||||||
>
|
>
|
||||||
<el-button
|
<el-button
|
||||||
v-else
|
v-if="it.status == 1"
|
||||||
type="text"
|
type="text"
|
||||||
style="color: #27ce9a"
|
style="color: #27ce9a"
|
||||||
disabled
|
|
||||||
>已完成</el-button
|
>已完成</el-button
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
@@ -127,32 +129,37 @@
|
|||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<el-alert
|
<div v-if="approvalResults == 2">
|
||||||
v-if="approvalResults == 2"
|
<el-alert type="warning" center show-icon :closable="false">
|
||||||
title="报名申请正在审核中"
|
<template slot="title">
|
||||||
type="primary"
|
<span style="color: rgba(0, 0, 0, 0.88)"
|
||||||
center
|
>报名申请正在审核中</span
|
||||||
show-icon
|
>
|
||||||
:closable="false"
|
</template>
|
||||||
/>
|
</el-alert>
|
||||||
|
</div>
|
||||||
<el-alert
|
<div v-if="approvalResults == 3">
|
||||||
v-if="approvalResults == 3"
|
<el-alert type="success" center show-icon :closable="false">
|
||||||
title="报名申请审核已通过"
|
<template slot="title">
|
||||||
type="success"
|
<span style="color: rgba(0, 0, 0, 0.88)"
|
||||||
center
|
>报名申请审核已通过</span
|
||||||
show-icon
|
>
|
||||||
:closable="false"
|
</template>
|
||||||
/>
|
</el-alert>
|
||||||
<div style="cursor: pointer" @click="returnEnroll">
|
</div>
|
||||||
<el-alert
|
<div
|
||||||
v-if="approvalResults == 4"
|
v-if="approvalResults == 4"
|
||||||
title="报名申请审核不通过,请重新报名"
|
style="cursor: pointer"
|
||||||
type="error"
|
@click="returnEnroll"
|
||||||
center
|
>
|
||||||
show-icon
|
<el-alert type="error" center show-icon :closable="false">
|
||||||
:closable="false"
|
<template slot="title">
|
||||||
/>
|
<span style="color: rgba(0, 0, 0, 0.88)"
|
||||||
|
>报名申请审核不通过,请</span
|
||||||
|
>
|
||||||
|
<span style="color: #0078fc">重新报名</span>
|
||||||
|
</template>
|
||||||
|
</el-alert>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div style="text-align: center">
|
<div style="text-align: center">
|
||||||
@@ -162,7 +169,13 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="label">成绩单</div>
|
<div class="label">成绩单</div>
|
||||||
<div class="transcript">
|
<div class="transcript">
|
||||||
<el-button class="btn btn-long" type="success" @click="onDownload"
|
<el-button
|
||||||
|
class="btn btn-long"
|
||||||
|
:class="{ 'btn-disabled': isDownloadDisabled }"
|
||||||
|
type="success"
|
||||||
|
icon="el-icon-download"
|
||||||
|
:disabled="isDownloadDisabled"
|
||||||
|
@click="onDownload"
|
||||||
>成绩下载</el-button
|
>成绩下载</el-button
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
@@ -205,10 +218,12 @@
|
|||||||
<NewEmployeeGuideDialog
|
<NewEmployeeGuideDialog
|
||||||
:visible.sync="guideDialogVisible"
|
:visible.sync="guideDialogVisible"
|
||||||
@close="guideDialogVisible = false"
|
@close="guideDialogVisible = false"
|
||||||
|
:showBtn="false"
|
||||||
/>
|
/>
|
||||||
<!-- 转正流程图弹窗 -->
|
<!-- 转正流程图弹窗 -->
|
||||||
<el-dialog
|
<el-dialog
|
||||||
:visible.sync="chartVisible"
|
:visible.sync="chartVisible"
|
||||||
|
title="转正流程示意图"
|
||||||
:close-on-click-modal="false"
|
:close-on-click-modal="false"
|
||||||
@close="chartVisible = false"
|
@close="chartVisible = false"
|
||||||
>
|
>
|
||||||
@@ -217,6 +232,8 @@
|
|||||||
<img width="100%" src="../../assets/images/flowchart.png" alt="" />
|
<img width="100%" src="../../assets/images/flowchart.png" alt="" />
|
||||||
</div>
|
</div>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
<!-- 自定义信息提示 -->
|
||||||
|
<CustomInfoMessage ref="customMessage" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -225,6 +242,7 @@ import portalHeader from "@/components/PortalHeader.vue";
|
|||||||
import portalFooter from "@/components/PortalFooter.vue";
|
import portalFooter from "@/components/PortalFooter.vue";
|
||||||
import portalFloatTools from "@/components/PortalFloatTools.vue";
|
import portalFloatTools from "@/components/PortalFloatTools.vue";
|
||||||
import NewEmployeeGuideDialog from "@/components/NewEmployeeGuideDialog.vue";
|
import NewEmployeeGuideDialog from "@/components/NewEmployeeGuideDialog.vue";
|
||||||
|
import CustomInfoMessage from "@/components/CustomInfoMessage.vue";
|
||||||
import { mapGetters } from "vuex";
|
import { mapGetters } from "vuex";
|
||||||
import {
|
import {
|
||||||
getWelcomeData,
|
getWelcomeData,
|
||||||
@@ -232,6 +250,7 @@ import {
|
|||||||
getStuProjectProcess,
|
getStuProjectProcess,
|
||||||
downloadSocialRecruitReport,
|
downloadSocialRecruitReport,
|
||||||
getSzxygProjectInfo,
|
getSzxygProjectInfo,
|
||||||
|
enrollRequest,
|
||||||
} from "@/api/new-employee/newEmployee";
|
} from "@/api/new-employee/newEmployee";
|
||||||
import { start } from "nprogress";
|
import { start } from "nprogress";
|
||||||
|
|
||||||
@@ -242,13 +261,14 @@ export default {
|
|||||||
portalFooter,
|
portalFooter,
|
||||||
portalFloatTools,
|
portalFloatTools,
|
||||||
NewEmployeeGuideDialog,
|
NewEmployeeGuideDialog,
|
||||||
|
CustomInfoMessage,
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
flag: "all",
|
flag: "all",
|
||||||
status: "all",
|
status: "all",
|
||||||
page: 1,
|
page: 1,
|
||||||
pageSize: 10,
|
pageSize: 20,
|
||||||
total: 0,
|
total: 0,
|
||||||
loading: false,
|
loading: false,
|
||||||
projectId: "",
|
projectId: "",
|
||||||
@@ -276,6 +296,12 @@ export default {
|
|||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
...mapGetters(["userInfo"]),
|
...mapGetters(["userInfo"]),
|
||||||
|
// 判断下载按钮是否应该禁用
|
||||||
|
isDownloadDisabled() {
|
||||||
|
// 只有在审核通过(3)且学习进度为100时才可下载
|
||||||
|
// 其他情况(报名失败1、审核中2、审核失败4、进度未到100)都禁用
|
||||||
|
return this.approvalResults != 3 || this.progressRing.total != 100;
|
||||||
|
},
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
async initIds() {
|
async initIds() {
|
||||||
@@ -343,24 +369,24 @@ export default {
|
|||||||
);
|
);
|
||||||
},
|
},
|
||||||
async onDownload() {
|
async onDownload() {
|
||||||
if (!this.projectId || !this.studentId) {
|
// if (!this.projectId || !this.studentId) {
|
||||||
this.$message.warning("缺少项目信息或学员信息");
|
// this.$message.warning("缺少项目信息或学员信息");
|
||||||
return;
|
// return;
|
||||||
}
|
// }
|
||||||
if (this.approvalResults != 2) {
|
if (this.approvalResults != 2) {
|
||||||
this.$message.warning(
|
// this.$refs.customMessage.show(
|
||||||
"您的报名正在审核中,无法下载成绩单,请审核通过后下载"
|
// "您的报名正在审核中,无法下载成绩单,请审核通过后下载"
|
||||||
);
|
// );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (this.approvalResults != 4) {
|
if (this.approvalResults != 4) {
|
||||||
this.$message.warning(
|
// this.$refs.customMessage.show(
|
||||||
"请您重新报名,重新报名不影响当前学习进度,请在审核通过后下载成绩单"
|
// "请您重新报名,重新报名不影响当前学习进度,请在审核通过后下载成绩单"
|
||||||
);
|
// );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (this.progressRing.total != 100) {
|
if (this.progressRing.total != 100) {
|
||||||
this.$message.warning("请您完成学习课程后下载成绩单");
|
// this.$message.warning("请您完成学习课程后下载成绩单");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
@@ -375,15 +401,22 @@ export default {
|
|||||||
this.$message.error("下载失败");
|
this.$message.error("下载失败");
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
returnEnroll() {
|
async returnEnroll() {
|
||||||
this.$router.push("/new-employee/welcome");
|
// this.$router.push("/new-employee/welcome");
|
||||||
|
const res = await enrollRequest();
|
||||||
|
if (res.data.sendToOaSuccess != 0) {
|
||||||
|
this.$refs.customMessage.show("报名失败,请联系XXXX,联系方式:XXXXXX");
|
||||||
|
} else {
|
||||||
|
this.$refs.customMessage.show("您已重新报名成功");
|
||||||
|
this.approvalResults = 2;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
async mounted() {
|
async mounted() {
|
||||||
const res = await getWelcomeData();
|
const res = await getWelcomeData();
|
||||||
// 社招新员工项目标识:0否,1是
|
// 社招新员工项目标识:0否,1是
|
||||||
if (res.data.approvalResults == 1) {
|
if (res.data.approvalResults == 1) {
|
||||||
this.$message.error("未报名或报名失败,请前往报名页面进行报名");
|
this.$refs.customMessage.show("未报名或报名失败,请前往报名页面进行报名");
|
||||||
this.$router.push("/new-employee/welcome");
|
this.$router.push("/new-employee/welcome");
|
||||||
}
|
}
|
||||||
// 1报名失败、2审核中、3审核通过、4审核失败
|
// 1报名失败、2审核中、3审核通过、4审核失败
|
||||||
@@ -448,7 +481,7 @@ export default {
|
|||||||
|
|
||||||
/* 筛选条 */
|
/* 筛选条 */
|
||||||
.filters {
|
.filters {
|
||||||
padding: 8px 12px;
|
padding: 0px 12px 8px;
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 24px;
|
gap: 24px;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@@ -600,12 +633,6 @@ export default {
|
|||||||
text-align: right;
|
text-align: right;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
}
|
}
|
||||||
.item-right.link {
|
|
||||||
color: #0f80ff;
|
|
||||||
}
|
|
||||||
.item-right.done {
|
|
||||||
color: #8a8f99;
|
|
||||||
}
|
|
||||||
.item-right.score {
|
.item-right.score {
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
}
|
}
|
||||||
@@ -665,7 +692,7 @@ export default {
|
|||||||
|
|
||||||
/* 单选按钮组胶囊皮肤(替代 Tabs),保持外观一致 */
|
/* 单选按钮组胶囊皮肤(替代 Tabs),保持外观一致 */
|
||||||
.pill-radios {
|
.pill-radios {
|
||||||
padding-top: 8px;
|
padding-top: 20px;
|
||||||
}
|
}
|
||||||
.pill-radios >>> .el-radio-button__inner {
|
.pill-radios >>> .el-radio-button__inner {
|
||||||
background: #f3f5f8;
|
background: #f3f5f8;
|
||||||
@@ -733,8 +760,8 @@ export default {
|
|||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
.btn-outline {
|
.btn-outline {
|
||||||
background: #ffffff;
|
background: rgba(0, 120, 252, 1);
|
||||||
color: rgba(0, 120, 252, 1);
|
color: #fff;
|
||||||
border: 1px solid rgba(0, 120, 252, 1);
|
border: 1px solid rgba(0, 120, 252, 1);
|
||||||
width: 120px;
|
width: 120px;
|
||||||
}
|
}
|
||||||
@@ -754,6 +781,18 @@ export default {
|
|||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
box-shadow: 0 2px 8px rgba(26, 192, 127, 0.35);
|
box-shadow: 0 2px 8px rgba(26, 192, 127, 0.35);
|
||||||
}
|
}
|
||||||
|
.btn-long.btn-disabled,
|
||||||
|
.btn-long:disabled {
|
||||||
|
background: #cccccc !important;
|
||||||
|
color: #ffffff !important;
|
||||||
|
cursor: not-allowed !important;
|
||||||
|
box-shadow: none !important;
|
||||||
|
}
|
||||||
|
.btn-long.btn-disabled:hover,
|
||||||
|
.btn-long:disabled:hover {
|
||||||
|
background: #cccccc !important;
|
||||||
|
transform: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
.progress-circles {
|
.progress-circles {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|||||||
@@ -67,6 +67,8 @@
|
|||||||
:onCancel="() => (infoConfirmDialogVisible = false)"
|
:onCancel="() => (infoConfirmDialogVisible = false)"
|
||||||
@close="handleDialogClose"
|
@close="handleDialogClose"
|
||||||
/>
|
/>
|
||||||
|
<!-- 自定义信息提示 -->
|
||||||
|
<CustomInfoMessage ref="customMessage" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -74,10 +76,11 @@
|
|||||||
import { mapGetters } from "vuex";
|
import { mapGetters } from "vuex";
|
||||||
import { getWelcomeData, enrollRequest } from "@/api/new-employee/newEmployee";
|
import { getWelcomeData, enrollRequest } from "@/api/new-employee/newEmployee";
|
||||||
import NewEmployeeGuideDialog from "@/components/NewEmployeeGuideDialog.vue";
|
import NewEmployeeGuideDialog from "@/components/NewEmployeeGuideDialog.vue";
|
||||||
|
import CustomInfoMessage from "@/components/CustomInfoMessage.vue";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "WelcomePage",
|
name: "WelcomePage",
|
||||||
components: { NewEmployeeGuideDialog },
|
components: { NewEmployeeGuideDialog, CustomInfoMessage },
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
userName: "",
|
userName: "",
|
||||||
@@ -115,19 +118,22 @@ export default {
|
|||||||
|
|
||||||
// 报名按钮点击
|
// 报名按钮点击
|
||||||
async handleEnrollClick() {
|
async handleEnrollClick() {
|
||||||
|
if (this.approvalResults == "1" || this.approvalResults == "4") {
|
||||||
|
const res = await enrollRequest();
|
||||||
|
if (res.data.sendToOaSuccess != 0) {
|
||||||
|
this.$refs.customMessage.show(
|
||||||
|
"报名失败,请联系XXXX,联系方式:XXXXXX"
|
||||||
|
);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
this.infoConfirmDialogVisible = true;
|
this.infoConfirmDialogVisible = true;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
// 确认按钮
|
// 确认按钮
|
||||||
async handleConfirm() {
|
async handleConfirm() {
|
||||||
try {
|
try {
|
||||||
if (this.approvalResults == "1" || this.approvalResults == "4") {
|
|
||||||
const res = await enrollRequest();
|
|
||||||
if (res.data.sendToOaSuccess != 0) {
|
|
||||||
this.$message.error("报名失败,请联系XXXX,联系方式:XXXXXX");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
this.$router.push("/new-employee/study");
|
this.$router.push("/new-employee/study");
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error("提交失败:", error);
|
console.error("提交失败:", error);
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user