From 1cc5fd76248222cb6fa62a9db93c9716b635f480 Mon Sep 17 00:00:00 2001
From: 张含笑 <zhx18749296735@163.com>
Date: Thu, 22 Jan 2026 17:38:46 +0800
Subject: [PATCH] feat:工单

---
 uniapps/work-app/src/pages/work/index.vue |  497 +++++-------------------------------------------------
 1 files changed, 49 insertions(+), 448 deletions(-)

diff --git a/uniapps/work-app/src/pages/work/index.vue b/uniapps/work-app/src/pages/work/index.vue
index 369d81d..599f9f2 100644
--- a/uniapps/work-app/src/pages/work/index.vue
+++ b/uniapps/work-app/src/pages/work/index.vue
@@ -8,14 +8,14 @@
       <div class="tabs-container">
         <up-tabs :list="tabList" @click="handleClick"></up-tabs>
       </div>
-
-      <scroll-view class="eventBox" scroll-y :lower-threshold="80" @scrolltolower="loadMore">
+<!-- @scrolltolower="loadMore" -->
+      <scroll-view class="eventBox" scroll-y :lower-threshold="80" >
         <div class="eventList">
           <div class="eventItem"  v-for="(item,index) in dataList" :key="index">
-            <img :src="item.photo_url" alt="" @click="detailHandle(item)" />
+            <img :src="item.eventImageUrl" alt="" @click="detailHandle(item)" />
             <div class="informationDisplay">
               <!--              <div class="itemTitle">{{item.event_name}}</div>-->
-              <div class="itemContent">{{formatDate(item.create_time) }}</div>
+              <div class="itemContent">{{formatDate(item.createTime) }}</div>
             </div>
           </div>
         </div>
@@ -35,410 +35,12 @@
 <script setup>
 
 import { useUserStore } from '@/store/index.js'
-import {getList,getstatusCount} from '/src/api/work/index.js'
+import {getGdList,getstatusCount} from '/src/api/work/index1.js'
 import dayjs from 'dayjs';
 import { getStatusBarHeight } from '@/utils/common';
 const userStore = useUserStore()
 const userInfo = userStore.userInfo
