From 2e4d56e2ed95cb0f336522216fedc37167fb446d Mon Sep 17 00:00:00 2001
From: liuwh <964324856@qq.com>
Date: Mon, 09 Sep 2024 15:26:15 +0800
Subject: [PATCH] 小程序代码提交

---
 gz-wxparty/pages/myRegisterList/index.js |   37 +++++++++++++++++++++----------------
 1 files changed, 21 insertions(+), 16 deletions(-)

diff --git a/gz-wxparty/pages/myRegisterList/index.js b/gz-wxparty/pages/myRegisterList/index.js
index e4fdbf1..f6d2055 100644
--- a/gz-wxparty/pages/myRegisterList/index.js
+++ b/gz-wxparty/pages/myRegisterList/index.js
@@ -44,13 +44,7 @@
       label: '不予受理',
       value: '4'
     }],
-    dataList: [{
-      title: '',
-      show: true
-    }, {
-      title: '',
-      show: false
-    }]
+    dataList: []
   },
 
   // 查看
@@ -78,6 +72,7 @@
   searchSelect(e) {
     let idx = e.currentTarget.dataset.index;
     let item = e.currentTarget.dataset.item;
+    console.log('item', item);
     let searchData = {
       ...this.data.search,
       processStatus: item.value
@@ -88,19 +83,23 @@
         ...item,
         hover: index === idx ? true : false
       })),
-      searchValue: item.label
+      searchValue: item.label,
+      showModal: false
     })
   },
 
   // 切换tab
   threeTagChange(e) {
-    value = e.detail;
+    let value = e.detail;
+    console.log(value, );
+    let data = {
+      ...this.data.search,
+      personType: value.name,
+    }
     this.setData({
-      search: {
-        ...this.data.search,
-        personType: value,
-      }
+      search: data
     });
+    this.pageQuery(data)
   },
 
   // 折叠列表
@@ -122,14 +121,20 @@
       });
     }
     if (res.type) {
+      let list = []
       if (params.page === 1) {
-        this.data.data = res.data.content || [];
+        list = res.data.content || [];
       } else {
-        this.data.data = this.data.data.concat(res.data.content || []);
+        list = this.data.data.concat(res.data.content || []);
       }
       this.setData({
         search: params,
-        data: this.data.data,
+        dataList: list.map((i, index) => ({
+          ...i,
+          plaintiffNames: i.plaintiffList.length > 0 ? i.plaintiffList.map(i => i.trueName).join('、') : '-',
+          defendantNames: i.defendantList.length > 0 ? i.defendantList.map(i => i.trueName).join('、') : '-',
+          show: index === 0 ? true : false
+        })),
         total: res.data.totalElements || 0
       });
       if (type === 'onPullDownRefresh') {

--
Gitblit v1.8.0