From 770b3b95cb550a99d0eef100b8290a62cacaf221 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期三, 22 二月 2023 13:16:49 +0800
Subject: [PATCH] 2023-02-22

---
 src/templates/zshare/modalform/modaleditable/index.jsx |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/templates/zshare/modalform/modaleditable/index.jsx b/src/templates/zshare/modalform/modaleditable/index.jsx
index 9edfdf9..5e84435 100644
--- a/src/templates/zshare/modalform/modaleditable/index.jsx
+++ b/src/templates/zshare/modalform/modaleditable/index.jsx
@@ -168,7 +168,7 @@
 
         if (col.dataIndex !== 'operation') {
           col.title = <div>
-            Value
+            {col.$title}
             <Popconfirm
               title={`纭畾鍒囨崲涓�${col.datatype === 'number' ? '鏂囨湰' : '鏁板��'}鍚楋紵`}
               overlayClassName="popover-confirm"
@@ -309,6 +309,7 @@
       fields = subFields.map(field => {
         return {
           title: transfield[field] || field,
+          $title: transfield[field] || field,
           dataIndex: field,
           editable: true,
           datatype: dataItem && typeof(dataItem[field]) === 'number' ? 'number' : 'string'
@@ -321,12 +322,14 @@
     let columns = [
       {
         title: 'Value',
+        $title: 'Value',
         dataIndex: 'Value',
         editable: true,
         datatype: dataItem && typeof(dataItem.Value) === 'number' ? 'number' : 'string'
       },
       {
         title: 'Text',
+        $title: 'Text',
         dataIndex: 'Text',
         editable: true,
         datatype: dataItem && typeof(dataItem.Text) === 'number' ? 'number' : 'string'
@@ -358,6 +361,7 @@
     if (type === 'link') {
       columns.unshift({
         title: 'ParentID',
+        $title: 'ParentID',
         dataIndex: 'ParentID',
         editable: true,
         datatype: dataItem && typeof(dataItem.ParentID) === 'number' ? 'number' : 'string'
@@ -368,7 +372,7 @@
       columns: columns.map(col => {
         if (col.dataIndex !== 'operation') {
           col.title = <div>
-            Value
+            {col.$title}
             <Popconfirm
               title={`纭畾鍒囨崲涓�${col.datatype === 'number' ? '鏂囨湰' : '鏁板��'}鍚楋紵`}
               overlayClassName="popover-confirm"

--
Gitblit v1.8.0