From 4cd66de5c36ab7c72272abe1406995679c643f14 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期五, 15 八月 2025 11:40:09 +0800
Subject: [PATCH] 1.零件绑定分页修改

---
 src/views/structural/capabilityAndLaboratory/capabilityComponents/bindPartDialog.vue |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/src/views/structural/capabilityAndLaboratory/capabilityComponents/bindPartDialog.vue b/src/views/structural/capabilityAndLaboratory/capabilityComponents/bindPartDialog.vue
index bf2716e..af252b7 100644
--- a/src/views/structural/capabilityAndLaboratory/capabilityComponents/bindPartDialog.vue
+++ b/src/views/structural/capabilityAndLaboratory/capabilityComponents/bindPartDialog.vue
@@ -1,7 +1,7 @@
 <template>
   <div>
     <el-dialog title="闆朵欢缁戝畾" :visible.sync="isShow" width="800px" @close="$emit('closeBindPartDialog')">
-      <lims-table :tableData="tableData" :column="column" height="460"
+      <lims-table :tableData="tableData" :column="column" height="460"  @pagination="pagination"
                   :page="page" :tableLoading="tableLoading"></lims-table>
       <span slot="footer" class="dialog-footer">
         <el-button @click="$emit('closeBindPartDialog')">鍙� 娑�</el-button>
@@ -151,11 +151,15 @@
   },
   // 鏂规硶闆嗗悎
   methods: {
+    pagination(page) {
+      this.page.size = page.limit
+      this.getList()
+    },
     getList() {
       this.tableLoading = true
       // 鏍规嵁绫诲瀷鍒ゆ柇鏄楠屽璞¢浂浠剁粦瀹氳繕鏄骇鍝佺淮鎶ら浂浠剁粦瀹�
       if (this.type === 0) {
-        selectByTestObjectId({testObjectId: this.currentRow.id}).then(res => {
+        selectByTestObjectId({testObjectId: this.currentRow.id, ...this.page}).then(res => {
           this.tableLoading = false
           if (res.code === 200) {
             this.tableData = res.data.records
@@ -165,7 +169,7 @@
           this.tableLoading = false
         })
       } else {
-        selectByProductId({productId: this.currentRow.id}).then(res => {
+        selectByProductId({productId: this.currentRow.id, ...this.page}).then(res => {
           this.tableLoading = false
           if (res.code === 200) {
             this.tableData = res.data.records

--
Gitblit v1.9.3