From f3d4db769ba9b51b799d981511a710fd443d0e08 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期一, 21 四月 2025 12:18:03 +0800 Subject: [PATCH] Merge branch 'master' into positec --- src/menu/datasource/index.jsx | 17 ++++++++++++----- 1 files changed, 12 insertions(+), 5 deletions(-) diff --git a/src/menu/datasource/index.jsx b/src/menu/datasource/index.jsx index dd54aa7..591a092 100644 --- a/src/menu/datasource/index.jsx +++ b/src/menu/datasource/index.jsx @@ -93,13 +93,13 @@ } else if (config.type === 'interface') { menu.components.forEach(item => { if (item.type !== 'search') return - search = item.search + search = item.search || [] }) } else { let filterComponent = (box, mainSearch) => { box.components.forEach(item => { if (item.type !== 'search') return - mainSearch = item.search + mainSearch = item.search || [] }) let has = false box.components.forEach(item => { @@ -136,10 +136,10 @@ } verifySubmit = () => { - const { config } = this.props + const { config, mainSearch } = this.props this.setState({loading: true}) - this.verifyRef.submitDataSource().then(res => { + this.verifyRef.submitDataSource().then((res) => { let MenuType = sessionStorage.getItem('MenuType') @@ -339,6 +339,13 @@ MKEmitter.emit('mkUpdateInter', {uuid: config.uuid, columns: res.columns}, {delay: 0}) }, 150) } + + if (config.type === 'interface' && res.setting && res.setting.useMSearch === 'true' && mainSearch.length === 0) { + Modal.warning({ + title: '鏁版嵁婧愪腑浣跨敤浜嗗閮ㄦ悳绱紝浣嗘悳绱㈡潯浠跺皻鏈坊鍔狅紒', + centered: true + }) + } }, () => { this.setState({loading: false}) }) @@ -389,7 +396,7 @@ width={'75vw'} maskClosable={false} okText="鎻愪氦" - onCancel={() => {this.setState({ visible: false, loading: false }) }} + onCancel={this.cancel} footer={[ config.subtype !== 'dualdatacard' && record.interType === 'inner' ? <CreateFunc key="create" getMsg={this.creatFunc}/> : null, <Button key="cancel" onClick={this.cancel}>鍙栨秷</Button>, -- Gitblit v1.8.0