From 7470804a6c1616193f2cbfcd39cdedbb73c243f4 Mon Sep 17 00:00:00 2001
From: zhaowei <zhaowei>
Date: 星期一, 30 十二月 2024 16:40:17 +0800
Subject: [PATCH] MDC设备实施台账页面新增数据分页功能

---
 src/views/system/MdcEquipmentImplementLedger.vue |   23 +++++++++++++----------
 1 files changed, 13 insertions(+), 10 deletions(-)

diff --git a/src/views/system/MdcEquipmentImplementLedger.vue b/src/views/system/MdcEquipmentImplementLedger.vue
index ee88f6c..547e7b8 100644
--- a/src/views/system/MdcEquipmentImplementLedger.vue
+++ b/src/views/system/MdcEquipmentImplementLedger.vue
@@ -7,22 +7,22 @@
           <a-row :gutter="24">
             <a-col :md="4" :sm="4">
               <a-form-item label="杞﹂棿">
-                <a-input v-model="queryParam.productionName" allowClear></a-input>
+                <a-input v-model="queryParam.productionName" allowClear placeholder="璇疯緭鍏ヨ溅闂�"></a-input>
               </a-form-item>
             </a-col>
             <a-col :md="4" :sm="4">
               <a-form-item label="宸ユ">
-                <a-input v-model="queryParam.sectionName" allowClear></a-input>
+                <a-input v-model="queryParam.sectionName" allowClear placeholder="璇疯緭鍏ュ伐娈�"></a-input>
               </a-form-item>
             </a-col>
             <a-col :md="4" :sm="4">
               <a-form-item label="璁惧缂栧彿">
-                <a-input v-model="queryParam.equipmentId" allowClear></a-input>
+                <a-input v-model="queryParam.equipmentId" allowClear placeholder="璇疯緭鍏ヨ澶囩紪鍙�"></a-input>
               </a-form-item>
             </a-col>
             <a-col :md="4" :sm="4">
               <a-form-item label="璁惧鍚嶇О">
-                <a-input v-model="queryParam.equipmentName" allowClear></a-input>
+                <a-input v-model="queryParam.equipmentName" allowClear placeholder="璇疯緭鍏ヨ澶囧悕绉�"></a-input>
               </a-form-item>
             </a-col>
             <a-col :lg="5" :md="5" :sm="5" :xs="5">
@@ -58,8 +58,8 @@
         </a-dropdown>
       </div>
 
-      <a-table :columns="columns" :data-source="dataList" bordered :pagination="false" :scroll="{x:'max-content'}"
-               :expandRowByClick="true"
+      <a-table :columns="columns" :data-source="dataList" bordered :pagination="ipagination" :scroll="{x:'max-content'}"
+               :expandRowByClick="true" @change="handleTableChange"
                rowKey="id" @expand="handleExpandChange" :loading="outerDataLoading"
       >
         <span slot="isMdcInstall" slot-scope="text">{{text | formatIsInstallAndStatus}}</span>
@@ -289,9 +289,9 @@
       this.loadData()
     },
     computed: {
-      importExcelUrl: function () {
-        return `${window._CONFIG['domianURL']}${this.url.importExcelUrl}`;
-      },
+      importExcelUrl: function() {
+        return `${window._CONFIG['domianURL']}${this.url.importExcelUrl}`
+      }
     },
     filters: {
       numFilter(value) {
@@ -339,10 +339,13 @@
       loadData() {
         this.outerDataLoading = true
         this.dataList = []
-        getAction(this.url.mdcImplementLedgersList, this.queryParam).then(res => {
+        const params = this.getQueryParams()
+        getAction(this.url.mdcImplementLedgersList, params).then(res => {
           if (res.success) {
             this.dataList = res.result.records
             this.hasRequestAlarmCodeList = []
+            if (res.result.total) this.ipagination.total = res.result.total
+            else this.ipagination.total = 0
           }
         }).finally(() => {
           this.outerDataLoading = false

--
Gitblit v1.9.3