From 9169a74e1d7b2d24d20d708b4498d7ca17eda9d8 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期一, 28 四月 2025 13:42:52 +0800
Subject: [PATCH] 1. 新增自动评估监测数据统计导入功能 2. 修改问题审核界面巡查点次统计没有根据场景类型切换的问题

---
 src/views/fysp/check/components/CompSubTaskStatistic.vue |   15 +++++++++------
 1 files changed, 9 insertions(+), 6 deletions(-)

diff --git a/src/views/fysp/check/components/CompSubTaskStatistic.vue b/src/views/fysp/check/components/CompSubTaskStatistic.vue
index 58e88cf..7f8d3e9 100644
--- a/src/views/fysp/check/components/CompSubTaskStatistic.vue
+++ b/src/views/fysp/check/components/CompSubTaskStatistic.vue
@@ -195,6 +195,7 @@
 export default {
   props: {
     loading: Boolean,
+    sceneType: Number,
     subtasks: {
       type: Array,
       default: () => []
@@ -269,12 +270,14 @@
         reviewTimes: 0
       };
       this.monitorObjList.forEach((m) => {
-        _res.total++;
-        const times = parseInt(m.extension1);
-        if (times) {
-          _res.completedScenes++;
-          _res.completedTimes += times;
-          _res.reviewTimes += times - 1;
+        if (this.sceneType == undefined || m.sceneTypeId == this.sceneType) {
+          _res.total++;
+          const times = parseInt(m.extension1);
+          if (times) {
+            _res.completedScenes++;
+            _res.completedTimes += times;
+            _res.reviewTimes += times - 1;
+          }
         }
       });
       return _res;

--
Gitblit v1.9.3