zouyu
19 小时以前 b1a2f47275decbfc29aa989ad111e2607aa4205d
删除排班点击确认触发表单必填校验
已修改2个文件
32 ■■■■■ 文件已修改
src/views/business/unpass/components/unPassDialog.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/performance/class/index.vue 30 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/business/unpass/components/unPassDialog.vue
@@ -88,7 +88,7 @@
          </el-row>
          <el-row >
            <el-col :span="12">
              <el-form-item label="问题分类" prop="issueType">
              <el-form-item label="问题类型" prop="issueType">
                <el-select style="width:100%" v-model="unPassForm.issueType" :disabled="type === 'view'" size="small" placeholder="请选择">
                  <el-option v-for="item in issueTypeOptions" :key="item.value" :label="item.label"
                             :value="item.value"></el-option>
src/views/performance/class/index.vue
@@ -796,20 +796,24 @@
  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(){