bug:过去超时完成的巡检可以查看信息

This commit is contained in:
Zy
2026-09-04 16:10:14 +08:00
parent 0a68226c3b
commit ca1f87dc1a
2 changed files with 3 additions and 2 deletions

View File

@@ -163,9 +163,10 @@ function handleChangeTime(event: string) {
getlist()
}
const isAllowTaskStatus = ['超时完成', '已完成']
function handleTap(ite) {
const today = parseTime(new Date(), '{m}月{d}日')
if (today !== showDate.value && ite.taskStatus !== '已完成') {
if (today !== showDate.value && !isAllowTaskStatus.includes(ite.taskStatus)) {
return
}

View File

@@ -37,7 +37,7 @@
>
<view class="housepath flex items-center flex-1">
<radio color="#4d5dfa" :value="item.houseId" />
<text class="address">{{ item.addressCn ?? item.addressHyphen }}</text>
<text class="address">{{ item.addressHyphen ?? item.addressCn }}</text>
</view>
<view class="username">{{ item.residentName }}</view>
</view>