From 356fbaf0baa43b22113ddcf40345e459bee0c2fb Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期二, 04 六月 2024 17:42:50 +0800
Subject: [PATCH] ''

---
 h5/pages/staff/task/index.vue |   27 +++++++++++++++++++--------
 1 files changed, 19 insertions(+), 8 deletions(-)

diff --git a/h5/pages/staff/task/index.vue b/h5/pages/staff/task/index.vue
index b9ed742..febd30f 100644
--- a/h5/pages/staff/task/index.vue
+++ b/h5/pages/staff/task/index.vue
@@ -12,10 +12,10 @@
         </view>
       </view>
       <view class="box_head_list">
-        <view class="box_head_item active">寰呭鐞� 12</view>
-        <view class="box_head_item">宸插鐞�</view>
-        <view class="box_head_item">鎴戝彂璧风殑</view>
-        <view class="box_head_item">鎶勯�佹垜鐨�</view>
+        <view @click="statusClick()" class="box_head_item active">寰呭鐞�</view>
+        <view @click="statusClick()" class="box_head_item">宸插鐞�</view>
+        <view @click="statusClick()" class="box_head_item">鎴戝彂璧风殑</view>
+        <view @click="statusClick()" class="box_head_item">鎶勯�佹垜鐨�</view>
       </view>
     </scroll-view>
     <view class="box_list">
@@ -139,7 +139,10 @@
         startTime: '',
         endTime: ''
       },
-      pagination: {},
+      pagination: {
+        capacity: 10,
+        page: 1
+      },
       dataList: [],
       cate: [
         { name: '璁垮鐢宠', id: 1 },
@@ -152,12 +155,20 @@
     this.getList()
   },
   methods: {
+    statusClick(val) {
+      this.pagination.page = 1
+      this.getList()
+    },
     getList() {
-      const { pagination } = this
+      const { pagination, search } = this
+      pagination.page++
       taskCenter({
-        model: {}
+        ...pagination,
+        model: {
+          ...search
+        }
       }).then(res => {
-        this.dataList = res.data.records
+        this.dataList = [...this.dataList, ...res.data.records]
       })
     },
     handleAppr(item) {

--
Gitblit v1.9.3