From 1e71cfb6ec97cff6531dec65a3fb5cb24b2c18ac Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期一, 03 十一月 2025 09:57:48 +0800
Subject: [PATCH] fix: 附件完善
---
src/pages/routingInspection/index.vue | 20 ++++++++------------
1 files changed, 8 insertions(+), 12 deletions(-)
diff --git a/src/pages/routingInspection/index.vue b/src/pages/routingInspection/index.vue
index 4e9a33a..7979244 100644
--- a/src/pages/routingInspection/index.vue
+++ b/src/pages/routingInspection/index.vue
@@ -10,17 +10,14 @@
</view>
</wd-col>
</wd-row>
- <wd-tabs v-model="tab" auto-line-width slidable="always" map-num>
- <wd-tab
- v-for="(item, index) in patrolList"
+ <wd-tabs v-model="tab" auto-line-width slidable="always" :map-num="patrolList.length">
+ <wd-tab
+ v-for="(item, index) in patrolList"
:key="index"
:title="`${item.deviceModel}锛堝緟妫�鏌�${item.pendingNum}鏉★級`"
class="tab_bg"
>
- <ProductList
- :api="RoutingInspectionApi.getInspectListByPatrol"
- :ProList="item"
- />
+ <ProductList :api="RoutingInspectionApi.getInspectListByPatrol" :ProList="item" />
</wd-tab>
</wd-tabs>
<Scan ref="scanRef" emitName="scan" />
@@ -42,8 +39,7 @@
const userInfo: any = computed(() => userStore.userInfo);
const toast = useToast();
const tab = ref<number>(0);
-const patrolList = ref<any[]>([]);// 宸℃璁惧鍒楄〃鏁版嵁
-
+const patrolList = ref<any[]>([]); // 宸℃璁惧鍒楄〃鏁版嵁
const handlePatrolData = (index: number, count: number) => {
// 鍙互鍦ㄨ繖閲屾洿鏂扮壒瀹氬贰妫�璁惧鐨勫緟妫�鏌ユ暟閲�
@@ -74,9 +70,9 @@
type: "宸℃",
data: {
total: 0,
- records: []
- }
- }
+ records: [],
+ },
+ },
};
};
};
--
Gitblit v1.9.3