From 13272e92a6c98daad06aa166a6674bf4dac7cc4b Mon Sep 17 00:00:00 2001
From: hcong <1050828145@qq.com>
Date: 星期一, 21 十月 2024 11:06:55 +0800
Subject: [PATCH] 问题审核1021

---
 src/views/fysp/check/ProCheck.vue |   20 +++++++++++---------
 1 files changed, 11 insertions(+), 9 deletions(-)

diff --git a/src/views/fysp/check/ProCheck.vue b/src/views/fysp/check/ProCheck.vue
index 1fc2217..d5e6803 100644
--- a/src/views/fysp/check/ProCheck.vue
+++ b/src/views/fysp/check/ProCheck.vue
@@ -63,11 +63,11 @@
     </ArbitraryPhoto>
   </el-dialog>
   <el-drawer
-    :direction="rtl"
+    direction="ltr"
     v-model="deviceShowDialog"
     :before-close="beforeDeviceShowDialogclose"
     title="璁炬柦璁惧"
-    size="65%"
+    size="45%"
   >
     <CompDeviceShowTest v-if="deviceShowDialog" ref="deviceShowRef"> </CompDeviceShowTest>
   </el-drawer>
@@ -253,12 +253,16 @@
     },
     //鏌ヨ瀛愪换鍔$粺璁′俊鎭�
     search(formSearch) {
-      this.topTask = formSearch.obj;
+      this.topTask = formSearch.topTask;
       this.sideLoading = true;
       this.mainLoading = true;
       this.curProList = [];
       this.curSubtask = {};
-      taskApi.getSubtaskSummary(formSearch).then((res) => {
+      const param = {
+        topTaskId: formSearch.topTask.tguid, 
+        sceneTypeId :formSearch.sceneTypeId
+      }
+      taskApi.getSubtaskSummary(param).then((res) => {
         const list = [];
         res.forEach((s) => {
           const t = this.getSubtaskType(s);
@@ -307,12 +311,10 @@
         });
     },
     // 闂鍗$墖缁勪欢涓诲姩鍙戣捣鍒锋柊鐖剁粍浠舵暟鎹�
-    updateSubtask(isOk) {
+    updateSubtask() {
+      
       this.curSubtask.data.proCheckedNum++;
       this.curSubtask.type = this.getSubtaskType(this.curSubtask.data);
-      if (!isOk) {
-        return;
-      }
       this.refreshCurrSubtask();
     },
     onProSubmited(isOk) {
@@ -320,7 +322,7 @@
       if (!isOk) {
         return;
       }
-      this.updateSubtask(isOk);
+      this.updateSubtask();
     },
     newProSubmit(isOk) {
       this.proAddOrUpdDialogVisible = false;

--
Gitblit v1.9.3