From 0c86e5e2eaf907dfcb63aea13e6efac3ccc52cce Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 25 二月 2020 11:06:20 +0800 Subject: [PATCH] 2020-02-25 --- src/templates/subtableconfig/index.jsx | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/src/templates/subtableconfig/index.jsx b/src/templates/subtableconfig/index.jsx index 1b37f90..c76954e 100644 --- a/src/templates/subtableconfig/index.jsx +++ b/src/templates/subtableconfig/index.jsx @@ -1213,6 +1213,18 @@ duration: 10 }) return + } else if (card.OpenType === 'excelOut') { + let _cols = _verify.columns.map(col => col.Column) + let _vcols = Array.from(new Set(_cols)) + if (_cols.length > _vcols.length) { + notification.warning({ + top: 92, + message: 'Excel鍒楀瓧娈靛悕锛屼笉鍙噸澶�!', + duration: 10 + }) + + return + } } config.action = config.action.map(item => { @@ -2248,6 +2260,7 @@ dict={this.state.dict} card={this.state.card} formlist={this.state.formlist} + optionLibs={this.state.optionLibs} wrappedComponentRef={(inst) => this.searchFormRef = inst} /> </Modal> -- Gitblit v1.8.0