From 10f5efae1624c89d9a8f04ac331e07c895ea282a Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期六, 25 五月 2024 18:22:58 +0800
Subject: [PATCH] 2024-05-25

---
 src/tabviews/zshare/mutilform/mkPopSelect/index.jsx |    8 ++++++++
 src/templates/zshare/formconfig.jsx                 |   24 ++++++++++++------------
 2 files changed, 20 insertions(+), 12 deletions(-)

diff --git a/src/tabviews/zshare/mutilform/mkPopSelect/index.jsx b/src/tabviews/zshare/mutilform/mkPopSelect/index.jsx
index 30ef195..7b76860 100644
--- a/src/tabviews/zshare/mutilform/mkPopSelect/index.jsx
+++ b/src/tabviews/zshare/mutilform/mkPopSelect/index.jsx
@@ -270,6 +270,14 @@
       })
     }
 
+    if (config.linkFields) {
+      config.linkFields.forEach((m, i) => {
+        setTimeout(() => {
+          MKEmitter.emit('mkFP', m.uuid, val, 0)
+        }, (i + 1) * 100)
+      })
+    }
+
     this.props.onChange(val, other)
     this.setState({value: val, showValue: ''}, () => {
       if (config.enter === 'tab') {
diff --git a/src/templates/zshare/formconfig.jsx b/src/templates/zshare/formconfig.jsx
index c36d6b6..621dd29 100644
--- a/src/templates/zshare/formconfig.jsx
+++ b/src/templates/zshare/formconfig.jsx
@@ -797,19 +797,19 @@
       })
     }
     
-    if (!['select', 'link', 'radio', 'checkcard', 'multiselect'].includes(item.type)) return
+    if (['select', 'link', 'radio', 'checkcard', 'multiselect'].includes(item.type)) {
+      linksupFields.push({
+        field: item.field,
+        label: item.label
+      })
+    }
 
-    linksupFields.push({
-      field: item.field,
-      label: item.label
-    })
-
-    if (item.type === 'multiselect' || (item.type === 'checkcard' && item.multiple === 'true')) return
-
-    linkableFields.push({
-      field: item.field,
-      label: item.label + '-琛ㄥ崟'
-    })
+    if (['select', 'link', 'radio', 'popSelect'].includes(item.type) || (item.type === 'checkcard' && item.multiple !== 'true')) {
+      linkableFields.push({
+        field: item.field,
+        label: item.label + '-琛ㄥ崟'
+      })
+    }
   })
 
   let _fields = linkableFields.map(cell => cell.field)

--
Gitblit v1.8.0