添加角色管理

This commit is contained in:
sin
2019-03-06 20:08:39 +08:00
parent 3b3dec6ab2
commit d7be2bfb33
9 changed files with 343 additions and 5 deletions

View File

@@ -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