18 lines
650 B
JavaScript
18 lines
650 B
JavaScript
|
|
import React, {Component} from 'react';
|
||
|
|
import {observer} from 'mobx-react';
|
||
|
|
import {WeaTab, WeaTable} from 'ecCom';
|
||
|
|
|
||
|
|
@observer
|
||
|
|
export default class TableData extends Component{
|
||
|
|
render(){
|
||
|
|
const {store} = this.props;
|
||
|
|
const {edit, tabProps, tableProps} = store;
|
||
|
|
|
||
|
|
return (
|
||
|
|
<div className='table_container' style={{display: edit ? 'none' : 'block'}}>
|
||
|
|
<WeaTab ecId={`${this && this.props && this.props.ecId || ''}_WeaTab@qsg8zk`} {...tabProps} />
|
||
|
|
<WeaTable ecId={`${this && this.props && this.props.ecId || ''}_WeaTable@64ul9f`} {...tableProps}/>
|
||
|
|
</div>
|
||
|
|
)
|
||
|
|
}
|
||
|
|
}
|