From 804e42367ca21f1a7784ef5ad49f94ed9e74f287 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=A7=AC=E9=8B=86=E5=B1=BE?= <804461479@qq.com>
Date: Tue, 9 Jul 2024 14:07:47 +0800
Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E6=99=BA=E8=83=BD=E4=BA=BA?=
 =?UTF-8?q?=E4=BA=8B=E7=BB=A9=E6=95=88=E5=B1=95=E7=A4=BA=E5=BC=80=E5=85=B3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 src/views/staff/drawershow.vue | 109 ++++++++++++++++++++-------------
 1 file changed, 66 insertions(+), 43 deletions(-)

diff --git a/src/views/staff/drawershow.vue b/src/views/staff/drawershow.vue
index 7043fb4..16c84e8 100644
--- a/src/views/staff/drawershow.vue
+++ b/src/views/staff/drawershow.vue
@@ -14,8 +14,6 @@
         label-width="120px"
         style="width: 100%;"
       >
-
-
         <div class="cell2">
           <div class="history">
             <span>濮撳悕锛�</span>
@@ -58,24 +56,35 @@
             <span class="times">{{ form.phoneNumber }}</span>
           </div>
           <div class="history">
-            <span>鑰冨嫟鎺堟潈锛�</span>
-            <el-switch
-              :active-value="1"
-              :inactive-value="0"
-              v-model="form.attendCheck"
-            >
-            </el-switch>
-          </div>
-          <div class="history">
-            <span>璇勪环鎺堟潈锛�</span>
+            <span>缁╂晥灞曠ず锛�</span>
             <el-switch
               :active-value="1"
               :inactive-value="0"
-              v-model="form.complainCheck"
+              v-model="form.otherCheck"
+              @change="handleSwitch"
             >
             </el-switch>
           </div>
-          <!-- <div class="history">
+          <div class="box" v-if="form.otherCheck == 1">
+            <div class="history">
+              <span>鑰冨嫟鎺堟潈锛�</span>
+              <el-switch
+                :active-value="1"
+                :inactive-value="0"
+                v-model="form.attendCheck"
+              >
+              </el-switch>
+            </div>
+            <div class="history">
+              <span>璇勪环鎺堟潈锛�</span>
+              <el-switch
+                :active-value="1"
+                :inactive-value="0"
+                v-model="form.reviewCheck"
+              >
+              </el-switch>
+            </div>
+            <!-- <div class="history">
             <span>鎶曡瘔鎺堟潈锛�</span>
             <el-switch
               :active-value="1"
@@ -84,38 +93,37 @@
             >
             </el-switch>
           </div> -->
-          <div class="history">
-            <span>鍔炰欢鎺堟潈锛�</span>
-            <el-switch
-              :active-value="1"
-              :inactive-value="0"
-              v-model="form.goworkCheck"
-            >
-            </el-switch>
-          </div>
-          <div class="history">
-            <span>鏁堣兘鎺堟潈锛�</span>
-            <el-switch
-              :active-value="1"
-              :inactive-value="0"
-              v-model="form.effectCheck"
-            >
-            </el-switch>
-          </div>
-          <div class="history">
-            <span>鑷瘎鎺堟潈锛�</span>
-            <el-switch
-              :active-value="1"
-              :inactive-value="0"
-              v-model="form.otherCheck"
-            >
-            </el-switch>
+            <div class="history">
+              <span>鍔炰欢鎺堟潈锛�</span>
+              <el-switch
+                :active-value="1"
+                :inactive-value="0"
+                v-model="form.goworkCheck"
+              >
+              </el-switch>
+            </div>
+            <div class="history">
+              <span>鏁堣兘鎺堟潈锛�</span>
+              <el-switch
+                :active-value="1"
+                :inactive-value="0"
+                v-model="form.effectCheck"
+              >
+              </el-switch>
+            </div>
+            <div class="history">
+              <span>鑷瘎鎺堟潈锛�</span>
+              <el-switch
+                :active-value="1"
+                :inactive-value="0"
+                v-model="form.complainCheck"
+              >
+              </el-switch>
+            </div>
           </div>
         </div>
 
-        <el-row>
-
-        </el-row>
+        <el-row> </el-row>
 
         <form-buttons
           @submit="submitForm"
@@ -207,6 +215,21 @@ export default {
   },
 
   methods: {
+    handleSwitch(val) {
+      if (this.form.otherCheck == 0) {
+        this.form.attendCheck = 0;
+        this.form.reviewCheck = 0;
+        this.form.goworkCheck = 0;
+        this.form.effectCheck = 0;
+        this.form.complainCheck = 0;
+      } else {
+        this.form.attendCheck = 1;
+        this.form.reviewCheck = 1;
+        this.form.goworkCheck = 1;
+        this.form.effectCheck = 1;
+        this.form.complainCheck = 1;
+      }
+    },
     renderContent: function(h, { node, data, store }) {
       return (
         <span>
-- 
2.24.3