update 人员管理/用户管理
This commit is contained in:
@@ -20,6 +20,7 @@ import { isEqual } from 'lodash'
|
||||
import getDictData from 'util/dic'
|
||||
import FormBody from './form'
|
||||
import Selector from './selector'
|
||||
import DataForm from './data'
|
||||
|
||||
// 配置页面所需接口函数
|
||||
const apiAction = {
|
||||
@@ -31,6 +32,8 @@ const apiAction = {
|
||||
|
||||
changeStatus: api.houseMemberChangeStatus,
|
||||
resetPwd: api.sysUserResetPwd,
|
||||
|
||||
grantData: api.houseMemberGrantData,
|
||||
}
|
||||
|
||||
// 用于弹窗标题
|
||||
@@ -52,6 +55,7 @@ export default class index extends Component {
|
||||
// 编辑窗口实例
|
||||
editForm = React.createRef()
|
||||
|
||||
dataForm = React.createRef()
|
||||
// 树选中节点
|
||||
selectId = undefined
|
||||
|
||||
@@ -200,6 +204,9 @@ export default class index extends Component {
|
||||
<Auth aut="houseMember:resetPwd">
|
||||
<a onClick={() => this.onResetPassword(record)}>重置密码</a>
|
||||
</Auth>,
|
||||
<Auth auth="houseMember:grantData">
|
||||
<a onClick={() => this.onOpen(this.dataForm, record)}>授权额外数据</a>
|
||||
</Auth>,
|
||||
]}
|
||||
>
|
||||
<List.Item.Meta
|
||||
@@ -349,6 +356,15 @@ export default class index extends Component {
|
||||
<FormBody mode="edit" />
|
||||
</ModalForm>
|
||||
|
||||
<ModalForm
|
||||
title="数据授权"
|
||||
action={apiAction.grantData}
|
||||
ref={this.dataForm}
|
||||
onSuccess={() => this.list.current.onReloadData()}
|
||||
>
|
||||
<DataForm />
|
||||
</ModalForm>
|
||||
|
||||
<ModalForm
|
||||
bodyStyle={{ padding: 0 }}
|
||||
footer={false}
|
||||
|
||||
Reference in New Issue
Block a user