-const dataList = ref([
-  {
-    "id": 8474,
-    "wayline_job_id": "51835088-cd94-42f8-b2ec-a9069ced4e7b",
-    "event_name": "测试",
-    "device_sn": "7CTDM5E00B3H61",
-    "status": 3,
-    "photo_url": "https://wrj.shuixiongit.com/minio/cloud-bucket/upload/20260113/f090f03fdc52499473ab9cbfcdc0876d.jpeg",
-    "file_path": "upload/20260113/f090f03fdc52499473ab9cbfcdc0876d.jpeg",
-    "longitude": "115.85649472222222",
-    "latitude": "28.624301527777778",
-    "create_time": "2026-01-13 16:51:57",
-    "media_type": "PHOTO_TYPE",
-    "event_num": "BHJC20260113002",
-    "ai_types": "道路裂缝",
-    "ai_type_key_list": [
-      "DLLFSB"
-    ],
-    "work_order_type_dict_key": "ZHZLL",
-    "work_order_type": "交通运输与交管​",
-    "create_user": "曾超杰",
-    "update_user": "管理员",
-    "dept_name": "中图智飞(江西省)",
-    "create_user_id": "2009140684346388482",
-    "user_id": "1991745495648227330",
-    "handle_user_id": "1123598821738675201",
-    "address": "江西省南昌市西湖区朝农街道抚生南路1806号南昌台湾健康产业城",
-    "update_photo_url": "https://wrj.shuixiongit.com/minio/cloud-bucket/upload/20260113/f090f03fdc52499473ab9cbfcdc0876d.jpeg",
-    "content": "测试",
-    "work_type": "3",
-    "job_name": "定向拍照2",
-    "is_review": 0,
-    "job_create_time": "2026-01-13 16:51:57"
-  },
-  {
-    "id": 8472,
-    "wayline_job_id": "6beae73e-2d5d-47e5-859b-e2a1955d6e3b",
-    "event_name": "车事件",
-    "event_dict_key": "Traffic_flow",
-    "device_sn": "7CTDM5E00B3H61",
-    "status": 3,
-    "photo_url": "https://wrj.shuixiongit.com/minio/cloud-bucket//6beae73e-2d5d-47e5-859b-e2a1955d6e3b/DJI_202601091336_002_6beae73e-2d5d-47e5-859b-e2a1955d6e3b/车AI20260112144421001.jpeg",
-    "file_path": "/6beae73e-2d5d-47e5-859b-e2a1955d6e3b/DJI_202601091336_002_6beae73e-2d5d-47e5-859b-e2a1955d6e3b/车AI20260112144421001.jpeg",
-    "longitude": "115.85502433333333",
-    "latitude": "28.623021472222224",
-    "create_time": "2026-01-12 14:44:25",
-    "media_type": "PHOTO_TYPE",
-    "event_num": "AI20260112144421001",
-    "remark": "江西省南昌市西湖区朝农街道翠菊路银燕物流基地发生车事件",
-    "ai_types": "车",
-    "ai_type_key_list": [
-      "CGL_CLLTJ"
-    ],
-    "work_order_type_dict_key": "ZHZLL",
-    "work_order_type": "交通运输与交管​",
-    "create_user": "曾超杰",
-    "update_user": "空间大厦管理员",
-    "dept_name": "中图智飞(江西省)",
-    "create_user_id": "2009140684346388482",
-    "user_id": "1991745495648227330",
-    "handle_user_id": "1979075301412524033",
-    "address": "江西省南昌市西湖区朝农街道翠菊路银燕物流基地",
-    "content": "测试",
-    "work_type": "2",
-    "job_name": "马上智飞202601091336",
-    "is_review": 0,
-    "job_create_time": "2026-01-09 13:36:42"
-  },
-  {
-    "id": 8464,
-    "wayline_job_id": "8b4b7529-13ee-4885-a7b8-4a52667444fb",
-    "event_name": "1212",
-    "device_sn": "7CTDM5E00B3H61",
-    "status": 3,
-    "photo_url": "https://wrj.shuixiongit.com/minio/cloud-bucket/upload/20260107/5e6bc6ecedd830f2415a959667b3841a.jpeg",
-    "file_path": "upload/20260107/5e6bc6ecedd830f2415a959667b3841a.jpeg",
-    "longitude": "115.85803208048642",
-    "latitude": "28.625135341676483",
-    "create_time": "2026-01-07 11:18:35",
-    "media_type": "PHOTO_TYPE",
-    "event_num": "BHJC20260107003",
-    "ai_types": "水体污染",
-    "ai_type_key_list": [
-      "STWLSB"
-    ],
-    "work_order_type_dict_key": "SLL",
-    "work_order_type": "生态环境与水务",
-    "create_user": "罗广辉",
-    "update_user": "空间大厦管理员",
-    "dept_name": "中图智飞(江西省)",
-    "create_user_id": "1896495271624384514",
-    "user_id": "1991745495648227330",
-    "handle_user_id": "1979075301412524033",
-    "address": "江西省南昌市西湖区朝农街道抚生南路世纪吉的堡幼儿园",
-    "update_photo_url": "https://wrj.shuixiongit.com/minio/cloud-bucket/upload/20260107/5e6bc6ecedd830f2415a959667b3841a.jpeg",
-    "content": "2121",
-    "work_type": "3",
-    "job_name": "马上智飞202601051720",
-    "is_review": 0,
-    "job_create_time": "2026-01-07 11:18:35"
-  },
-  {
-    "id": 8463,
-    "wayline_job_id": "8b4b7529-13ee-4885-a7b8-4a52667444fb",
-    "event_name": "122112",
-    "device_sn": "7CTDM5E00B3H61",
-    "status": 3,
-    "photo_url": "https://wrj.shuixiongit.com/minio/cloud-bucket/upload/20260107/a52b1adda405b94a4f9436e43e1b3185.jpeg",
-    "file_path": "upload/20260107/a52b1adda405b94a4f9436e43e1b3185.jpeg",
-    "longitude": "115.85780692063119",
-    "latitude": "28.624775436656122",
-    "create_time": "2026-01-07 11:17:47",
-    "media_type": "PHOTO_TYPE",
-    "event_num": "BHJC20260107002",
-    "ai_types": "水体污染",
-    "ai_type_key_list": [
-      "STWLSB"
-    ],
-    "work_order_type_dict_key": "SLL",
-    "work_order_type": "生态环境与水务",
-    "create_user": "罗广辉",
-    "update_user": "空间大厦管理员",
-    "dept_name": "中图智飞(江西省)",
-    "create_user_id": "1896495271624384514",
-    "user_id": "1991745495648227330",
-    "handle_user_id": "1979075301412524033",
-    "address": "江西省南昌市西湖区朝农街道抚生南路世纪吉的堡幼儿园",
-    "update_photo_url": "https://wrj.shuixiongit.com/minio/cloud-bucket/upload/20260107/a52b1adda405b94a4f9436e43e1b3185.jpeg",
-    "content": "1",
-    "work_type": "3",
-    "job_name": "马上智飞202601051720",
-    "is_review": 0,
-    "job_create_time": "2026-01-07 11:17:48"
-  },
-  {
-    "id": 8462,
-    "wayline_job_id": "8b4b7529-13ee-4885-a7b8-4a52667444fb",
-    "event_name": "1",
-    "device_sn": "7CTDM5E00B3H61",
-    "status": 3,
-    "photo_url": "https://wrj.shuixiongit.com/minio/cloud-bucket/upload/20260107/a138491d214cc0ce7a5a3eedf6b79680.jpeg",
-    "file_path": "upload/20260107/a138491d214cc0ce7a5a3eedf6b79680.jpeg",
-    "longitude": "115.85763536212585",
-    "latitude": "28.626095211224335",
-    "create_time": "2026-01-07 11:14:41",
-    "media_type": "PHOTO_TYPE",
-    "event_num": "BHJC20260107001",
-    "ai_types": "水体污染",
-    "ai_type_key_list": [
-      "STWLSB"
-    ],
-    "work_order_type_dict_key": "SLL",
-    "work_order_type": "生态环境与水务",
-    "create_user": "罗广辉",
-    "update_user": "江西融媒",
-    "dept_name": "中图智飞(江西省)",
-    "create_user_id": "1896495271624384514",
-    "user_id": "1991745495648227330",
-    "handle_user_id": "1993119267150655490",
-    "address": "江西省南昌市西湖区朝农街道国贸天琴湾东区",
-    "update_photo_url": "https://wrj.shuixiongit.com/minio/cloud-bucket/upload/20260107/a138491d214cc0ce7a5a3eedf6b79680.jpeg",
-    "content": "1",
-    "work_type": "3",
-    "job_name": "马上智飞202601051720",
-    "is_review": 0,
-    "job_create_time": "2026-01-07 11:14:42"
-  },
-  {
-    "id": 8461,
-    "wayline_job_id": "038b8f48-1704-4adc-abb7-7deb85eba101",
-    "event_name": "测试",
-    "device_sn": "7CTDM5E00B3H61",
-    "status": 3,
-    "photo_url": "https://wrj.shuixiongit.com/minio/cloud-bucket/upload/20260106/c94dca50d34e13f53fd5a5c05abfe03f.jpeg",
-    "file_path": "upload/20260106/c94dca50d34e13f53fd5a5c05abfe03f.jpeg",
-    "longitude": "115.85623975",
-    "latitude": "28.624919472222224",
-    "create_time": "2026-01-06 13:38:03",
-    "media_type": "PHOTO_TYPE",
-    "event_num": "BHJC20260106018",
-    "ai_types": "水体污染",
-    "ai_type_key_list": [
-      "STWLSB"
-    ],
-    "work_order_type_dict_key": "SLL",
-    "work_order_type": "生态环境与水务",
-    "create_user": "张含笑",
-    "update_user": "张含笑",
-    "dept_name": "中图智飞(江西省)",
-    "create_user_id": "1909067460995813377",
-    "user_id": "1991745495648227330",
-    "handle_user_id": "1909067460995813377",
-    "address": "江西省南昌市西湖区朝农街道抚生南路1818号国贸天琴湾",
-    "update_photo_url": "https://wrj.shuixiongit.com/minio/cloud-bucket/upload/20260106/c94dca50d34e13f53fd5a5c05abfe03f.jpeg",
-    "content": "123",
-    "work_type": "3",
-    "job_name": "定向拍照-1-5",
-    "is_review": 0,
-    "job_create_time": "2026-01-06 13:38:03"
-  },
-  {
-    "id": 8460,
-    "wayline_job_id": "8b4b7529-13ee-4885-a7b8-4a52667444fb",
-    "event_name": "11",
-    "device_sn": "7CTDM5E00B3H61",
-    "status": 3,
-    "photo_url": "https://wrj.shuixiongit.com/minio/cloud-bucket/upload/20260106/6ef9355b143d4e89d83c77d18f4e312f.jpeg",
-    "file_path": "upload/20260106/6ef9355b143d4e89d83c77d18f4e312f.jpeg",
-    "longitude": "115.85763536212585",
-    "latitude": "28.626095211224335",
-    "create_time": "2026-01-06 11:08:51",
-    "media_type": "PHOTO_TYPE",
-    "event_num": "BHJC20260106017",
-    "ai_types": "建筑垃圾",
-    "ai_type_key_list": [
-      "GCL_JZLJSB"
-    ],
-    "work_order_type_dict_key": "CGL",
-    "work_order_type": "城市管理与综合执法",
-    "create_user": "张含笑",
-    "update_user": "罗广辉",
-    "dept_name": "中图智飞(江西省)",
-    "create_user_id": "1909067460995813377",
-    "user_id": "1991745495648227330",
-    "handle_user_id": "1896495271624384514",
-    "address": "江西省南昌市西湖区朝农街道国贸天琴湾东区",
-    "update_photo_url": "https://wrj.shuixiongit.com/minio/cloud-bucket/upload/20260106/6ef9355b143d4e89d83c77d18f4e312f.jpeg",
-    "content": "12",
-    "work_type": "3",
-    "job_name": "马上智飞202601051720",
-    "is_review": 0,
-    "job_create_time": "2026-01-06 11:08:52"
-  },
-  {
-    "id": 8459,
-    "wayline_job_id": "038b8f48-1704-4adc-abb7-7deb85eba101",
-    "event_name": "122",
-    "device_sn": "7CTDM5E00B3H61",
-    "status": 3,
-    "photo_url": "https://wrj.shuixiongit.com/minio/cloud-bucket/upload/20260106/96c7769b12f2e55b7e788e8f35b0364b.jpeg",
-    "file_path": "upload/20260106/96c7769b12f2e55b7e788e8f35b0364b.jpeg",
-    "longitude": "115.85623975",
-    "latitude": "28.624919472222224",
-    "create_time": "2026-01-06 11:08:00",
-    "media_type": "PHOTO_TYPE",
-    "event_num": "BHJC20260106016",
-    "ai_types": "水生植物漂浮物",
-    "ai_type_key_list": [
-      "SMPFWSB"
-    ],
-    "work_order_type_dict_key": "SLL",
-    "work_order_type": "生态环境与水务",
-    "create_user": "张含笑",
-    "update_user": "张含笑",
-    "dept_name": "中图智飞(江西省)",
-    "create_user_id": "1909067460995813377",
-    "user_id": "1991745495648227330",
-    "handle_user_id": "1909067460995813377",
-    "address": "江西省南昌市西湖区朝农街道抚生南路1818号国贸天琴湾",
-    "update_photo_url": "https://wrj.shuixiongit.com/minio/cloud-bucket/upload/20260106/96c7769b12f2e55b7e788e8f35b0364b.jpeg",
-    "content": "1",
-    "work_type": "3",
-    "job_name": "定向拍照-1-5",
-    "is_review": 0,
-    "job_create_time": "2026-01-06 11:08:00"
-  },
-  {
-    "id": 8458,
-    "wayline_job_id": "8b4b7529-13ee-4885-a7b8-4a52667444fb",
-    "event_name": "12",
-    "device_sn": "7CTDM5E00B3H61",
-    "status": 3,
-    "photo_url": "https://wrj.shuixiongit.com/minio/cloud-bucket/upload/20260106/2e065c4f0e78d4fa1cfdd15f65397b85.jpeg",
-    "file_path": "upload/20260106/2e065c4f0e78d4fa1cfdd15f65397b85.jpeg",
-    "longitude": "115.85677911492691",
-    "latitude": "28.62569394530331",
-    "create_time": "2026-01-06 11:00:53",
-    "media_type": "PHOTO_TYPE",
-    "event_num": "BHJC20260106015",
-    "ai_types": "水体污染",
-    "ai_type_key_list": [
-      "STWLSB"
-    ],
-    "work_order_type_dict_key": "SLL",
-    "work_order_type": "生态环境与水务",
-    "create_user": "张含笑",
-    "update_user": "罗广辉",
-    "dept_name": "中图智飞(江西省)",
-    "create_user_id": "1909067460995813377",
-    "user_id": "1991745495648227330",
-    "handle_user_id": "1896495271624384514",
-    "address": "江西省南昌市西湖区朝农街道抚生南路1836号国贸天琴湾东区",
-    "update_photo_url": "https://wrj.shuixiongit.com/minio/cloud-bucket/upload/20260106/2e065c4f0e78d4fa1cfdd15f65397b85.jpeg",
-    "content": "22",
-    "work_type": "3",
-    "job_name": "马上智飞202601051720",
-    "is_review": 0,
-    "job_create_time": "2026-01-06 11:00:54"
-  },
-  {
-    "id": 8457,
-    "wayline_job_id": "038b8f48-1704-4adc-abb7-7deb85eba101",
-    "event_name": "发布事件",
-    "device_sn": "7CTDM5E00B3H61",
-    "status": 3,
-    "photo_url": "https://wrj.shuixiongit.com/minio/cloud-bucket/upload/20260106/ecdfe6c661dba2fa03efcc19a5863680.jpeg",
-    "file_path": "upload/20260106/ecdfe6c661dba2fa03efcc19a5863680.jpeg",
-    "longitude": "115.85623975",
-    "latitude": "28.624919472222224",
-    "create_time": "2026-01-06 10:43:29",
-    "media_type": "PHOTO_TYPE",
-    "event_num": "BHJC20260106014",
-    "ai_types": "水体污染",
-    "ai_type_key_list": [
-      "STWLSB"
-    ],
-    "work_order_type_dict_key": "SLL",
-    "work_order_type": "生态环境与水务",
-    "create_user": "张含笑",
-    "update_user": "张含笑",
-    "dept_name": "中图智飞(江西省)",
-    "create_user_id": "1909067460995813377",
-    "user_id": "1991745495648227330",
-    "handle_user_id": "1909067460995813377",
-    "address": "江西省南昌市西湖区朝农街道抚生南路1818号国贸天琴湾",
-    "update_photo_url": "https://wrj.shuixiongit.com/minio/cloud-bucket/upload/20260106/ecdfe6c661dba2fa03efcc19a5863680.jpeg",
-    "content": "11",
-    "work_type": "3",
-    "job_name": "定向拍照-1-5",
-    "is_review": 0,
-    "job_create_time": "2026-01-06 10:43:30"
-  },
-  {
-    "id": 8456,
-    "wayline_job_id": "038b8f48-1704-4adc-abb7-7deb85eba101",
-    "event_name": "122",
-    "device_sn": "7CTDM5E00B3H61",
-    "status": 3,
-    "photo_url": "https://wrj.shuixiongit.com/minio/cloud-bucket/upload/20260106/fc9820c440da478fa5312e8647e1e311.jpeg",
-    "file_path": "upload/20260106/fc9820c440da478fa5312e8647e1e311.jpeg",
-    "longitude": "115.85623975",
-    "latitude": "28.624919472222224",
-    "create_time": "2026-01-06 10:38:20",
-    "media_type": "PHOTO_TYPE",
-    "event_num": "BHJC20260106013",
-    "ai_types": "水体污染",
-    "ai_type_key_list": [
-      "STWLSB"
-    ],
-    "work_order_type_dict_key": "SLL",
-    "work_order_type": "生态环境与水务",
-    "create_user": "张含笑",
-    "update_user": "张含笑",
-    "dept_name": "中图智飞(江西省)",
-    "create_user_id": "1909067460995813377",
-    "user_id": "1991745495648227330",
-    "handle_user_id": "1909067460995813377",
-    "address": "江西省南昌市西湖区朝农街道抚生南路1818号国贸天琴湾",
-    "update_photo_url": "https://wrj.shuixiongit.com/minio/cloud-bucket/upload/20260106/fc9820c440da478fa5312e8647e1e311.jpeg",
-    "content": "3",
-    "work_type": "3",
-    "job_name": "定向拍照-1-5",
-    "is_review": 0,
-    "job_create_time": "2026-01-06 10:38:20"
-  },
-  {
-    "id": 8455,
-    "wayline_job_id": "038b8f48-1704-4adc-abb7-7deb85eba101",
-    "event_name": "122",
-    "device_sn": "7CTDM5E00B3H61",
-    "status": 3,
-    "photo_url": "https://wrj.shuixiongit.com/minio/cloud-bucket/upload/20260106/d9a152ab1484348be5e126f854eca86a.jpeg",
-    "file_path": "upload/20260106/d9a152ab1484348be5e126f854eca86a.jpeg",
-    "longitude": "115.85623975",
-    "latitude": "28.624919472222224",
-    "create_time": "2026-01-06 10:38:18",
-    "media_type": "PHOTO_TYPE",
-    "event_num": "BHJC20260106012",
-    "ai_types": "水体污染",
-    "ai_type_key_list": [
-      "STWLSB"
-    ],
-    "work_order_type_dict_key": "SLL",
-    "work_order_type": "生态环境与水务",
-    "create_user": "张含笑",
-    "update_user": "张含笑",
-    "dept_name": "中图智飞(江西省)",
-    "create_user_id": "1909067460995813377",
-    "user_id": "1991745495648227330",
-    "handle_user_id": "1909067460995813377",
-    "address": "江西省南昌市西湖区朝农街道抚生南路1818号国贸天琴湾",
-    "update_photo_url": "https://wrj.shuixiongit.com/minio/cloud-bucket/upload/20260106/d9a152ab1484348be5e126f854eca86a.jpeg",
-    "content": "3",
-    "work_type": "3",
-    "job_name": "定向拍照-1-5",
-    "is_review": 0,
-    "job_create_time": "2026-01-06 10:38:18"
-  }
-])
+const dataList = ref([])
 const currentTab=ref('all')
 const loading = ref(false)
 const hasMore = ref(true)
