mirror of
https://github.com/PlayEdu/backend
synced 2025-06-23 05:43:06 +08:00
学员添加、编辑优化以及删除弹窗文案优化
This commit is contained in:
parent
65d572aee0
commit
c032727588
@ -39,7 +39,7 @@ export const CourseHourUpdate: React.FC<PropInterface> = ({
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
getDetail();
|
getDetail();
|
||||||
}, [id]);
|
}, [id, open]);
|
||||||
|
|
||||||
const getDetail = () => {
|
const getDetail = () => {
|
||||||
course.course(id).then((res: any) => {
|
course.course(id).then((res: any) => {
|
||||||
|
@ -51,7 +51,7 @@ export const CourseUpdate: React.FC<PropInterface> = ({
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
getCategory();
|
getCategory();
|
||||||
}, [id]);
|
}, [id, open]);
|
||||||
|
|
||||||
const getCategory = () => {
|
const getCategory = () => {
|
||||||
course.createCourse().then((res: any) => {
|
course.createCourse().then((res: any) => {
|
||||||
|
@ -29,7 +29,7 @@ export const MemberUpdate: React.FC<PropInterface> = ({
|
|||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
getParams();
|
getParams();
|
||||||
}, [id]);
|
}, [id, open]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
form.setFieldsValue({
|
form.setFieldsValue({
|
||||||
|
@ -178,7 +178,7 @@ export const MemberPage: React.FC = () => {
|
|||||||
confirm({
|
confirm({
|
||||||
title: "操作确认",
|
title: "操作确认",
|
||||||
icon: <ExclamationCircleFilled />,
|
icon: <ExclamationCircleFilled />,
|
||||||
content: "确认删除此视频?",
|
content: "确认删除此学员?",
|
||||||
centered: true,
|
centered: true,
|
||||||
okText: "确认",
|
okText: "确认",
|
||||||
cancelText: "取消",
|
cancelText: "取消",
|
||||||
|
@ -27,7 +27,7 @@ export const SystemAdministratorUpdate: React.FC<PropInterface> = ({
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
getDetail();
|
getDetail();
|
||||||
}, [id]);
|
}, [id, open]);
|
||||||
|
|
||||||
const getParams = () => {
|
const getParams = () => {
|
||||||
adminUser.createAdminUser().then((res: any) => {
|
adminUser.createAdminUser().then((res: any) => {
|
||||||
|
@ -28,7 +28,7 @@ export const SystemAdminrolesUpdate: React.FC<PropInterface> = ({
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
getDetail();
|
getDetail();
|
||||||
}, [id]);
|
}, [id, open]);
|
||||||
|
|
||||||
const getParams = () => {
|
const getParams = () => {
|
||||||
adminRole.createAdminRole().then((res: any) => {
|
adminRole.createAdminRole().then((res: any) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user