| | |
| | | }) |
| | | notification.warning({ |
| | | top: 92, |
| | | message: result.message || '页面配置错误', |
| | | message: this.state.dict['main.page.settingerror'], |
| | | duration: 10 |
| | | }) |
| | | } |
| | |
| | | }) |
| | | notification.warning({ |
| | | top: 92, |
| | | message: result.message || '页面配置错误', |
| | | message: result.message, |
| | | duration: 10 |
| | | }) |
| | | } |
| | |
| | | item.options.unshift({ |
| | | key: Utils.getuuid(), |
| | | Value: '', |
| | | Text: '全部' |
| | | Text: this.state.dict['main.all'] |
| | | }) |
| | | } |
| | | |
| | |
| | | } else if (item.resourceType === '1' && !item.dataSource) { |
| | | notification.warning({ |
| | | top: 92, |
| | | message: item.label + '数据源配置错误', |
| | | message: item.label + ': ' + this.state.dict['main.datasource.settingerror'], |
| | | duration: 10 |
| | | }) |
| | | } |
| | |
| | | // }) |
| | | } |
| | | |
| | | refreshbyaction = () => { |
| | | refreshbyaction = (btn, type) => { |
| | | // 按钮操作后刷新表格,重置页码及选择项 |
| | | this.refs.mainTable.resetTable() |
| | | this.loadmaindata(1, this.state.param.pageSize, this.state.param.orderColumn, this.state.param.orderType, this.state.param.search) |
| | | this.setState({ |
| | | loading: true |
| | | }) |
| | | console.log(btn) |
| | | console.log(type) |
| | | // this.refs.mainTable.resetTable() |
| | | // this.loadmaindata(1, this.state.param.pageSize, this.state.param.orderColumn, this.state.param.orderType, this.state.param.search) |
| | | // this.setState({ |
| | | // loading: true |
| | | // }) |
| | | } |
| | | |
| | | gettableselected = () => { |
| | |
| | | {actions && |
| | | <MainAction |
| | | MenuID={this.props.MenuID} |
| | | fixed={setting && setting.actionfixed} |
| | | setting={setting} |
| | | refreshdata={this.refreshbyaction} |
| | | gettableselected={this.gettableselected} |
| | | actions={actions} |