From a7e6761ba0cfccdf33ed552eb2d3b783c8e4ab4a Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Wed, 16 Apr 2025 20:49:12 +0800
Subject: [PATCH] feat:事件弹窗显示调整

---
 src/views/Home/HomeLeft/OverviewNext.vue |   29 +++++++++++++++++------------
 1 files changed, 17 insertions(+), 12 deletions(-)

diff --git a/src/views/Home/HomeLeft/OverviewNext.vue b/src/views/Home/HomeLeft/OverviewNext.vue
index da35cf6..a1e4e07 100644
--- a/src/views/Home/HomeLeft/OverviewNext.vue
+++ b/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,
 })
 // 机巢列表
@@ -81,23 +84,25 @@
 	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 += 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;
 	tableList.value = []
 	isMore.value = true
 	getTableList()
@@ -205,12 +210,12 @@
 				cursor: pointer;
 			}
 			.active {
-				color: #8effac;
+				color: #ffa768;
 				background: linear-gradient(90deg, rgba(12, 45, 92, 1) 0%, #154671 50%, rgba(12, 45, 92, 1) 100%),
 					linear-gradient(90deg, rgba(12, 45, 92, 1) 0%, rgba(12, 45, 92, 1) 50%, rgba(12, 45, 92, 1) 100%);
 			}
 			.idle-active {
-				color: #ffa768;
+				color: #8effac;
 			}
 			.imageicon {
 				object-fit: cover;

--
Gitblit v1.9.3