From 072227ec43346c50c93cda3bf21c346f463eb551 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期四, 19 十月 2023 22:28:56 +0800
Subject: [PATCH] 2023-10-19

---
 src/tabviews/custom/components/share/normalTable/index.jsx |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/tabviews/custom/components/share/normalTable/index.jsx b/src/tabviews/custom/components/share/normalTable/index.jsx
index be531d2..01f6363 100644
--- a/src/tabviews/custom/components/share/normalTable/index.jsx
+++ b/src/tabviews/custom/components/share/normalTable/index.jsx
@@ -502,13 +502,15 @@
   
             if (item.field) {
               orderfields[item.uuid] = item.field
+            } else if (item.sortField) {
+              orderfields[item.uuid] = item.sortField
             }
   
             cell = {
               align: item.Align,
               dataIndex: item.uuid,
               title: item.label,
-              sorter: item.field && item.IsSort === 'true',
+              sorter: (item.field || item.sortField) && item.IsSort === 'true',
               width: item.Width || 120,
               onCell: record => ({
                 record,

--
Gitblit v1.8.0