From 1392d8f3def2c21e7a6fc15cf3f68fc1056ec0b6 Mon Sep 17 00:00:00 2001
From: lyh <925863403@qq.com>
Date: 星期二, 29 七月 2025 19:01:20 +0800
Subject: [PATCH] 三不原则

---
 src/views/system/MdcEquipmentImplementLedger.vue |   32 ++++++++++++++++++++------------
 1 files changed, 20 insertions(+), 12 deletions(-)

diff --git a/src/views/system/MdcEquipmentImplementLedger.vue b/src/views/system/MdcEquipmentImplementLedger.vue
index ac4a53d..7c6c11b 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">
@@ -39,11 +39,11 @@
       <div class="table-operator" style="border-top: 5px">
         <a-button @click="handleAdd" type="primary" icon="plus">娣诲姞鍙拌处</a-button>
         <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader"
-                  :action="url.importExcelUrl"
+                  :action="importExcelUrl"
                   @change="handleImportExcel">
           <a-button type="primary" icon="import">瀵煎叆</a-button>
         </a-upload>
-        <!--<a-button type="primary" icon="download" @click="handleExportXls('MDC璁惧瀹炴柦鍙拌处')">瀵煎嚭</a-button>-->
+        <a-button type="primary" icon="download" @click="handleExportXls('MDC璁惧瀹炴柦鍙拌处')">瀵煎嚭</a-button>
         <a-dropdown v-if="selectedRowKeys.length > 0">
           <a-menu slot="overlay" @click="handleMenuClick">
             <a-menu-item key="1">
@@ -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>
@@ -143,11 +143,11 @@
 
   const columns = [
     { title: '鍏徃', dataIndex: 'companyName', key: 'companyName', align: 'center', width: 100 },
-    { title: '杞﹂棿', dataIndex: 'productionName', key: 'productionName', align: 'center', width: 100 },
-    { title: '宸ユ', dataIndex: 'sectionName', key: 'sectionName', align: 'center', width: 100 },
+    { title: '杞﹂棿', dataIndex: 'productionName', key: 'productionName', align: 'center', width: 120 },
+    { title: '宸ユ', dataIndex: 'sectionName', key: 'sectionName', align: 'center', width: 180 },
     { title: '璁惧缂栧彿', dataIndex: 'equipmentId', key: 'equipmentId', align: 'center', width: 100 },
     { title: '璁惧鍚嶇О', dataIndex: 'equipmentName', key: 'equipmentName', align: 'center', width: 100 },
-    { title: '璁惧鍨嬪彿', dataIndex: 'equipmentModel', key: 'equipmentModel', align: 'center', width: 100 },
+    { title: '璁惧鍨嬪彿', dataIndex: 'equipmentModel', key: 'equipmentModel', align: 'center', width: 150 },
     { title: '璁惧绯荤粺绫诲瀷', dataIndex: 'controlSystem', key: 'controlSystem', align: 'center', width: 150 },
     { title: '璁惧璐d换浜�', dataIndex: 'responsible', key: 'responsible', align: 'center', width: 150 },
     { title: '璁惧瀹夋斁浣嶇疆', dataIndex: 'equipmentPosition', key: 'equipmentPosition', align: 'center', width: 150 },
@@ -288,6 +288,11 @@
     created() {
       this.loadData()
     },
+    computed: {
+      importExcelUrl: function() {
+        return `${window._CONFIG['domianURL']}${this.url.importExcelUrl}`
+      }
+    },
     filters: {
       numFilter(value) {
         if (value) {
@@ -334,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