| | |
| | | |
| | | export default class NormalTable extends Component { |
| | | static propTpyes = { |
| | | BID: PropTypes.string, // 上级数据ID |
| | | Tab: PropTypes.object, // 标签信息 |
| | | BIDs: PropTypes.string, // 上级数据ID |
| | | MenuID: PropTypes.string, // 菜单Id |
| | | SupMenuID: PropTypes.string // 上级菜单Id |
| | | } |
| | |
| | | columns: null, |
| | | arr_field: '', |
| | | setting: null, |
| | | data: null, |
| | | data: [], |
| | | total: 0, |
| | | loading: false, |
| | | pageIndex: 1, |
| | |
| | | orderType: 'asc', |
| | | search: '', |
| | | configMap: {} |
| | | } |
| | | |
| | | UNSAFE_componentWillReceiveProps(nextProps) { |
| | | if (this.props.Tab.supMenu && !is(fromJS(this.props.BIDs[this.props.Tab.supMenu]), fromJS(nextProps.BIDs[this.props.Tab.supMenu]))) { |
| | | this.loadmaindata() |
| | | } |
| | | } |
| | | |
| | | /** |
| | |
| | | |
| | | // 页面配置解析错误时提示 |
| | | if (!config) { |
| | | // notification.warning({ |
| | | // top: 92, |
| | | // message: this.state.dict['main.page.settingerror'], |
| | | // duration: 10 |
| | | // }) |
| | | this.setState({ |
| | | loadingview: false, |
| | | viewlost: true |
| | | // lostmsg: this.state.dict['main.page.settingerror'] |
| | | }) |
| | | return |
| | | } |
| | |
| | | let param = { |
| | | func: 'sPC_Get_TableData', |
| | | obj_name: 'data', |
| | | arr_field: arr_field |
| | | arr_field: arr_field, |
| | | BID: this.props.BIDs[this.props.Tab.supMenu] || '' |
| | | } |
| | | |
| | | let orderBy = orderColumn ? (orderColumn + ' ' + orderType) : setting.order |
| | |
| | | <SubAction |
| | | ref="subButton" |
| | | MenuID={this.props.MenuID} |
| | | BID={this.props.BID} |
| | | BID={this.props.BIDs[this.props.Tab.supMenu] || ''} |
| | | setting={setting} |
| | | refreshdata={this.refreshbyaction} |
| | | gettableselected={this.gettableselected} |