From b816a38598a2b96f244ba1aacec05f7071b1a803 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期五, 26 三月 2021 16:09:56 +0800
Subject: [PATCH] 2021-03-26

---
 src/tabviews/custom/index.jsx |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/tabviews/custom/index.jsx b/src/tabviews/custom/index.jsx
index 0df7a58..7b61a0a 100644
--- a/src/tabviews/custom/index.jsx
+++ b/src/tabviews/custom/index.jsx
@@ -140,8 +140,6 @@
           if (['text', 'select', 'link'].includes(item.type) && param) {
             if (param.searchkey === item.field) {
               item.initval = param.searchval
-            } else if (param.BID && item.field.toLowerCase() === 'bid') {
-              item.initval = param.BID
             } else if (param.data && param.data[item.field]) {
               item.initval = param.data[item.field]
             }
@@ -714,6 +712,12 @@
         _customScript = _customScript.replace(/@\$|\$@/ig, '')
       }
 
+      // 澶栬仈鏁版嵁搴撴浛鎹�
+      if (window.GLOB.externalDatabase !== null) {
+        component.setting.dataresource = component.setting.dataresource.replace(/@db@/ig, window.GLOB.externalDatabase)
+        _customScript = _customScript.replace(/@db@/ig, window.GLOB.externalDatabase)
+      }
+
       component.setting.customScript = _customScript // 鏁寸悊鍚庤嚜瀹氫箟鑴氭湰
 
       // floor    缁勪欢鐨勫眰绾�

--
Gitblit v1.8.0