From 6b35989783d91899169f89e21a7d3734d8cadc1d Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期日, 04 一月 2026 15:19:54 +0800
Subject: [PATCH] 1.海川开心
---
src/views/qualityManagement/processInspection/components/filesDia.vue | 28 ++++++++++++----------------
1 files changed, 12 insertions(+), 16 deletions(-)
diff --git a/src/views/qualityManagement/processInspection/components/filesDia.vue b/src/views/qualityManagement/processInspection/components/filesDia.vue
index fb47850..8b7dd2e 100644
--- a/src/views/qualityManagement/processInspection/components/filesDia.vue
+++ b/src/views/qualityManagement/processInspection/components/filesDia.vue
@@ -4,6 +4,7 @@
v-model="dialogFormVisible"
title="涓婁紶闄勪欢"
width="50%"
+ draggable
@close="closeDia"
>
<div style="margin-bottom: 10px;text-align: right">
@@ -30,16 +31,10 @@
:isSelection="true"
@selection-change="handleSelectionChange"
height="500"
+ :page="page"
+ @pagination="pagination"
>
</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>
@@ -60,7 +55,6 @@
qualityInspectFileDel,
qualityInspectFileListPage
} from "@/api/qualityManagement/qualityInspectFile.js";
-import Pagination from "@/components/PIMTable/Pagination.vue";
const { proxy } = getCurrentInstance()
const emit = defineEmits(['close'])
@@ -98,6 +92,7 @@
const page = reactive({
current: 1,
size: 100,
+ total: 0
});
const total = ref(0);
const tableData = ref([]);
@@ -114,17 +109,18 @@
currentId.value = row.id;
getList()
}
-const paginationSearch = (obj) => {
+
+const getList = () => {
+ qualityInspectFileListPage({inspectId: currentId.value}).then(res => {
+ tableData.value = res.data.records;
+ page.total = res.data.total;
+ })
+}
+const pagination = (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;
- })
-}
// 琛ㄦ牸閫夋嫨鏁版嵁
const handleSelectionChange = (selection) => {
selectedRows.value = selection;
--
Gitblit v1.9.3