From 71ed602a8b17430c119b2ae6472a47dd6e6e0c95 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期四, 24 十月 2024 08:47:31 +0800
Subject: [PATCH] 1. 修改测试服务端地址

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

diff --git a/src/views/fysp/check/ProCheck.vue b/src/views/fysp/check/ProCheck.vue
index 4be5761..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>
@@ -237,8 +237,9 @@
       });
     },
     // 鍏抽棴璁惧鍥惧脊绐�
-    beforeDeviceShowDialogclose() {
-      this.deviceShowDialog = false;
+    beforeDeviceShowDialogclose(done) {
+      // this.deviceShowDialog = false;
+      done()
     },
     // 鍏抽棴浠绘剰鍥剧墖寮圭獥
     beforeAnyPhotoDialogclose() {
@@ -252,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);
@@ -306,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) {
@@ -319,7 +322,7 @@
       if (!isOk) {
         return;
       }
-      this.updateSubtask(isOk);
+      this.updateSubtask();
     },
     newProSubmit(isOk) {
       this.proAddOrUpdDialogVisible = false;

--
Gitblit v1.9.3