a
This commit is contained in:
@@ -639,8 +639,11 @@
|
||||
<template #footer v-if="type==1">
|
||||
<div class="dialog-footer">
|
||||
<el-button @click="visible = false">取消</el-button>
|
||||
<el-button type="primary" @click="dataFormSubmit(20)" v-if="canSubmit">确认录取</el-button>
|
||||
<el-button type="danger" plain @click="dataFormSubmit(-20)" v-if="canSubmit">驳回录取</el-button>
|
||||
<el-button type="primary" @click="dataFormSubmit(20)" v-auth="'recruit_recruitstudentsignup_add'" v-if="canSubmit&&!dataForm.id">保存并送审</el-button>
|
||||
|
||||
<el-button type="primary" @click="dataFormSubmit" v-auth="'signup_info_exam'" v-if="canSubmit&&dataForm.id">保存</el-button>
|
||||
<el-button type="primary" @click="dataFormSubmit('20')" v-auth="'signup_info_exam'" v-if="canSubmit&&dataForm.id">确认录取</el-button>
|
||||
<el-button type="danger" plain @click="dataFormSubmit('-20')" v-auth="'signup_info_exam'" v-if="canSubmit&&dataForm.id">驳回录取</el-button>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -1310,20 +1313,23 @@ const changeM = (id: string) => {
|
||||
}
|
||||
|
||||
// 表单提交
|
||||
const dataFormSubmit = (state: number) => {
|
||||
dataForm.auditStatus = String(state)
|
||||
const dataFormSubmit = (state: string) => {
|
||||
dataForm.auditStatus = state
|
||||
let submitTitle = "确认通过该学生的报名申请么?"
|
||||
if (state == -20) {
|
||||
submitTitle = "确认驳回该学生的报名申请么?"
|
||||
} else {
|
||||
if (!dataForm.confirmedMajor) {
|
||||
ElNotification.error({
|
||||
title: '错误',
|
||||
message: '请选择录取专业'
|
||||
})
|
||||
return
|
||||
if(state){
|
||||
if (state == "-20") {
|
||||
submitTitle = "确认驳回该学生的报名申请么?"
|
||||
} else {
|
||||
if (!dataForm.confirmedMajor) {
|
||||
ElNotification.error({
|
||||
title: '错误',
|
||||
message: '请选择录取专业'
|
||||
})
|
||||
return
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (dataForm.degreeOfEducation == '1' && (dataForm.score == undefined || dataForm.score == '')) {
|
||||
ElNotification.error({
|
||||
title: '错误',
|
||||
|
||||
Reference in New Issue
Block a user