巡检接口
This commit is contained in:
@@ -25,6 +25,7 @@
|
||||
scroll-y
|
||||
lower-threshold="160"
|
||||
@scrolltolower="scrolltolower"
|
||||
v-if="list.length > 0"
|
||||
>
|
||||
<view
|
||||
class="record_list_item"
|
||||
@@ -52,6 +53,9 @@
|
||||
</view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
<view class="nodata" v-else>
|
||||
<text>暂无数据</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
@@ -110,11 +114,12 @@ function getlist() {
|
||||
title: '加载中',
|
||||
mask: true
|
||||
})
|
||||
const { pageNum, pageSize, date } = queryParmas.value
|
||||
const { pageNum, pageSize, date, status } = queryParmas.value
|
||||
getInspectionList({
|
||||
pageSize,
|
||||
pageNum,
|
||||
date
|
||||
date,
|
||||
status
|
||||
})
|
||||
.then(res => {
|
||||
list.value = res.rows
|
||||
@@ -125,7 +130,6 @@ function getlist() {
|
||||
ite.itemNames.forEach(it => items.add(it))
|
||||
})
|
||||
item.itemslist = Array.from(items)
|
||||
console.log(item.itemslist)
|
||||
})
|
||||
hasMore.value = list.value.length < res.total
|
||||
total.value = res.total
|
||||
@@ -163,6 +167,7 @@ function scrolltolower() {
|
||||
}
|
||||
|
||||
function handleChangeTabs(val: number) {
|
||||
hasMore.value = true
|
||||
queryParmas.value.status = val
|
||||
queryParmas.value.pageNum = 1
|
||||
queryParmas.value.pageSize = 10
|
||||
@@ -177,7 +182,6 @@ function init() {
|
||||
|
||||
onShow(() => {
|
||||
hasMore.value = true
|
||||
console.log('show')
|
||||
init()
|
||||
})
|
||||
// 返回上一页
|
||||
|
||||
Reference in New Issue
Block a user