From 2a97deaa6deb2b5e94b2edba33a3e885cab4892b Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期一, 22 十二月 2025 17:11:21 +0800
Subject: [PATCH] 1.海川开心-设备保养添加定时任务 2.海川开心-销售管理、采购管理展示字段修改

---
 src/views/equipmentManagement/inspectionManagement/index.vue |   25 +++++++++++--------------
 1 files changed, 11 insertions(+), 14 deletions(-)

diff --git a/src/views/equipmentManagement/inspectionManagement/index.vue b/src/views/equipmentManagement/inspectionManagement/index.vue
index 2ebdf44..381fc69 100644
--- a/src/views/equipmentManagement/inspectionManagement/index.vue
+++ b/src/views/equipmentManagement/inspectionManagement/index.vue
@@ -41,6 +41,12 @@
 										:is-selection="true"
 										:border="true"
 										:table-style="{ width: '100%', height: 'calc(100vh - 23em)' }"
+										:page="{
+          current: pageNum,
+          size: pageSize,
+          total: total,
+        }"
+										@pagination="pagination"
 					>
 						<template #inspector="{ row }">
 							<div class="person-tags">
@@ -62,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>
@@ -131,12 +129,12 @@
 		prop: "frequencyType",
 		label: "棰戞",
 		minWidth: 150,
-		formatter: (_, __, val) => ({
+		formatData: (cell) => ({
 			DAILY: "姣忔棩",
 			WEEKLY: "姣忓懆",
 			MONTHLY: "姣忔湀",
 			QUARTERLY: "瀛e害"
-		}[val] || "")
+		}[cell] || "")
 	},
 	{
 		prop: "frequencyDetail",
@@ -221,10 +219,9 @@
 	pageSize.value = 10;
 	getList();
 };
-// 鍒嗛〉澶勭悊
-const handlePagination = (val) => {
-	pageNum.value = val.page;
-	pageSize.value = val.size;
+const pagination = (obj) => {
+	pageNum.value = obj.page;
+	pageSize.value = obj.limit;
 	getList();
 };
 // 鑾峰彇鍒楄〃鏁版嵁

--
Gitblit v1.9.3