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