From c420904b303625bc3934263efbe93c1384a45874 Mon Sep 17 00:00:00 2001
From: chenyao <1219716595@qq.com>
Date: Mon, 14 Apr 2025 18:38:31 +0800
Subject: [PATCH] feat:更新机巢列表数据传参

---
 src/views/Home/HomeLeft/MachineNestList.vue |   19 ++++---------------
 1 files changed, 4 insertions(+), 15 deletions(-)

diff --git a/src/views/Home/HomeLeft/MachineNestList.vue b/src/views/Home/HomeLeft/MachineNestList.vue
index e9afa18..016fb64 100644
--- a/src/views/Home/HomeLeft/MachineNestList.vue
+++ b/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()
 }
 

--
Gitblit v1.9.3