From bf6643a35299f19ae9147864e6f3b6b4670da98a Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期六, 09 十一月 2024 11:42:59 +0800
Subject: [PATCH] 测试完成

---
 src/views/followvisit/discharge/index.vue |   17 ++++++++---------
 1 files changed, 8 insertions(+), 9 deletions(-)

diff --git a/src/views/followvisit/discharge/index.vue b/src/views/followvisit/discharge/index.vue
index 7ad5da9..780a4eb 100644
--- a/src/views/followvisit/discharge/index.vue
+++ b/src/views/followvisit/discharge/index.vue
@@ -366,7 +366,6 @@
           width="200"
         />
         <el-table-column
-
           label="浠诲姟鎵ц鏂瑰紡"
           align="center"
           key="preachform"
@@ -375,13 +374,10 @@
           :show-overflow-tooltip="true"
         >
           <template slot-scope="scope">
-            <span v-for="item in scope.row.preachform"
-              >{{ item }}銆�
-            </span>
+            <span v-for="item in scope.row.preachform">{{ item }}銆� </span>
           </template>
         </el-table-column>
         <el-table-column
-
           label="浠诲姟鍙戦�佹祦绋�"
           align="center"
           key="serviceSubtaskRecordList"
@@ -396,7 +392,6 @@
           </template>
         </el-table-column>
         <el-table-column
-
           label="浠诲姟缁撴灉璇存槑"
           width="120"
           align="center"
@@ -414,7 +409,6 @@
         </el-table-column>
         <el-table-column
           label="鎿嶄綔"
-
           align="center"
           width="200"
           class-name="small-padding fixed-width"
@@ -835,6 +829,7 @@
       this.loading = true;
       getTaskservelist(this.topqueryParams).then((response) => {
         this.userList = response.rows[0].serviceSubtaskList;
+        this.total=response.total
         this.cardlist[0].value =
           Number(response.rows[0].wzx) + Number(response.rows[0].ysf);
         this.cardlist[1].value = response.rows[0].ysf;
@@ -843,11 +838,16 @@
         this.cardlist[4].value = response.rows[0].fssb;
         this.cardlist[5].value = response.rows[0].blq;
         this.cardlist[6].value = response.rows[0].yfs;
+        this.loading = false;
         this.userList.forEach((item) => {
+          const idArray = null;
           if (item.endtime) {
             item.endDay = this.daysBetween(item.endtime);
           }
-          const idArray = item.preachform.split(",");
+          if (item.endtime) {
+           idArray = item.preachform.split(",");
+          }
+
           item.preachform = idArray.map((value) => {
             // 鏌ユ壘id瀵瑰簲鐨勫璞�
             const item = this.checkboxlist.find((item) => item.value == value);
@@ -856,7 +856,6 @@
           });
         });
         this.total = response.total;
-        this.loading = false;
       });
     },
     // 鏌ョ湅闂ㄨ瘖闅忚璇︽儏

--
Gitblit v1.9.3