修改点击申请的提示样式

This commit is contained in:
2025-10-19 16:15:45 +08:00
parent 81017eb280
commit fa814cd8a7
8 changed files with 270 additions and 254 deletions

View File

@@ -1,5 +1,5 @@
<template>
<div v-loading.fullscreen.lock="fullLoading" class="app-container">
<div v-loading.fullscreen.lock="fullLoading" :element-loading-text="loadingText" element-loading-spinner="el-icon-loading" element-loading-background="rgba(0, 0, 0, 0.3)" class="app-container">
<div class="sign">
<ol>
@@ -577,76 +577,48 @@ export default {
},
async addVClick() {
let verify = await verifyApplySHXS()
if (verify.code != 200) {
return
this.loadingText = '提示:正在校验资格';
this.fullLoading = true;
try {
const verify = await verifyApplySHXS();
if (verify.code != 200) {
this.$message && this.$message.warning(verify.msg || '未通过资格校验');
return;
}
this.addV = true;
this.course_loading = true;
const res = await getMyGrade(this.courseParams);
const countRes = await countOwnPassOther();
const rankList = await listOwnScoreClassRankOther();
if (countRes.code == 200) {
this.count_list = [...countRes.data];
}
if (rankList.code == 200) {
this.Final_grade = [...rankList.data];
}
this.course_loading = false;
if (res.code == 200) {
this.score_list = lodash.cloneDeep(res.rows);
this.courseTotal = res.total;
}
} catch (e) {
this.$message && this.$message.error('校验失败,请稍后再试');
} finally {
this.fullLoading = false;
this.loadingText = '提示:处理中...';
}
},
// ... existing code ...
resetAddForm() {
this.addForm = {
zzmm: '',
classPost: '',
goodHis: '',
mainHis: '',
bornTime: '',
material: null
}
}
this.addV = true
this.course_loading = true
// 查询我的成绩
let res = await getMyGrade(this.courseParams)
let countRes = await countOwnPassOther()
let rankList = await listOwnScoreClassRankOther()
if (countRes.code == 200) {
this.count_list = [...countRes.data]
}
if (rankList.code == 200) {
this.Final_grade = [...rankList.data]
}
this.course_loading = false
if (res.code == 200) {
this.score_list = lodash.cloneDeep(res.rows)
this.courseTotal = res.total
}
},
async doApply() {
let sdata = lodash.cloneDeep(this.addForm)
if (isEmpty(sdata.zzmm)) {
this.$message.info('请填写政治面貌')
return
}
// if (isEmpty(sdata.bornTime)) {
// this.$message.info("请填写出生年月");
// return;
// }
if (isEmpty(sdata.classPost)) {
this.$message.info('请填写职务')
return
}
if (isEmpty(sdata.goodHis)) {
this.$message.info('请填写获奖记录')
return
}
if (isEmpty(sdata.mainHis)) {
this.$message.info('请填写主要事迹')
return
}
if (sdata.mainHis.length < 100) {
this.$message.info('主要事迹字数需要100字以上')
return
}
this.fullLoading = true
let res = await goodStuApply(sdata)
this.fullLoading = false
if (res.code == 200) {
this.addV = false
this.resetAddForm()
this.$message.success(res.msg)
this.getList()
}
},
resetAddForm() {
this.addForm = {
zzmm: '',
classPost: '',
goodHis: '',
mainHis: '',
bornTime: '',
material: null
}
}
}
}