| | |
| | | }, () => { |
| | | 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 => { |