From 0eb129a9beddbb86ae74d7106a8e60823206b8d5 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 14 十二月 2023 11:29:15 +0800 Subject: [PATCH] 2023-12-14 --- src/menu/datasource/index.jsx | 13 ++++++++----- 1 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/menu/datasource/index.jsx b/src/menu/datasource/index.jsx index 68edece..0121e76 100644 --- a/src/menu/datasource/index.jsx +++ b/src/menu/datasource/index.jsx @@ -32,11 +32,6 @@ const { config } = this.props const { appType } = this.state - if (config.type === 'interface') { // 鍏叡鏁版嵁婧愪笉浣跨敤鎼滅储 - this.setState({visible: true}) - return - } - let search = [] let menu = fromJS(window.GLOB.customMenu).toJS() @@ -95,6 +90,11 @@ }) }) } + } else if (config.type === 'interface') { + menu.components.forEach(item => { + if (item.type !== 'search') return + search = item.search + }) } else { let filterComponent = (box, mainSearch) => { box.components.forEach(item => { @@ -212,6 +212,9 @@ if (config.subtype !== 'dualdatacard') { delete res.subColumns + if (config.type === 'interface') { + res.setting.laypage = 'false' + } } else { res.subColumns = res.subColumns.map(item => { if (/int/ig.test(item.datatype)) { -- Gitblit v1.8.0