forked from drone/command-center-dashboard

chenyao
2025-04-14 c420904b303625bc3934263efbe93c1384a45874
src/views/Home/HomeLeft/MachineNestList.vue
@@ -83,14 +83,15 @@
const getTableList = () => {
   const params = {
      nickname: searchText.value,
      current: pageParams.value.current,
      current: 1,
      size: pageParams.value.size,
   }
   selectDevicePage(params).then(res => {
      if (res.data.code !== 0) return
      if (res.data.data.records.length === 0) return (isMore.value = false)
      pageParams.value.current += 1
      tableList.value = [...tableList.value, ...res.data.data.records]
      // pageParams.value.current += 1
      pageParams.value.size += 8
      tableList.value = res.data.data.records;// [...tableList.value, ...res.data.data.records]
      busy.value = false
   })
}
@@ -105,18 +106,6 @@
   searchText.value = name
   pageParams.value.current = 1
   tableList.value = []
   getTableList()
}
// 分页方法
const handleSizeChange = val => {
   pageParams.value.size = val
   pageParams.value.current = 1
   getTableList()
}
const handleCurrentChange = val => {
   pageParams.value.current = val
   getTableList()
}