mirror of
https://github.com/PlayEdu/backend
synced 2025-06-06 14:44:10 +08:00
commit
42f5d77e4f
@ -234,7 +234,7 @@ export const CourseHourUpdate: React.FC<PropInterface> = ({
|
||||
const arr = [...chapters];
|
||||
if (arr[index].id) {
|
||||
courseChapter
|
||||
.updateCourseChapter(id, Number(arr[index].id), value, arr.length)
|
||||
.updateCourseChapter(id, Number(arr[index].id), value, index + 1)
|
||||
.then((res: any) => {
|
||||
console.log("ok");
|
||||
getDetail();
|
||||
|
@ -149,12 +149,12 @@ export const SystemAdministratorCreate: React.FC<PropInterface> = ({
|
||||
<Form.Item
|
||||
label="邮箱"
|
||||
name="email"
|
||||
rules={[{ required: true, message: "请输入学员邮箱!" }]}
|
||||
rules={[{ required: true, message: "请输入管理员邮箱!" }]}
|
||||
>
|
||||
<Input
|
||||
allowClear
|
||||
style={{ width: 200 }}
|
||||
placeholder="请输入学员邮箱"
|
||||
placeholder="请输入管理员邮箱"
|
||||
/>
|
||||
</Form.Item>
|
||||
<Form.Item
|
||||
|
@ -111,7 +111,7 @@ export const SystemAdministratorUpdate: React.FC<PropInterface> = ({
|
||||
<>
|
||||
{open ? (
|
||||
<Modal
|
||||
title="编辑管理人员"
|
||||
title="编辑管理员"
|
||||
centered
|
||||
forceRender
|
||||
open={true}
|
||||
@ -168,12 +168,12 @@ export const SystemAdministratorUpdate: React.FC<PropInterface> = ({
|
||||
<Form.Item
|
||||
label="邮箱"
|
||||
name="email"
|
||||
rules={[{ required: true, message: "请输入学员邮箱!" }]}
|
||||
rules={[{ required: true, message: "请输入管理员邮箱!" }]}
|
||||
>
|
||||
<Input
|
||||
allowClear
|
||||
style={{ width: 200 }}
|
||||
placeholder="请输入学员邮箱"
|
||||
placeholder="请输入管理员邮箱"
|
||||
/>
|
||||
</Form.Item>
|
||||
<Form.Item label="密码" name="password">
|
||||
|
Loading…
x
Reference in New Issue
Block a user