From e024b74803e99f65c0f0434f0b9d33d561fa282d Mon Sep 17 00:00:00 2001 From: wangmingyong Date: Tue, 14 Jul 2026 16:38:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=B6=E9=97=B4=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../report/statistics_enterprise/index.vue | 24 +++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/zdxt-web-client/zdxt-admin-plus-ui/src/views/efcode/report/statistics_enterprise/index.vue b/zdxt-web-client/zdxt-admin-plus-ui/src/views/efcode/report/statistics_enterprise/index.vue index 28435240..d95e52bd 100644 --- a/zdxt-web-client/zdxt-admin-plus-ui/src/views/efcode/report/statistics_enterprise/index.vue +++ b/zdxt-web-client/zdxt-admin-plus-ui/src/views/efcode/report/statistics_enterprise/index.vue @@ -265,6 +265,26 @@ const handleBack = () => { } }; +/** 排序处理 */ +const handleSortChange = (sortObj: { prop: string; order: 'ascending' | 'descending' | null }) => { + if (!sortObj.prop || !sortObj.order) return; + + const fieldMap: Record = { + establishmentTime: 'establishmentTime', + operatingTerm: 'operatingTerm' + }; + + const field = fieldMap[sortObj.prop]; + if (!field) return; + + detailList.value.sort((a, b) => { + const valA = a[field] || ''; + const valB = b[field] || ''; + return sortObj.order === 'ascending' ? valA.localeCompare(valB) : valB.localeCompare(valA); + }); + detailPageNum.value = 1; +}; + /** Tab1 导出 */ const handleExportArea = async () => { try { @@ -429,7 +449,7 @@ const handleExportType = async () => { - + @@ -445,7 +465,7 @@ const handleExportType = async () => { - +