src/templates/sharecomponent/tabscomponent/tabform/index.jsx
@@ -26,9 +26,9 @@ UNSAFE_componentWillMount () { const { formlist } = this.props let type = formlist.filter(cell => cell.key === 'type')[0].initVal // let type = formlist.filter(cell => cell.key === 'type')[0].initVal let _tabs = this.props.tabs.filter(tab => tab.type === type) let _tabs = this.props.tabs.filter(tab => tab.type === 'SubTable') this.setState({ formlist: formlist.map(item => { @@ -281,6 +281,8 @@ return } values.type = 'SubTable' // 类型为子表 resolve(values) } else { reject(err)