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 | 31 +++++++++++++++++-------------- 1 files changed, 17 insertions(+), 14 deletions(-) diff --git a/src/views/system/MdcEquipmentImplementLedger.vue b/src/views/system/MdcEquipmentImplementLedger.vue index ee88f6c..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"> @@ -43,7 +43,7 @@ @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 }, @@ -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