From ecef296362ee15765e317df6df158a6034924fcf Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期五, 03 十一月 2023 12:04:40 +0800
Subject: [PATCH] 2023-11-03

---
 src/tabviews/custom/components/table/edit-table/normalTable/mkPopSelect/index.jsx |   14 ++++++++------
 1 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/src/tabviews/custom/components/table/edit-table/normalTable/mkPopSelect/index.jsx b/src/tabviews/custom/components/table/edit-table/normalTable/mkPopSelect/index.jsx
index e99578c..47eb46b 100644
--- a/src/tabviews/custom/components/table/edit-table/normalTable/mkPopSelect/index.jsx
+++ b/src/tabviews/custom/components/table/edit-table/normalTable/mkPopSelect/index.jsx
@@ -284,7 +284,7 @@
 
     this.props.onChange(values, record.$$uuid)
 
-    this.setState({visible: false})
+    this.setState({visible: false, value: record.$$uuid})
 
     if (config.$ctrl) {
       MKEmitter.emit('colBlur' + config.tableId, lineId, config.uuid)
@@ -294,11 +294,13 @@
 
     if (config.enter === '$noAct') return
 
-    if (/\$next/.test(config.enter)) {
-      MKEmitter.emit('nextLine' + config.tableId, lineId, config.enter.replace('$next_', ''))
-    } else {
-      MKEmitter.emit('setFocus' + config.tableId, lineId, config.enter)
-    }
+    setTimeout(() => {
+      if (/\$next/.test(config.enter)) {
+        MKEmitter.emit('nextLine' + config.tableId, lineId, config.enter.replace('$next_', ''))
+      } else {
+        MKEmitter.emit('setFocus' + config.tableId, lineId, config.enter)
+      }
+    }, 10)
   }
 
   trigger = (e) => {

--
Gitblit v1.8.0