巡检跳转2

This commit is contained in:
Zy
2026-08-29 17:20:57 +08:00
parent 6196232715
commit 9ea099b509

View File

@@ -91,11 +91,11 @@
<text class="num">{{ allCount }}</text> <text class="num">{{ allCount }}</text>
<text class="label">全部巡检</text> <text class="label">全部巡检</text>
</view> </view>
<view class="statistics-item" @click="goToDaysInspection"> <view class="statistics-item" @click="goToDaysInspection(0)">
<text class="num">{{ pendingCount }}</text> <text class="num">{{ pendingCount }}</text>
<text class="label">待巡检</text> <text class="label">待巡检</text>
</view> </view>
<view class="statistics-item"> <view class="statistics-item" @click="goToDaysInspection(1)">
<text class="num">{{ InspectedCount }}</text> <text class="num">{{ InspectedCount }}</text>
<text class="label">已巡检 </text> <text class="label">已巡检 </text>
</view> </view>
@@ -199,9 +199,9 @@ const goToMyTicket = () => {
}) })
} }
// 跳转到 今日巡检 // 跳转到 今日巡检
const goToDaysInspection = () => { const goToDaysInspection = type => {
uni.navigateTo({ uni.navigateTo({
url: '/pageSubPack/inspection/toDays_inscpection?type=0' url: '/pageSubPack/inspection/toDays_inscpection?type=' + type
}) })
} }
// 跳转到 巡检记录 // 跳转到 巡检记录