添加角色管理
This commit is contained in:
@@ -89,6 +89,7 @@ const CreateForm = Form.create()(props => {
|
||||
|
||||
@connect(({ resourceList, loading }) => ({
|
||||
resourceList,
|
||||
list: resourceList.list,
|
||||
loading: loading.models.resourceList,
|
||||
}))
|
||||
@Form.create()
|
||||
@@ -103,7 +104,7 @@ class ResourceList extends PureComponent {
|
||||
componentDidMount() {
|
||||
const { dispatch } = this.props;
|
||||
dispatch({
|
||||
type: 'resourceList/tree',
|
||||
type: 'roleList/tree',
|
||||
payload: {},
|
||||
});
|
||||
}
|
||||
@@ -172,9 +173,7 @@ class ResourceList extends PureComponent {
|
||||
}
|
||||
|
||||
render() {
|
||||
const {
|
||||
resourceList: { list },
|
||||
} = this.props;
|
||||
const { list } = this.props;
|
||||
const { modalVisible, modalType, initValues, defaultExpandAllRows } = this.state;
|
||||
const parentMethods = {
|
||||
handleAdd: this.handleAdd,
|
||||
@@ -253,6 +252,7 @@ class ResourceList extends PureComponent {
|
||||
<Button type="normal" onClick={() => this.changeExpandAll()}>
|
||||
展开所有行
|
||||
</Button>
|
||||
TODO 展开没效果,需要研究下
|
||||
</div>
|
||||
</div>
|
||||
<Table
|
||||
|
||||
Reference in New Issue
Block a user