From 9c394b27981470f192b781199ac1308352f6d93f Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期一, 18 九月 2023 20:00:13 +0800 Subject: [PATCH] Merge branch 'develop' --- src/tabviews/zshare/topSearch/index.jsx | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/src/tabviews/zshare/topSearch/index.jsx b/src/tabviews/zshare/topSearch/index.jsx index 7b3a720..29db100 100644 --- a/src/tabviews/zshare/topSearch/index.jsx +++ b/src/tabviews/zshare/topSearch/index.jsx @@ -41,7 +41,7 @@ sign = '' UNSAFE_componentWillMount () { - const { config } = this.props + const { config, BID } = this.props let _searchlist = [] let fieldMap = new Map() @@ -144,6 +144,8 @@ if (item.resourceType === '1' && item.dataSource) { let _option = Utils.getSelectQueryOptions(item) + _option.sql = _option.sql.replace(/@BID@/ig, `'${BID || ''}'`) + if (window.GLOB.debugger === true) { console.info(_option.sql) } -- Gitblit v1.8.0