diff --git a/src/views/CompanyRecruitment/Interview.vue b/src/views/CompanyRecruitment/Interview.vue index 7b61f482bf523ba97c646f0951a577f1db88336b..c88f892cd57f1c0920fa16087b138ed38a45e993 100644 --- a/src/views/CompanyRecruitment/Interview.vue +++ b/src/views/CompanyRecruitment/Interview.vue @@ -20,6 +20,8 @@ {{ $t('刷新') }} 批量删除 + 批量不签约 + 批量取消面试 @@ -267,6 +269,64 @@ export default { // } }, + //批量不签约 + noSign() { + if (this.multipleSelection == "") { + this.$message.warning('请至少选择一条数据进行删除!') + } else { + this.$confirm('此操作将不签约求职者,是否继续?', '提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning', + center: true + }).then(() => { + // 声明空数组,这里的数组是后端需要的数据 + let arrray = [] + //遍历勾选数据取自己需要的id等这里是和后端需要的参数对应 + for (let i = 0; i < this.multipleSelection.length; i++) { + let obj = {}//这里的对象数据是需要删除的数据 这里声明为了不重复 + obj.account = this.multipleSelection[i].account; + obj.positionId = this.multipleSelection[i].positionId; + obj.progressStatus=6; + arrray.push(obj)//把取出的对象push到数组里 + } + deleteResumeDelivery(arrray).then(res => { //接口 + console.log(res); + }) + this.handleFilter();//删完成功后初始化查询列表 + }) + // + } + }, + //批量取消面试 + CancelInterview() { + if (this.multipleSelection == "") { + this.$message.warning('请至少选择一条数据进行删除!') + } else { + this.$confirm('此操作将永久删除该数据,是否继续?', '提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning', + center: true + }).then(() => { + // 声明空数组,这里的数组是后端需要的数据 + let arrray = [] + //遍历勾选数据取自己需要的id等这里是和后端需要的参数对应 + for (let i = 0; i < this.multipleSelection.length; i++) { + let obj = {}//这里的对象数据是需要删除的数据 这里声明为了不重复 + obj.account = this.multipleSelection[i].account; + obj.positionId = this.multipleSelection[i].positionId; + obj.progressStatus=1; + arrray.push(obj)//把取出的对象push到数组里 + } + deleteResumeDelivery(arrray).then(res => { //接口 + console.log(res); + }) + this.handleFilter();//删完成功后初始化查询列表 + }) + // + } + }, // 清空条件 resetListQuery() { this.start_Time = null