From a70940450c021a47e69abdf8fa8f7f98594601cc Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期五, 13 十二月 2019 17:36:54 +0800
Subject: [PATCH] 2019-12-13

---
 src/templates/comtableconfig/index.jsx |   11 +++--------
 1 files changed, 3 insertions(+), 8 deletions(-)

diff --git a/src/templates/comtableconfig/index.jsx b/src/templates/comtableconfig/index.jsx
index fc39bd3..7ef6d02 100644
--- a/src/templates/comtableconfig/index.jsx
+++ b/src/templates/comtableconfig/index.jsx
@@ -147,6 +147,9 @@
           }, {
             MenuID: 'newpage',
             text: this.state.dict['header.form.newpage']
+          }, {
+            MenuID: 'currenttab',
+            text: this.state.dict['header.form.currenttab']
           }]
         }
       ]
@@ -1742,8 +1745,6 @@
       })
 
       let _columns = [...columnsMap.values()]
-      let indexes = items.map(card => {return card.id})
-      let id = Math.max(...indexes, 0) + 1
 
       _columns.forEach(item => {
         if (item.selected) {
@@ -1760,7 +1761,6 @@
           }
 
           let newcard = {
-            id: id,
             uuid: Utils.getuuid(),
             label: item.label,
             field: item.field,
@@ -1780,7 +1780,6 @@
           }
 
           items.push(newcard)
-          id++
         }
       })
     } else {
@@ -1798,13 +1797,10 @@
       })
 
       let _columns = [...columnsMap.values()]
-      let indexes = items.map(card => {return card.id})
-      let id = Math.max(...indexes, 0)
 
       _columns.forEach(item => {
         if (item.selected) {
           let newcard = {
-            id: id,
             uuid: Utils.getuuid(),
             Align: 'left',
             label: item.label,
@@ -1816,7 +1812,6 @@
           }
 
           items.push(newcard)
-          id++
         }
       })
     }

--
Gitblit v1.8.0