| | |
| | | <HxlhTable |
| | | style="width: 100%" |
| | | :columns="columns" |
| | | :showOverflow="true" |
| | | :virtualYConfig="virtualYConfig" |
| | | :data="processRouteList" |
| | | :loading="loading" |
| | |
| | | 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"; |
| | | import { ElMessage } from "element-plus"; |
| | | // import { ElMessage } from "element-plus"; |
| | | const { proxy } = getCurrentInstance(); |
| | | |
| | | const processRouteList = ref([]); |
| | |
| | | const title = ref(""); |
| | | const daterangeIntegrationDay = ref([]); |
| | | //弹窗相关 |
| | | const height = ref(document.documentElement.clientHeight - 260 + "px;"); |
| | | const height = ref(document.documentElement.clientHeight - 230 + "px;"); |
| | | const isVisible = ref(false); |
| | | const isError = ref(false); |
| | | const planned = ref(true); |
| | |
| | | const data = reactive({ |
| | | form: {}, |
| | | queryParams: { |
| | | pageNum: 0, |
| | | pageSize: 10, |
| | | pageNum: 1, |
| | | pageSize: 100, |
| | | itemNo: null, |
| | | integrationDay: null, |
| | | }, |
| | |
| | | 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() { |