mirror of
https://github.com/PlayEdu/backend
synced 2025-06-18 23:37:01 +08:00
学员列表按钮替换为权限按钮
This commit is contained in:
parent
706eebb591
commit
b12fb1d7a9
@ -17,7 +17,7 @@ import { PlusOutlined, ReloadOutlined } from "@ant-design/icons";
|
|||||||
import { user } from "../../api/index";
|
import { user } from "../../api/index";
|
||||||
import { dateFormat } from "../../utils/index";
|
import { dateFormat } from "../../utils/index";
|
||||||
import { Link, useNavigate } from "react-router-dom";
|
import { Link, useNavigate } from "react-router-dom";
|
||||||
import { TreeDepartment } from "../../compenents";
|
import { TreeDepartment, PerButton } from "../../compenents";
|
||||||
|
|
||||||
interface DataType {
|
interface DataType {
|
||||||
id: React.Key;
|
id: React.Key;
|
||||||
@ -81,14 +81,14 @@ export const MemberPage: React.FC = () => {
|
|||||||
width: 160,
|
width: 160,
|
||||||
render: (_, record) => (
|
render: (_, record) => (
|
||||||
<Space size="small">
|
<Space size="small">
|
||||||
<Button
|
<PerButton
|
||||||
type="link"
|
type="link"
|
||||||
danger
|
text="详情"
|
||||||
className="c-red"
|
class="c-red"
|
||||||
|
icon={null}
|
||||||
|
p="user-update"
|
||||||
onClick={() => navigate(`/member/update/${record.id}`)}
|
onClick={() => navigate(`/member/update/${record.id}`)}
|
||||||
>
|
/>
|
||||||
详情
|
|
||||||
</Button>
|
|
||||||
<Popconfirm
|
<Popconfirm
|
||||||
title="警告"
|
title="警告"
|
||||||
description="即将删除此账号,确认操作?"
|
description="即将删除此账号,确认操作?"
|
||||||
@ -96,9 +96,14 @@ export const MemberPage: React.FC = () => {
|
|||||||
okText="确定"
|
okText="确定"
|
||||||
cancelText="取消"
|
cancelText="取消"
|
||||||
>
|
>
|
||||||
<Button type="link" danger className="c-red">
|
<PerButton
|
||||||
删除
|
type="link"
|
||||||
</Button>
|
text="删除"
|
||||||
|
class="c-red"
|
||||||
|
icon={null}
|
||||||
|
p="user-destroy"
|
||||||
|
onClick={() => null}
|
||||||
|
/>
|
||||||
</Popconfirm>
|
</Popconfirm>
|
||||||
</Space>
|
</Space>
|
||||||
),
|
),
|
||||||
@ -237,18 +242,24 @@ export const MemberPage: React.FC = () => {
|
|||||||
<div className="float-left j-b-flex mb-24">
|
<div className="float-left j-b-flex mb-24">
|
||||||
<div className="d-flex">
|
<div className="d-flex">
|
||||||
<Link style={{ textDecoration: "none" }} to={`/member/create`}>
|
<Link style={{ textDecoration: "none" }} to={`/member/create`}>
|
||||||
<Button
|
<PerButton
|
||||||
icon={<PlusOutlined />}
|
|
||||||
className="mr-16"
|
|
||||||
type="primary"
|
type="primary"
|
||||||
>
|
text="新建"
|
||||||
新建
|
class="mr-16"
|
||||||
</Button>
|
icon={<PlusOutlined />}
|
||||||
|
p="user-store"
|
||||||
|
onClick={() => null}
|
||||||
|
/>
|
||||||
</Link>
|
</Link>
|
||||||
<Link style={{ textDecoration: "none" }} to={`/member/import`}>
|
<Link style={{ textDecoration: "none" }} to={`/member/import`}>
|
||||||
<Button className="mr-16" type="primary">
|
<PerButton
|
||||||
学员批量导入
|
type="primary"
|
||||||
</Button>
|
text="学员批量导入"
|
||||||
|
class="mr-16"
|
||||||
|
icon={null}
|
||||||
|
p="user-store"
|
||||||
|
onClick={() => null}
|
||||||
|
/>
|
||||||
</Link>
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
<div className="d-flex">
|
<div className="d-flex">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user