From 29cf72a55dccc11f7c147c4caf8e070ad6079bbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E5=BD=A6=E6=B3=BD?= Date: Thu, 9 Mar 2023 09:39:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E6=A1=A3=E5=B7=A5=E5=85=B7-=E8=99=9A?= =?UTF-8?q?=E6=8B=9F=E8=AE=A4=E8=AF=81=E6=B8=85=E5=8D=95=E8=AF=A6=E6=83=85?= =?UTF-8?q?-=E8=AF=B7=E6=B1=82=E5=8F=82=E6=95=B0=E5=9F=BA=E7=A1=80?= =?UTF-8?q?=E8=A1=A8id(=E6=94=B9)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../certificationListMaintenance.vue | 22 ++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/jero-web/src/views/virtualAuthenticationList/virtualAuthenticationListDesign/certificationListMaintenance.vue b/jero-web/src/views/virtualAuthenticationList/virtualAuthenticationListDesign/certificationListMaintenance.vue index d1c74442c..5e9b8ffbe 100644 --- a/jero-web/src/views/virtualAuthenticationList/virtualAuthenticationListDesign/certificationListMaintenance.vue +++ b/jero-web/src/views/virtualAuthenticationList/virtualAuthenticationListDesign/certificationListMaintenance.vue @@ -187,6 +187,7 @@ :scroll="{x: '100%',y:'calc(100vh - 356px)'}" rowKey="id" :data-source="dataSource" + @change="tableOnChange" :row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }" :columns="columns"> @@ -520,13 +521,32 @@ export default { editModelList() { this.getList() }, + tableOnChange(pagination, filters, sorter) { + this.orderBy = sorter.order == 'ascend' ? '1' : '2' + if(sorter.columnKey == 'shi4Yong4Fan4Wei2_dictText'){ + this.orderByField = 'shi4Yong4Fan4Wei2' + } else if(sorter.columnKey == 'state_dictText') { + this.orderByField = 'state' + } else if(sorter.columnKey == 'xin1Che1Xing2Shi2Shi1Ri4Qi1') { + this.orderByField = 'xin1_che1_xing2_shi2_shi1_ri4_qi1' + } else if(sorter.columnKey == 'implementTime') { + this.orderByField = 'implement_time' + } else if(sorter.columnKey == 'dutyTerritory_dictText') { + this.orderByField = 'dutyTerritory' + } else if(sorter.columnKey == 'attestationRank_dictText') { + this.orderByField = 'attestationRank' + } else{ + this.orderByField = sorter.columnKey + } + this.getList() + }, getList() { let query = { ...this.queryParam, ...this.queryParamQuery, orderBy: this.orderBy, orderByField: this.orderByField, - dummyInventoryBaseId: this.$route.query.id + authDummyInventoryBaseId: this.$route.query.id } this.loading = true getAction(this.url.list,query).then((res) => {