| | |
| | | processRouteTempList, |
| | | confirmProcessRoute, |
| | | } from "@/api/basicData/processRoute"; |
| | | import { throttle } from "@/utils/throttle"; |
| | | import HxlhTable from "@/components/HxlhTable"; |
| | | import { getToken } from "@/utils/auth"; |
| | | import { ref } from "vue"; |
| | |
| | | daterangeIntegrationDay.value[1]; |
| | | } |
| | | |
| | | const response = await listProcessRoute(queryParams.value) |
| | | // processRouteList.value = response.rows; |
| | | if(processRouteList.value.length < queryParams.value.pageSize){ |
| | | hasMore.value = false; |
| | | processRouteList.value = response.rows |
| | | }else{ |
| | | processRouteList.value = [...processRouteList.value,...response.rows]; |
| | | } |
| | | |
| | | // total.value = response.total; |
| | | loading.value = false; |
| | | |
| | | const response = await listProcessRoute(queryParams.value); |
| | | // processRouteList.value = response.rows; |
| | | if (processRouteList.value.length < queryParams.value.pageSize) { |
| | | hasMore.value = false; |
| | | processRouteList.value = response.rows; |
| | | } else { |
| | | processRouteList.value = [...processRouteList.value, ...response.rows]; |
| | | } |
| | | |
| | | // total.value = response.total; |
| | | loading.value = false; |
| | | } |
| | | // async function loadData() { |
| | | // try { |
| | |
| | | // console.error('Error fetching data:', error); |
| | | // } |
| | | // } |
| | | function handleAutoLoadMore(){ |
| | | getList(); |
| | | const throttledScroll = throttle(() => { |
| | | queryParams.value.pageNum++; |
| | | getList(); |
| | | console.log("1111") |
| | | }, 200); |
| | | function handleAutoLoadMore() { |
| | | throttledScroll() |
| | | } |
| | | // 取消按钮 |
| | | function cancel() { |