|
|
@@ -45,8 +45,8 @@
|
|
|
<div v-for="(item_val, index_val) in val" :key="index_val" style="padding-left: 60px;display:flex ;justify-content: space-between;padding-bottom: 5px;align-items: center;">
|
|
|
<div> {{item_val.recruitResumeVo.realname}} {{item_val.recruitResumeVo.telphone}}</div>
|
|
|
<div>
|
|
|
- <el-button size="mini" type="primary">标注</el-button>
|
|
|
- <el-button size="mini" type="primary">改期</el-button>
|
|
|
+ <el-button size="mini" type="primary" @click="updateStatue(item_val)">标注</el-button>
|
|
|
+ <el-button size="mini" type="primary" @click="updateDate(item_val)">改期</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -64,7 +64,43 @@
|
|
|
|
|
|
|
|
|
</div>
|
|
|
-
|
|
|
+ <el-dialog
|
|
|
+ :visible.sync="dateDialogVisible"
|
|
|
+ width="30%"
|
|
|
+ center>
|
|
|
+ <div style="margin-top: 30px">
|
|
|
+ <div style="text-align: center"> {{dateForm.recruitResumeVo.realname}} - {{dateForm.job}}</div>
|
|
|
+ <div style="text-align: center;margin-top: 20px">
|
|
|
+ <el-date-picker type="datetime" placeholder="选择时间" v-model="dateForm.resumeTime" value-format="timestamp"></el-date-picker>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
+ <el-button @click="dateDialogVisible = false">取 消</el-button>
|
|
|
+ <el-button type="primary" @click="submitForm(1)">确认</el-button>
|
|
|
+ </span>
|
|
|
+ </el-dialog>
|
|
|
+ <el-dialog
|
|
|
+ :visible.sync="statusDialogVisible"
|
|
|
+ width="30%"
|
|
|
+ center>
|
|
|
+ <div style="margin-top: 30px">
|
|
|
+ <div style="text-align: center"> {{statusForm.recruitResumeVo.realname}} - {{statusForm.job}}</div>
|
|
|
+ <div style="text-align: center;margin-top: 20px">
|
|
|
+ <el-select v-model="value" placeholder="请选择">
|
|
|
+ <el-option
|
|
|
+ v-for="item in options"
|
|
|
+ :key="item.value"
|
|
|
+ :label="item.label"
|
|
|
+ :value="item.value">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
+ <el-button @click="statusDialogVisible = false">取 消</el-button>
|
|
|
+ <el-button type="primary" @click="submitForm(0)">确认</el-button>
|
|
|
+ </span>
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
@@ -72,6 +108,55 @@
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
+ options: [{
|
|
|
+ value: 0,
|
|
|
+ label: '已投递'
|
|
|
+ }, {
|
|
|
+ value: 1,
|
|
|
+ label: '已发邀请'
|
|
|
+ }, {
|
|
|
+ value: 2,
|
|
|
+ label: '已确定'
|
|
|
+ }, {
|
|
|
+ value: 3,
|
|
|
+ label: '已谢绝'
|
|
|
+ }, {
|
|
|
+ value: 4,
|
|
|
+ label: '初试通过'
|
|
|
+ }, {
|
|
|
+ value: 5,
|
|
|
+ label: '初试不通过'
|
|
|
+ }, {
|
|
|
+ value: 6,
|
|
|
+ label: '复试通过'
|
|
|
+ }, {
|
|
|
+ value: 7,
|
|
|
+ label: '复试不通过'
|
|
|
+ }, {
|
|
|
+ value: 8,
|
|
|
+ label: '已发offer'
|
|
|
+ }, {
|
|
|
+ value: 9,
|
|
|
+ label: '爽约'
|
|
|
+ }, {
|
|
|
+ value: 10,
|
|
|
+ label: '淘汰'
|
|
|
+ }, {
|
|
|
+ value: 11,
|
|
|
+ label: '放弃'
|
|
|
+ }, {
|
|
|
+ value: 12,
|
|
|
+ label: '转正'
|
|
|
+ }],
|
|
|
+ statusForm:{
|
|
|
+ recruitResumeVo:''
|
|
|
+ },
|
|
|
+ value:'',
|
|
|
+ statusDialogVisible:false,
|
|
|
+ dateForm:{
|
|
|
+ recruitResumeVo:''
|
|
|
+ },
|
|
|
+ dateDialogVisible:false,
|
|
|
isIndeterminate: false,
|
|
|
checkAll: true,
|
|
|
checkList:[0,1,2,3,4,5,6,7,8,9,10,11,12],
|
|
|
@@ -95,6 +180,48 @@ export default {
|
|
|
this.search();
|
|
|
},
|
|
|
methods: {
|
|
|
+ editrecruitinterviewStatus(){
|
|
|
+ let data = {}
|
|
|
+ data.status = this.value
|
|
|
+ data.interviewId = this.statusForm.interviewId
|
|
|
+ let that = this
|
|
|
+ this.$api.editrecruitinterview(data).then((res) => {
|
|
|
+ if(res.code==200){
|
|
|
+ that.statusDialogVisible = false
|
|
|
+ that.search();
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
+ editrecruitinterview(){
|
|
|
+ let data = {}
|
|
|
+ data.resumeTime = parseInt(this.dateForm.resumeTime/1000)
|
|
|
+ data.interviewId = this.dateForm.interviewId
|
|
|
+ let that = this
|
|
|
+ this.$api.editrecruitinterview(data).then((res) => {
|
|
|
+ if(res.code==200){
|
|
|
+ that.dateDialogVisible = false
|
|
|
+ that.search();
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
+ submitForm(type){
|
|
|
+ if(type==0){
|
|
|
+ this.editrecruitinterviewStatus()
|
|
|
+ }
|
|
|
+ if(type==1){
|
|
|
+ this.editrecruitinterview()
|
|
|
+ }
|
|
|
+ },
|
|
|
+ updateStatue(val){
|
|
|
+ this.statusDialogVisible = true
|
|
|
+ this.statusForm = JSON.parse(JSON.stringify(val));
|
|
|
+ this.value = this.statusForm.status
|
|
|
+ },
|
|
|
+ updateDate(val){
|
|
|
+ this.dateDialogVisible = true
|
|
|
+ this.dateForm = JSON.parse(JSON.stringify(val));
|
|
|
+ this.dateForm.resumeTime = this.dateForm.resumeTime*1000
|
|
|
+ },
|
|
|
handleCheckAllChange(val){
|
|
|
|
|
|
this.checkList = val ? this.statusIndexList : [];
|