6/16,同步
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
|
||||
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user