From c0e017668d780c40f85230f227ea0160b5d22d4d Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 20 二月 2024 14:13:00 +0800 Subject: [PATCH] Merge branch 'master' into positec --- src/templates/sharecomponent/actioncomponent/verifyexcelout/index.jsx | 44 ++++++++++++++++++++++++-------------------- 1 files changed, 24 insertions(+), 20 deletions(-) diff --git a/src/templates/sharecomponent/actioncomponent/verifyexcelout/index.jsx b/src/templates/sharecomponent/actioncomponent/verifyexcelout/index.jsx index 7527155..5acaeb6 100644 --- a/src/templates/sharecomponent/actioncomponent/verifyexcelout/index.jsx +++ b/src/templates/sharecomponent/actioncomponent/verifyexcelout/index.jsx @@ -811,28 +811,32 @@ const { card } = this.props const { activeKey, verify } = this.state - if (card.intertype !== 'system' || verify.dataType !== 'custom') { + if (activeKey === 'setting') { + this.settingForm.handleConfirm().then(res => { + if (card.intertype !== 'system' || verify.dataType !== 'custom') { + this.setState({activeKey: val, verify: {...verify, ...res}}) + } else { + this.setState({ + verify: {...verify, ...res} + }, () => { + this.setState({loading: true}) + this.sqlverify(() => { // 楠岃瘉鎴愬姛 + this.setState({ + activeKey: val, + loading: false + }) + }, () => { // 楠岃瘉澶辫触 + this.setState({ + activeKey: val, + loading: false + }) + }, verify.scripts) + }) + } + }) + } else if (card.intertype !== 'system' || verify.dataType !== 'custom') { this.setState({activeKey: val}) return - } else if (activeKey === 'setting') { - this.settingForm.handleConfirm().then(res => { - this.setState({ - verify: {...verify, ...res} - }, () => { - this.setState({loading: true}) - this.sqlverify(() => { // 楠岃瘉鎴愬姛 - this.setState({ - activeKey: val, - loading: false - }) - }, () => { // 楠岃瘉澶辫触 - this.setState({ - activeKey: val, - loading: false - }) - }, verify.scripts) - }) - }) } else if (activeKey === 'columns') { if (this.columnRef && this.columnRef.state.editingKey) { notification.warning({ -- Gitblit v1.8.0