@@ -447,7 +49,7 @@
     name: '全部工单',
     key: 'all',
     badge: {
-      value: 2
+      value: 0
     },
     status: null
   },
@@ -455,7 +57,7 @@
     name: '我的工单',
     key: 'myTickets',
     badge: {
-      value: 1
+      value: 0
     }
   }
 
@@ -480,29 +82,26 @@
   const params = {
     current: listParams.value.current,
     size: listParams.value.size,
-    source: 1,
-    status:listParams.value.status,
-    event_name:listParams.value.keyword,
-    user_id:currentTab.value=== 'myTickets' ?userInfo.user_id : undefined
+    // event_name:listParams.value.keyword,
+    onlyMine:currentTab.value=== 'myTickets' ? 1 : 0
   }
-  getList(params).then(res => {
-
+  getGdList(params).then(res => {
     const response = res.data.data
-    const records = response.records || []
-
+    dataList.value = response
+    console.log('获取工单列表:', res.data.data)
     // 根据当前页码决定是替换还是追加数据
-    if (listParams.value.current === 1) {
-      dataList.value = records
-    } else {
-      dataList.value = [...dataList.value, ...records]
-    }
+    // if (listParams.value.current === 1) {
+    //   dataList.value = response
+    // } else {
+    //   dataList.value = [...dataList.value, ...response]
+    // }
 
-    // 判断是否还有更多数据
-    if (records.length < listParams.value.size || response.current >= response.pages) {
-      hasMore.value = false
-    } else {
-      hasMore.value = true
-    }
+    // // 判断是否还有更多数据
+    // if (response.length < listParams.value.size || response.current >= response.pages) {
+    //   hasMore.value = false
+    // } else {
+    //   hasMore.value = true
+    // }
   }).finally(() => {
     loading.value = false
   })
@@ -510,24 +109,25 @@
 
 
 
-// const getstatusCountData=()=>{
-// 	getstatusCount().then(res=>{
-// 		const response = res.data.data
-// 		 const { statusCount, totalCount, userCount } = response
-// 		tabList.value.forEach(tab=>{
-//
-// 			if(tab.key === 'all'){
-// 				tab.badge.value = totalCount || 0
-//
-// 			}else if(tab.key === 'myTickets'){
-// 				tab.badge.value = userCount || 0
-// 			}else{
-// 				tab.badge.value=statusCount[String(tab.status)] || 0
-// 			}
-// 		})
-//
-// 	})
-// }
+const getstatusCountData=()=>{
+	getstatusCount().then(res=>{
+		const response = res.data.data
+    console.log('获取工单统计数据:', response)
+		 const {  totalCount,myCount } = response
+		tabList.value.forEach(tab=>{
+
+			if(tab.key === 'all'){
+				tab.badge.value = totalCount || 0
+
+			}else if(tab.key === 'myTickets'){
+				tab.badge.value = myCount || 0
+			}else{
+				tab.badge.value=statusCount[String(tab.status)] || 0
+			}
+		})
+
+	})
+}
 
 const handleClick = (item) => {
   currentTab.value = item.key
@@ -545,15 +145,16 @@
 
 const detailHandle = (val) => {
   uni.navigateTo({
-    url: `/subPackages/workDetail/index?eventNum=${val.event_num}`,
+    url: `/subPackages/workDetail/index?id=${val.id}`,
   })
 }
 const topMargin = getStatusBarHeight()
 onShow(() => {
-  // listParams.value.current = 1
-  // hasMore.value = true
-  // dataList.value = []
-  // getDataList()
+  listParams.value.current = 1
+  hasMore.value = true
+  dataList.value = []
+  getDataList()
+  getstatusCountData()
 })
 </script>
 

--
Gitblit v1.9.3