|
|
@@ -48,8 +48,7 @@ const Employee = props => {
|
|
|
render: (username, record) => (
|
|
|
<span
|
|
|
onClick={() => showDrawer(record.id)}
|
|
|
- className="text-primary cursor-pointer hover:text-[#967bbd]"
|
|
|
- >
|
|
|
+ className="text-primary cursor-pointer hover:text-[#967bbd]">
|
|
|
{username}
|
|
|
</span>
|
|
|
)
|
|
|
@@ -115,8 +114,8 @@ const Employee = props => {
|
|
|
<div className="h-full w-full flex flex-row">
|
|
|
<RoleMenu onSelect={onSelect} />
|
|
|
<div className="w-max-3/4">
|
|
|
- <div className="ml-8 shadow-hex-3e2c5a relative">
|
|
|
- <div className="absolute right-33 top-3 z-100">
|
|
|
+ <div className="ml-8 shadow-hex-3e2c5a">
|
|
|
+ {/* <div className="absolute right-33 top-3 z-100">
|
|
|
{hasPerm && state.params.id && (
|
|
|
<Popconfirm
|
|
|
title="确认删除吗?"
|
|
|
@@ -130,7 +129,7 @@ const Employee = props => {
|
|
|
</Button>
|
|
|
</Popconfirm>
|
|
|
)}
|
|
|
- </div>
|
|
|
+ </div> */}
|
|
|
{state.params.id && (
|
|
|
<BasicTable
|
|
|
columnStateType="EMPLOYEE"
|
|
|
@@ -147,6 +146,24 @@ const Employee = props => {
|
|
|
}
|
|
|
}}
|
|
|
search={false}
|
|
|
+ toolbar={{
|
|
|
+ actions: [
|
|
|
+ <>
|
|
|
+ {hasPerm && state.params.id && (
|
|
|
+ <Popconfirm
|
|
|
+ title="确认删除吗?"
|
|
|
+ onText="确认"
|
|
|
+ cancelText="取消"
|
|
|
+ // onConfirm={() => console.log(state.params.id)}
|
|
|
+ onConfirm={() => handleDelDepartment(state.params.id)}>
|
|
|
+ <Button danger size="small">
|
|
|
+ 删除部门
|
|
|
+ </Button>
|
|
|
+ </Popconfirm>
|
|
|
+ )}
|
|
|
+ </>
|
|
|
+ ]
|
|
|
+ }}
|
|
|
/>
|
|
|
)}
|
|
|
</div>
|