From b0fa15ec9c9dde96e423bc29cb4b605bb41502a2 Mon Sep 17 00:00:00 2001
From: yaowanxin <3588231647@qq.com>
Date: 星期一, 15 九月 2025 17:20:49 +0800
Subject: [PATCH] 企业通讯录管理页面,用印管理查询调整
---
src/views/qualityManagement/finalInspection/components/filesDia.vue | 30 +++++++++++++++++++++---------
1 files changed, 21 insertions(+), 9 deletions(-)
diff --git a/src/views/qualityManagement/finalInspection/components/filesDia.vue b/src/views/qualityManagement/finalInspection/components/filesDia.vue
index 008479c..66392f3 100644
--- a/src/views/qualityManagement/finalInspection/components/filesDia.vue
+++ b/src/views/qualityManagement/finalInspection/components/filesDia.vue
@@ -29,9 +29,17 @@
:tableLoading="tableLoading"
:isSelection="true"
@selection-change="handleSelectionChange"
- height="600"
+ height="500"
>
</PIMTable>
+ <pagination
+ style="margin: 10px 0"
+ v-show="total > 0"
+ @pagination="paginationSearch"
+ :total="total"
+ :page="page.current"
+ :limit="page.size"
+ />
<template #footer>
<div class="dialog-footer">
<el-button @click="closeDia">鍙栨秷</el-button>
@@ -57,6 +65,7 @@
qualityInspectFileDel,
qualityInspectFileListPage
} from "@/api/qualityManagement/qualityInspectFile.js";
+import Pagination from "@/components/PIMTable/Pagination.vue";
const { proxy } = getCurrentInstance()
const emit = defineEmits(['close'])
@@ -68,14 +77,6 @@
label: "鏂囦欢鍚嶇О",
prop: "name",
},
- // {
- // label: "涓婁紶浜�",
- // prop: "createUser",
- // },
- // {
- // label: "涓婁紶鏃堕棿",
- // prop: "createTime",
- // },
{
dataType: "action",
label: "鎿嶄綔",
@@ -91,6 +92,11 @@
],
},
]);
+const page = reactive({
+ current: 1,
+ size: 100,
+});
+const total = ref(0);
const tableData = ref([]);
const fileList = ref([]);
const tableLoading = ref(false);
@@ -105,9 +111,15 @@
currentId.value = row.id;
getList()
}
+const paginationSearch = (obj) => {
+ page.current = obj.page;
+ page.size = obj.limit;
+ getList();
+};
const getList = () => {
qualityInspectFileListPage({inspectId: currentId.value}).then(res => {
tableData.value = res.data.records;
+ total.value = res.data.total;
})
}
// 琛ㄦ牸閫夋嫨鏁版嵁
--
Gitblit v1.9.3