From 822bc67061448c6e3a1eb77d39be4ad2b84b416a Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 27 二月 2020 09:36:34 +0800 Subject: [PATCH] 2020-02-27 --- src/templates/comtableconfig/index.jsx | 29 ++++++++++++++++++++++++++++- 1 files changed, 28 insertions(+), 1 deletions(-) diff --git a/src/templates/comtableconfig/index.jsx b/src/templates/comtableconfig/index.jsx index fb223e3..b7f966c 100644 --- a/src/templates/comtableconfig/index.jsx +++ b/src/templates/comtableconfig/index.jsx @@ -1448,6 +1448,23 @@ card: '', }) }) + } else if (card.execMode) { + this.verifyRef.handleConfirm().then(res => { + + config.action = config.action.map(item => { + if (item.uuid === card.uuid) { + item.verify = res + } + + return item + }) + + this.setState({ + profileVisible: false, + config: config, + card: '', + }) + }) } else { let _verify = this.verifyRef.state.verify @@ -1803,7 +1820,8 @@ } }).then(resp => { if (resp === false) return - + let localParam = JSON.parse(JSON.stringify(param)) + Api.getSystemConfig(param).then(response => { if (response.status) { this.setState({ @@ -1821,6 +1839,14 @@ this.props.reloadmenu() this.submitAction(btnParam, tabParam) + + localParam.func = 'sPC_TrdMenu_AddUpt_For_Local' + delete localParam.LongParam + delete localParam.PageParam + delete localParam.Template + delete localParam.Sort + + Api.getLocalConfig(localParam) } else { this.setState({ menuloading: false, @@ -3007,6 +3033,7 @@ <VerifyCardExcelIn card={this.state.card} dict={this.state.dict} + columns={this.state.config.columns} wrappedComponentRef={(inst) => this.verifyRef = inst} /> : null } -- Gitblit v1.8.0