feature/2.15.1.2407.01-权限
This commit is contained in:
parent
3f0502aabf
commit
d7b1c173c2
|
|
@ -51,7 +51,9 @@ class Index extends Component {
|
|||
if (status) {
|
||||
message.success(getLabel(111, "操作成功!"));
|
||||
this.props.onCancel(() => this.props.onSearch());
|
||||
isSetting && this.props.showRoleSetDialog({ id: data, name: payload.name });
|
||||
isSetting && this.props.showRoleSetDialog({
|
||||
id: data, name: payload.name, selectedKey: "auth.MemberTargetTypeEnum"
|
||||
});
|
||||
} else {
|
||||
message.error(errormsg);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -62,7 +62,13 @@ class Index extends Component {
|
|||
|
||||
componentWillReceiveProps(nextProps, nextContext) {
|
||||
if (nextProps.visible !== this.props.visible && nextProps.visible) {
|
||||
this.setState({ name: nextProps.name, selectedKey: "baseinfo" }, () => this.getRole(nextProps.roleId));
|
||||
this.setState({
|
||||
name: nextProps.name, selectedKey: nextProps.selectedKey || "baseinfo"
|
||||
}, () => {
|
||||
this.state.selectedKey === "auth.MemberTargetTypeEnum" && this.getEnumList();
|
||||
this.state.selectedKey === "auth.MemberTargetTypeEnum" && this.getSettingRoler(nextProps.roleId);
|
||||
this.state.selectedKey === "baseinfo" && this.getRole(nextProps.roleId);
|
||||
});
|
||||
} else {
|
||||
this.setState({
|
||||
selectedRowKeys: [], replaceDatas: [], pageInfo: { current: 1, pageSize: 10, total: 0 },
|
||||
|
|
|
|||
|
|
@ -59,7 +59,9 @@ class Index extends Component {
|
|||
}
|
||||
});
|
||||
};
|
||||
showRoleSetDialog = (role) => this.setState({ roleSetDialog: { visible: true, roleId: role.id, name: role.name } });
|
||||
showRoleSetDialog = (role) => this.setState({
|
||||
roleSetDialog: { visible: true, roleId: role.id, name: role.name, selectedKey: role.selectedKey }
|
||||
});
|
||||
deleteAuthRole = (payload) => {
|
||||
Modal.confirm({
|
||||
title: getLabel(111, "信息确认"),
|
||||
|
|
|
|||
Loading…
Reference in New Issue