From 763dac9a4b0ffcf72cc34ef436a7b29d28683cc0 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期五, 16 一月 2026 15:17:13 +0800
Subject: [PATCH] 金鹰黄金 1.巡检管理分页bug修改

---
 src/views/equipmentManagement/inspectionManagement/index.vue |   42 +++++++++++++++++++++++++++++++++---------
 1 files changed, 33 insertions(+), 9 deletions(-)

diff --git a/src/views/equipmentManagement/inspectionManagement/index.vue b/src/views/equipmentManagement/inspectionManagement/index.vue
index 74886b2..0130056 100644
--- a/src/views/equipmentManagement/inspectionManagement/index.vue
+++ b/src/views/equipmentManagement/inspectionManagement/index.vue
@@ -26,7 +26,10 @@
         <el-space v-if="activeRadio !== 'task'">
           <el-button type="primary" :icon="Plus" @click="handleAdd(undefined)">鏂板缓</el-button>
           <el-button type="danger" :icon="Delete" @click="handleDelete">鍒犻櫎</el-button>
-          <!-- <el-button type="info" plain :icon="Download">瀵煎嚭</el-button> -->
+          <el-button @click="handleOut">瀵煎嚭</el-button>
+        </el-space>
+        <el-space v-else>
+          <el-button @click="handleOut">瀵煎嚭</el-button>
         </el-space>
       </div>
       <div>
@@ -36,6 +39,12 @@
                   :column="tableColumns"
                   @selection-change="handleSelectionChange"
                   :is-selection="true"
+										:page="{
+          current: pageNum,
+          size: pageSize,
+          total: total,
+        }"
+										@pagination="handlePagination"
                   :border="true"
                   :table-style="{ width: '100%', height: 'calc(100vh - 23em)' }"
           >
@@ -59,14 +68,6 @@
           </template>
             </PIMTable>
         </div>
-        <pagination
-            v-if="total>0"
-            :page="pageNum"
-            :limit="pageSize"
-            :total="total"
-            @pagination="handlePagination"
-            :layout="'total, prev, pager, next, jumper'"
-        />
       </div>
     </el-card>
     <form-dia ref="formDia" @closeDia="handleQuery"></form-dia>
@@ -77,6 +78,7 @@
 <script setup>
 import { Delete, Plus } from "@element-plus/icons-vue";
 import { onMounted, ref, reactive, getCurrentInstance, nextTick } from "vue";
+import { ElMessageBox } from "element-plus";
 
 // 缁勪欢寮曞叆
 import Pagination from "@/components/Pagination/index.vue";
@@ -310,6 +312,28 @@
 const handleSelectionChange = (selection) => {
   selectedRows.value = selection;
 };
+
+// 瀵煎嚭
+const handleOut = () => {
+  ElMessageBox.confirm("閫変腑鐨勫唴瀹瑰皢琚鍑猴紝鏄惁纭瀵煎嚭锛�", "瀵煎嚭", {
+    confirmButtonText: "纭",
+    cancelButtonText: "鍙栨秷",
+    type: "warning",
+  })
+    .then(() => {
+      // 鏍规嵁褰撳墠閫変腑鐨勬爣绛鹃〉璋冪敤涓嶅悓鐨勫鍑烘帴鍙�
+      if (activeRadio.value === "taskManage") {
+        // 瀹氭椂浠诲姟绠$悊
+        proxy.download("/timingTask/export", {}, "瀹氭椂浠诲姟绠$悊.xlsx");
+      } else if (activeRadio.value === "task") {
+        // 瀹氭椂浠诲姟璁板綍
+        proxy.download("/inspectionTask/export", {}, "瀹氭椂浠诲姟璁板綍.xlsx");
+      }
+    })
+    .catch(() => {
+      proxy.$modal.msg("宸插彇娑�");
+    });
+};
 </script>
 
 <style scoped>

--
Gitblit v1.9.3