From b1a2f47275decbfc29aa989ad111e2607aa4205d Mon Sep 17 00:00:00 2001
From: zouyu <2723363702@qq.com>
Date: 星期二, 21 七月 2026 10:32:11 +0800
Subject: [PATCH] 删除排班点击确认触发表单必填校验

---
 src/views/business/unpass/components/unPassDialog.vue |    2 +-
 src/views/performance/class/index.vue                 |   30 +++++++++++++++++-------------
 2 files changed, 18 insertions(+), 14 deletions(-)

diff --git a/src/views/business/unpass/components/unPassDialog.vue b/src/views/business/unpass/components/unPassDialog.vue
index dcd00e1..6b78f75 100644
--- a/src/views/business/unpass/components/unPassDialog.vue
+++ b/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>
diff --git a/src/views/performance/class/index.vue b/src/views/performance/class/index.vue
index b549c43..aab0f1f 100644
--- a/src/views/performance/class/index.vue
+++ b/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(){

--
Gitblit v1.9.3