Merge pull request !16 from 白书科技/fix/1101
This commit is contained in:
白书科技 2023-11-13 03:56:54 +00:00 committed by Gitee
commit 42f5d77e4f
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 6 additions and 6 deletions

View File

@ -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();

View File

@ -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

View File

@ -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">