From f308a19516f0f15c0aca1af87c1aa722af0fee5c Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 12 四月 2024 17:48:52 +0800 Subject: [PATCH] 2024-04-12 --- src/menu/components/share/searchcomponent/index.jsx | 12 ++++++++++-- 1 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/menu/components/share/searchcomponent/index.jsx b/src/menu/components/share/searchcomponent/index.jsx index 01ecd13..5aecd30 100644 --- a/src/menu/components/share/searchcomponent/index.jsx +++ b/src/menu/components/share/searchcomponent/index.jsx @@ -93,6 +93,7 @@ * @description 鎼滅储鏉′欢缂栬緫锛岃幏鍙栨悳绱㈡潯浠惰〃鍗曚俊鎭� */ handleSearch = (card) => { + const { config } = this.props const { searchlist } = this.state let linkableFields = [] @@ -107,10 +108,17 @@ }) }) + let columns = null + if (config.columns && config.columns.length) { + columns = config.columns.map(item => { + return {key: item.uuid, text: item.field, value: item.field, label: item.label} + }) + } + this.setState({ visible: true, card: card, - formlist: getSearchForm(card, linkableFields, [], 'header') + formlist: getSearchForm(card, linkableFields, columns, 'header') }) } @@ -203,7 +211,7 @@ }) let sql = res.dataSource - sql = sql.replace(/@\$|\$@/ig, '').replace(/@(BID|ID|LoginUID|SessionUid|UserID|Appkey|time_id)@/ig, `'1949-10-01 15:00:00'`) + sql = sql.replace(/@\$|\$@/ig, '') let rduri = '' if (window.GLOB.mainSystemApi && res.database === 'sso') { -- Gitblit v1.8.0