update 操作日志完善

This commit is contained in:
2021-06-28 13:19:26 +08:00
parent fd9665c265
commit f27e3956b9
11 changed files with 334 additions and 148 deletions

View File

@@ -21,6 +21,7 @@ import getDictData from 'util/dic'
import FormBody from './form'
import RoleForm from './role'
import DataForm from './data'
import auth from 'components/authorized/handler'
// 配置页面所需接口函数
const apiAction = {
@@ -209,25 +210,25 @@ export default class index extends Component {
<Auth aut="sysUser:resetPwd">
<a onClick={() => this.onResetPassword(record)}>重置密码</a>
</Auth>,
<Auth auth={{ sysRole: [['grantRole'], ['grantData']] }}>
<Auth auth={{ sysUser: [['grantRole'], ['grantData']] }}>
<Dropdown
placement="bottomRight"
overlay={
<Menu>
<Auth auth="sysRole:grantRole">
<Menu.Item>
{auth('sysUser:grantRole') && (
<Menu.Item key="1">
<a onClick={() => this.onOpen(this.roleForm, record)}>
授权角色
</a>
</Menu.Item>
</Auth>
<Auth auth="sysRole:grantData">
<Menu.Item>
)}
{auth('sysUser:grantData') && (
<Menu.Item key="2">
<a onClick={() => this.onOpen(this.dataForm, record)}>
授权额外数据
</a>
</Menu.Item>
</Auth>
)}
</Menu>
}
>