update 细节处理

This commit is contained in:
2021-06-28 21:35:07 +08:00
parent e8dd6f4eca
commit 19cb1984b0
3 changed files with 57 additions and 29 deletions

View File

@@ -13,7 +13,16 @@ import {
Switch,
Tag,
} from 'antd'
import { AntIcon, Auth, Container, Image, ModalForm, QueryList, QueryTreeLayout } from 'components'
import {
AntIcon,
Auth,
Container,
Image,
ModalForm,
QueryList,
QueryTableActions,
QueryTreeLayout,
} from 'components'
import { api } from 'common/api'
import { toCamelCase } from 'util/format'
import { isEqual } from 'lodash'
@@ -203,24 +212,26 @@ export default class index extends Component {
<List.Item
key={id}
actions={[
<Auth auth="houseMember:edit">
<a onClick={() => this.onOpen(this.editForm, id)}>编辑</a>
</Auth>,
<Auth auth="houseMember:delete">
<Popconfirm
placement="topRight"
title="是否确认删除"
onConfirm={() => this.onDelete(id)}
>
<a>删除</a>
</Popconfirm>
</Auth>,
<Auth aut="houseMember:resetPwd">
<a onClick={() => this.onResetPassword(id)}>重置密码</a>
</Auth>,
<Auth auth="houseMember:grantData">
<a onClick={() => this.onOpen(this.dataForm, id)}>授权额外数据</a>
</Auth>,
<QueryTableActions>
<Auth auth="houseMember:edit">
<a onClick={() => this.onOpen(this.editForm, id)}>编辑</a>
</Auth>
<Auth auth="houseMember:delete">
<Popconfirm
placement="topRight"
title="是否确认删除"
onConfirm={() => this.onDelete(id)}
>
<a>删除</a>
</Popconfirm>
</Auth>
<Auth auth="houseMember:resetPwd">
<a onClick={() => this.onResetPassword(id)}>重置密码</a>
</Auth>
<Auth auth="houseMember:grantData">
<a onClick={() => this.onOpen(this.dataForm, id)}>授权额外数据</a>
</Auth>
</QueryTableActions>,
]}
>
<List.Item.Meta