From bb8dda927e031ad0dea7a126b9e62ae76ace0f47 Mon Sep 17 00:00:00 2001
From: 张含笑 <zhx18749296735@163.com>
Date: Tue, 02 Sep 2025 14:24:24 +0800
Subject: [PATCH] feat:调整

---
 src/views/resource/components/spotDetails.vue |   18 +++++++++++-------
 src/api/patchManagement/index.js              |    7 -------
 src/views/resource/patchManagement.vue        |    1 +
 3 files changed, 12 insertions(+), 14 deletions(-)

diff --git a/src/api/patchManagement/index.js b/src/api/patchManagement/index.js
index 059d18f..965dae5 100644
--- a/src/api/patchManagement/index.js
+++ b/src/api/patchManagement/index.js
@@ -73,13 +73,6 @@
 	})
 }
 // 导出
-// export const exportExcel = ids => {
-// 	return request({
-// 		url: `/drone-device-core/patches/api/v1/Patches/getExcel?ids=${ids}`,
-// 		method: 'get',
-// 		responseType: 'blob',
-// 	})
-// }
 export const exportExcel = data => {
 	return request({
 		url: `/drone-device-core/patches/api/v1/Patches/exportExcel`,
diff --git a/src/views/resource/components/spotDetails.vue b/src/views/resource/components/spotDetails.vue
index 16c8ba5..6406576 100644
--- a/src/views/resource/components/spotDetails.vue
+++ b/src/views/resource/components/spotDetails.vue
@@ -89,7 +89,8 @@
                 :current-page="params.page"
                 :page-size="params.pageSize"
                 background
-                layout="prev, pager, next"
+                layout="prev, pager, next, ..."
+                :pager-count="3"
                 prev-text="上一页"
                 next-text="下一页"
                 :total="total"
@@ -695,13 +696,14 @@
     background: transparent !important;
   }
   :deep(.el-pagination) {
+  
     .btn-prev,
     .btn-next {
-      padding: 5px 13px;
+      padding: 5px 6px;
     }
   }
   :deep(.el-pager li) {
-    margin: 0 0.4rem;
+    margin: 0 0.1rem;
     background: rgba(34, 34, 34, 0.9) !important;
     box-shadow: 0px 4px 72px 0px rgba(0, 0, 0, 0.25) !important;
     border-radius: 8px 8px 8px 8px !important;
@@ -720,18 +722,20 @@
     border-radius: 8px 8px 8px 8px !important;
   }
   .pagination-container {
-    margin-top: auto;
-    padding: 10px 0;
+  margin-top: auto;
+     padding: 8px 5px !important;
     background: white;
     display: flex;
     justify-content: center;
-    height: 20px;
+    height: auto; // 取消固定高度20px,避免内容被截断
     margin: 24px 0 14px 0;
+    width: 100%; 
+     box-sizing: border-box
   }
 }
 
 .el-table {
-  flex: 1; /* 让表格占据剩余空间 */
+  flex: 1; 
   overflow: auto;
 }
 .btnGroups {
diff --git a/src/views/resource/patchManagement.vue b/src/views/resource/patchManagement.vue
index f18babe..38a021e 100644
--- a/src/views/resource/patchManagement.vue
+++ b/src/views/resource/patchManagement.vue
@@ -136,6 +136,7 @@
 const query = ref({});
 const loading = ref(true);
 const box = ref(false);
+
 const page = ref({
   pageSize: 20,
   currentPage: 1,

--
Gitblit v1.9.3