From ec98e336b79afc2a43c998134b46b71e0e201049 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期五, 20 八月 2021 18:24:09 +0800
Subject: [PATCH] 2021-08-20

---
 src/tabviews/custom/components/form/normal-form/index.jsx |   17 +++++++++++------
 1 files changed, 11 insertions(+), 6 deletions(-)

diff --git a/src/tabviews/custom/components/form/normal-form/index.jsx b/src/tabviews/custom/components/form/normal-form/index.jsx
index f8bb190..dfc65f7 100644
--- a/src/tabviews/custom/components/form/normal-form/index.jsx
+++ b/src/tabviews/custom/components/form/normal-form/index.jsx
@@ -44,7 +44,7 @@
 
     let _data = null
     let _sync = false
-    
+
     if (config.wrap.datatype !== 'static') {
       _sync = config.setting.sync === 'true'
 
@@ -195,7 +195,7 @@
    * @param {*} position   // 鍒锋柊浣嶇疆
    * @param {*} btn        // 鎵ц鐨勬寜閽�
    */
-  refreshByButtonResult = (menuId, position, btn) => {
+  refreshByButtonResult = (menuId, position, btn, id) => {
     const { config, group } = this.state
 
     if (group.uuid !== menuId) return
@@ -206,9 +206,13 @@
 
     if (config.wrap.datatype !== 'static' && config.setting) {
       this.loadData(btn)
-    } else {
-      this.execSuccess(btn)
     }
+
+    if (id) {
+      MKEmitter.emit('resetSelectLine', config.uuid, id, '')
+    }
+
+    this.execSuccess(btn, id)
   }
 
   resetParentParam = (MenuID, id) => {
@@ -221,7 +225,7 @@
     }
   }
 
-  execSuccess = (btn) => {
+  execSuccess = (btn, id) => {
     const { config, group } = this.state
 
     if (config.subcards.length > group.sort) {
@@ -243,8 +247,9 @@
       let newtab = {
         ...menu,
         selected: true,
-        param: {}
+        param: {$BID: id || ''}
       }
+
       let tabs = this.props.tabviews.filter((tab, i) => {
         tab.selected = false
         return tab.MenuID !== newtab.MenuID

--
Gitblit v1.8.0