| | |
| | | methods: { |
| | | //确认删除排班 |
| | | confirmDelScheduling() { |
| | | const data = { |
| | | userIdList: this.delSchedulingForm.userIdList, |
| | | startTime: this.delSchedulingForm.dateRange[0], |
| | | endTime: this.delSchedulingForm.dateRange[1], |
| | | } |
| | | delShift(data).then(res => { |
| | | if(res.code === 200) { |
| | | this.$message.success("删除成功"); |
| | | this.closeSchedulingDelDialog() |
| | | this.refreshTable() |
| | | this.$refs.delSchedulingFormRef.validate(valid => { |
| | | if (valid) { |
| | | const data = { |
| | | userIdList: this.delSchedulingForm.userIdList, |
| | | startTime: this.delSchedulingForm.dateRange[0], |
| | | endTime: this.delSchedulingForm.dateRange[1], |
| | | } |
| | | delShift(data).then(res => { |
| | | if(res.code === 200) { |
| | | this.$message.success("删除成功"); |
| | | this.closeSchedulingDelDialog() |
| | | this.refreshTable() |
| | | } |
| | | }).catch(err => { |
| | | console.error(err); |
| | | this.closeSchedulingDelDialog() |
| | | }) |
| | | } |
| | | }).catch(err => { |
| | | console.error(err); |
| | | this.closeSchedulingDelDialog() |
| | | }) |
| | | }, |
| | | closeSchedulingDelDialog(){ |