From 1dfd49b103e721f9bb63fd4d472b6fcc225d94a1 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期四, 12 三月 2020 18:42:20 +0800
Subject: [PATCH] 2020-03-12

---
 src/templates/formtabconfig/index.jsx |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/src/templates/formtabconfig/index.jsx b/src/templates/formtabconfig/index.jsx
index ee46115..7b93ee2 100644
--- a/src/templates/formtabconfig/index.jsx
+++ b/src/templates/formtabconfig/index.jsx
@@ -1472,6 +1472,8 @@
           return
         }
   
+        let _sort = 0 // 鎸夐挳鍙婃爣绛炬帓搴�
+
         let btnParam = { // 娣诲姞鑿滃崟鎸夐挳
           func: 'sPC_Button_AddUpt',
           Type: 60,      // 娣诲姞鎸夐挳琛ㄥ崟椤典笅鐨勬寜閽�
@@ -1481,7 +1483,8 @@
           PageParam: '',
           LongParam: '',
           LText: config.action.map((item, index) => {
-            return `select '${item.uuid}' as menuid, '${item.label}' as menuname, '${(index + 1) * 10}' as Sort`
+            _sort++
+            return `select '${item.uuid}' as menuid, '${item.label}' as menuname, '${_sort * 10}' as Sort`
           })
         }
   
@@ -1496,12 +1499,11 @@
         }
         
         let _LText = []
-        let _index = 1
 
         config.tabgroups.forEach(groupId => {
           config[groupId].forEach(item => {
-            _LText.push(`select '${btnTab.uuid}' as MenuID ,'${item.linkTab}' as Tabid,'${item.label}' as TabName ,'${_index * 10}' as Sort`)
-            _index++
+            _sort++
+            _LText.push(`select '${btnTab.uuid}' as MenuID ,'${item.linkTab}' as Tabid,'${item.label}' as TabName ,'${_sort * 10}' as Sort`)
           })
         })
 

--
Gitblit v1.8.0