This commit is contained in:
zhoutianchi
2026-01-14 10:52:06 +08:00
parent 8c1f4ec05e
commit d0c8ea0223
140 changed files with 16969 additions and 11469 deletions

View File

@@ -0,0 +1,62 @@
<template>
<el-dialog :visible.sync="visible" width="60%" :title="`面试审核(${row.name})`">
<el-row>
<el-radio v-model="status" label="1">通过</el-radio>
<el-radio v-model="status" label="-1">未通过</el-radio>
</el-row>
<el-row v-if="status == '-1'">
<br />
<el-input type="textarea" v-model="reason" placeholder="请输入未通过的原因"></el-input>
</el-row>
<span slot="footer" class="dialog-footer">
<el-button type="primary" @click="confirm"><span>确认</span></el-button>
<el-button @click="visible = false">取消</el-button>
</span>
</el-dialog>
</template>
<script>
import global from "@/components/tools/commondict"
import {interview} from "@/api/recruit/recruitstudentsignup";
export default {
name: "interviewForm",
data:function() {
return {
visible: false,
row:{},
status: '1',
reason:''
}
},
methods:{
init(row){
this.visible = true
this.row = row
this.status = row.interview
this.reason = row.interviewReason
},
confirm(){
if(!this.status || (this.status == '-1' && !this.reason)){
global.showWarningInfo(this,"请选择通过还是未通过,未通过请输入原因",2000)
return
}else{
interview({"id":this.row.id,"interview":this.status,"interviewReason":this.reason}).then(resp=>{
global.showSuccessInfo(this,"操作成功",2000)
this.visible = false
this.$emit('refresh')
}).catch(e =>{
global.showWarningInfo(this,"操作失败",2000)
})
}
}
}
}
</script>
<style scoped>
</style>