From a7ddedc4c5d6cda66a83623d9d318437a19d8338 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期六, 25 九月 2021 19:01:48 +0800 Subject: [PATCH] 2021-09-25 --- src/templates/sharecomponent/actioncomponent/actionform/index.jsx | 26 ++++++-------------------- 1 files changed, 6 insertions(+), 20 deletions(-) diff --git a/src/templates/sharecomponent/actioncomponent/actionform/index.jsx b/src/templates/sharecomponent/actioncomponent/actionform/index.jsx index 96d9c47..e5d20d3 100644 --- a/src/templates/sharecomponent/actioncomponent/actionform/index.jsx +++ b/src/templates/sharecomponent/actioncomponent/actionform/index.jsx @@ -331,30 +331,16 @@ }, () => { this.props.form.setFieldsValue(_fieldval) }) - // } else if (key === 'tabType') { - // let _tabs = this.props.tabs.filter(tab => tab.type === value) - // let _fieldval = {} - - // this.setState({ - // formlist: this.state.formlist.map(item => { - // if (item.key === 'linkTab') { - // item.options = [ - // { - // value: '', - // text: '鏂板缓' - // }, - // ..._tabs - // ] - // } - // return item - // }) - // }, () => { - // this.props.form.setFieldsValue(_fieldval) - // }) } else if (key === 'funcType') { let _options = this.getOptions('funcbutton', this.state.interType, value, card.pageTemplate, card.tabTemplate, procMode, Ot) let _fieldval = {} + if (value === 'print') { + _fieldval.label = '鎵撳嵃' + } else if (value === 'closetab') { + _fieldval.label = '鍏抽棴' + } + this.setState({ funcType: value, formlist: this.state.formlist.map(item => { -- Gitblit v1.8.0