| src/views/Home/HomeLeft/MachineNestList.vue | ●●●●● patch | view | raw | blame | history | |
| src/views/Home/HomeLeft/OverviewNext.vue | ●●●●● patch | view | raw | blame | history | |
| src/views/TaskManage/TaskTop/TaskTime.vue | ●●●●● patch | view | raw | blame | history |
src/views/Home/HomeLeft/MachineNestList.vue
@@ -5,13 +5,17 @@ <div class="machine-nest-list"> <MachineNestTotal @searchNickName="handleSearch" /> <div class="content-wrapper"> <div <!-- <div class="table-list" v-if="tableList.length > 0" infinite-scroll-distance="6" v-infinite-scroll="loadMore" :infinite-scroll-disabled="busy" infinite-scroll-immediate="true" > --> <div class="table-list" v-if="tableList.length > 0" > <div :class="[index % 2 === 1 ? 'table-itemeven' : 'table-item']" @@ -73,7 +77,7 @@ // 分页参数 const pageParams = ref({ current: 1, size: 8, size: 99, total: 0, }) @@ -90,7 +94,7 @@ if (res.data.code !== 0) return if (res.data.data.records.length === 0) return (isMore.value = false) // pageParams.value.current += 1 pageParams.value.size += 8 // pageParams.value.size += 8 tableList.value = res.data.data.records;// [...tableList.value, ...res.data.data.records] busy.value = false }) src/views/Home/HomeLeft/OverviewNext.vue
@@ -8,14 +8,17 @@ <div class="name">机巢名称</div> <div class="status">机巢状态</div> </div> <div <!-- <div class="table-body" v-if="tableList.length > 0" infinite-scroll-distance="6" v-infinite-scroll="loadMore" :infinite-scroll-disabled="busy" infinite-scroll-immediate="true" > > --> <div class="table-body" v-if="tableList.length > 0"> <div class="table-item" :class="[index % 2 === 1 ? '' : 'table-item-odd']" @@ -66,7 +69,7 @@ // 分页参数 const pageParams = ref({ current: 1, size: 5, size: 99, total: 0, }) // 机巢列表 @@ -82,24 +85,24 @@ if (res.data.code !== 0) return if (res.data.data.records.length === 0) return (isMore.value = false) // pageParams.value.current += 1 pageParams.value.size += 5; // pageParams.value.size += 5; tableList.value = res.data.data.records;// [...tableList.value, ...res.data.data.records] busy.value = false }) } // 加载更多数据 const loadMore = async () => { busy.value = true if (!isMore.value) return getTableList() } // const loadMore = async () => { // busy.value = true // if (!isMore.value) return // getTableList() // } // 搜索数据 const handleSearch = name => { searchText.value = name pageParams.value.current = 1 pageParams.value.size = 5; // pageParams.value.size = 5; tableList.value = [] isMore.value = true getTableList() src/views/TaskManage/TaskTop/TaskTime.vue
@@ -107,7 +107,6 @@ // 添加监听 watch(() => store.state.task.taskSearchParams, (newVal) => { console.log(newVal, '33333'); if (newVal) { getJobNumBar(newVal); (newVal);