From 28ebe609e47b28794450cefc72d3e0f62fd904e7 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期一, 09 五月 2022 01:04:19 +0800 Subject: [PATCH] 2022-05-09 --- src/templates/sharecomponent/actioncomponent/actionform/index.jsx | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/src/templates/sharecomponent/actioncomponent/actionform/index.jsx b/src/templates/sharecomponent/actioncomponent/actionform/index.jsx index 66d820d..dfc113a 100644 --- a/src/templates/sharecomponent/actioncomponent/actionform/index.jsx +++ b/src/templates/sharecomponent/actioncomponent/actionform/index.jsx @@ -30,7 +30,8 @@ setting: PropTypes.object, // 椤甸潰璁剧疆 formlist: PropTypes.any, // 琛ㄥ崟淇℃伅 card: PropTypes.any, // 鎸夐挳淇℃伅 - inputSubmit: PropTypes.any // 鍥炶溅鎻愪氦浜嬩欢 + inputSubmit: PropTypes.func, // 鍥炶溅鎻愪氦浜嬩欢 + updRecord: PropTypes.func } state = { @@ -126,6 +127,8 @@ console.warn('琛ㄥ崟focus澶辫触锛�') } } + + this.props.updRecord && this.props.updRecord(this.record) } getMutilOptions = () => { @@ -385,6 +388,8 @@ if (!['funcbutton', 'excelIn', 'excelOut'].includes(value)) { _fieldval.position = 'toolbar' } + + this.props.updRecord && this.props.updRecord(this.record) } else if (key === 'position') { if (value === 'grid') { _fieldval.Ot = 'requiredSgl' @@ -439,6 +444,8 @@ } } else if (key === 'intertype') { this.record.sysInterface = 'false' + + this.props.updRecord && this.props.updRecord(this.record) } else if (key === 'sysInterface') { if (value === 'true') { _fieldval.interface = window.GLOB.mainSystemApi || '' -- Gitblit v1.8.0