| | |
| | | columns: null, // 显示列 |
| | | arr_field: '', // 使用 sPC_Get_TableData 时的查询字段集 |
| | | setting: null, // 页面全局设置:数据源、按钮及显示列固定、主键等 |
| | | data: null, // 列表数据集 |
| | | data: [], // 列表数据集 |
| | | selectedData: [], // 已选表格数据 |
| | | total: 0, // 总数 |
| | | loading: false, // 列表数据加载中 |
| | |
| | | {searchlist && searchlist.length ? |
| | | <MainSearch BID={BID} searchlist={searchlist} menuType={this.props.menuType} refreshdata={this.refreshbysearch}/> : null |
| | | } |
| | | {setting && setting.onload !== 'false' ? <Row className="chart-view" gutter={16}> |
| | | {setting ? <Row className="chart-view" gutter={16}> |
| | | {/* 视图组 */} |
| | | {!config.expand ? <Tabs activeKey={chartId} onChange={this.changeChart}> |
| | | {config.charts.map(item => ( |
| | |
| | | } |
| | | })} |
| | | </Row> : null } |
| | | {setting && setting.onload !== 'false' && |
| | | config.tabgroups.map(group => ( |
| | | {setting && config.tabgroups.map(group => ( |
| | | <Tabs key={group.uuid} onChange={(key) => this.setState({tabActive: {...tabActive, [group.uuid]: key}})}> |
| | | {group.sublist.map(_tab => { |
| | | return ( |
| | |
| | | columns: null, // 显示列 |
| | | arr_field: '', // 使用 sPC_Get_TableData 时的查询字段集 |
| | | setting: null, // 页面全局设置:数据源、按钮及显示列固定、主键等 |
| | | data: null, // 列表数据集 |
| | | data: [], // 列表数据集 |
| | | selectedData: [], // 已选表格数据 |
| | | total: 0, // 总数 |
| | | loading: false, // 列表数据加载中 |
| | |
| | | columns: null, // 显示列 |
| | | arr_field: '', // 使用 sPC_Get_TableData 时的查询字段集 |
| | | setting: null, // 页面全局设置:数据源、按钮及显示列固定、主键等 |
| | | data: null, // 列表数据集 |
| | | data: [], // 列表数据集 |
| | | selectedData: [], // 已选表格数据 |
| | | total: 0, // 总数 |
| | | loading: false, // 列表数据加载中 |
| | |
| | | render() { |
| | | const C = this.state.component |
| | | const btn = this.props.btn || {} |
| | | let style = {} |
| | | |
| | | if (!C && btn.btnstyle) { |
| | | if (btn.btnstyle.marginRight) { |
| | | style.marginRight = btn.btnstyle.marginRight |
| | | } |
| | | if (btn.btnstyle.marginLeft) { |
| | | style.marginLeft = btn.btnstyle.marginLeft |
| | | } |
| | | if (btn.btnstyle.marginTop) { |
| | | style.marginTop = btn.btnstyle.marginTop |
| | | } |
| | | if (btn.btnstyle.marginBottom) { |
| | | style.marginBottom = btn.btnstyle.marginBottom |
| | | } |
| | | } |
| | | |
| | | return C ? |
| | | <C {...this.props} /> : |
| | | <Button className={'mk-btn mk-' + btn.class} icon={btn.icon} disabled={true} >{btn.label}</Button> |
| | | <Button className={'mk-btn mk-' + btn.class} style={style} icon={btn.icon} disabled={true} >{btn.label}</Button> |
| | | } |
| | | } |
| | | } |