6/16,同步

This commit is contained in:
Zy
2026-06-16 14:11:17 +08:00
parent 3a91b14fce
commit 7c5497d229
13 changed files with 230 additions and 188 deletions

View File

@@ -80,6 +80,7 @@
v-for="(it, ind) in ite.files"
:key="ind"
:src="it"
@tap="handlePrivew(ite.files, index)"
mode="scaleToFill"
></image>
</view>
@@ -94,7 +95,7 @@
</view>
</template>
<script setup lang="ts">
<script setup>
import { ref } from 'vue'
import { getInspectionMain } from '@/api/insepction.js'
import { onLoad } from '@dcloudio/uni-app'
@@ -157,6 +158,15 @@ onLoad(options => {
taskid.value = options.id
init()
})
/**预览图片*/
function handlePrivew(lists, index) {
if (lists.length <= 0) return
uni.previewImage({
urls: lists,
count: index
})
}
</script>
<style lang="scss" scoped>

View File

@@ -134,8 +134,8 @@ function getlist() {
})
item.itemslist = Array.from(items)
})
hasMore.value = list.value.length < res.total
total.value = res.total
hasMore.value = list.value.length < res.total
})
.catch(() => {
uni.showToast({
@@ -156,7 +156,7 @@ function handleChangeTime(event: string) {
function handleTap(ite) {
const today = parseTime(new Date(), '{m}月{d}日')
if (today !== showDate.value) {
if (today !== showDate.value && ite.taskStatus !== '已完成') {
return
}

View File

@@ -119,8 +119,8 @@ function getlist() {
item.itemslist = Array.from(items)
})
list.value = res.rows
hasMore.value = list.value.length < res.total
total.value = res.total
hasMore.value = list.value.length < res.total
})
.catch(() => {
uni.showToast({