mirror of
https://github.com/PlayEdu/backend
synced 2025-06-28 08:05:03 +08:00
线上课创建、编辑优化
This commit is contained in:
parent
37b753aa78
commit
5f0c1f23de
@ -442,9 +442,9 @@ export const CourseCreate: React.FC<PropInterface> = ({
|
||||
</Radio.Group>
|
||||
</Form.Item>
|
||||
<Form.Item
|
||||
label="课程类型"
|
||||
label="指派部门"
|
||||
name="type"
|
||||
rules={[{ required: true, message: "请选择课程类型!" }]}
|
||||
rules={[{ required: true, message: "请选择指派部门!" }]}
|
||||
>
|
||||
<Radio.Group onChange={getType}>
|
||||
<Radio value="open">所有部门</Radio>
|
||||
@ -454,12 +454,12 @@ export const CourseCreate: React.FC<PropInterface> = ({
|
||||
|
||||
{type === "elective" && (
|
||||
<Form.Item
|
||||
label="指派部门"
|
||||
label="选择部门"
|
||||
name="dep_ids"
|
||||
rules={[
|
||||
{
|
||||
required: true,
|
||||
message: "请选择课程指派部门!",
|
||||
message: "请选择部门!",
|
||||
},
|
||||
]}
|
||||
>
|
||||
@ -469,7 +469,7 @@ export const CourseCreate: React.FC<PropInterface> = ({
|
||||
treeData={departments}
|
||||
multiple
|
||||
allowClear
|
||||
placeholder="请选择课程指派部门"
|
||||
placeholder="请选择部门"
|
||||
/>
|
||||
</Form.Item>
|
||||
)}
|
||||
|
@ -223,9 +223,9 @@ export const CourseUpdate: React.FC<PropInterface> = ({
|
||||
</Radio.Group>
|
||||
</Form.Item>
|
||||
<Form.Item
|
||||
label="课程类型"
|
||||
label="指派部门"
|
||||
name="type"
|
||||
rules={[{ required: true, message: "请选择课程类型!" }]}
|
||||
rules={[{ required: true, message: "请选择指派部门!" }]}
|
||||
>
|
||||
<Radio.Group onChange={getType}>
|
||||
<Radio value="open">所有部门</Radio>
|
||||
@ -235,12 +235,12 @@ export const CourseUpdate: React.FC<PropInterface> = ({
|
||||
|
||||
{type === "elective" && (
|
||||
<Form.Item
|
||||
label="指派部门"
|
||||
label="选择部门"
|
||||
name="dep_ids"
|
||||
rules={[
|
||||
{
|
||||
required: true,
|
||||
message: "请选择课程指派部门!",
|
||||
message: "请选择部门!",
|
||||
},
|
||||
]}
|
||||
>
|
||||
@ -250,7 +250,7 @@ export const CourseUpdate: React.FC<PropInterface> = ({
|
||||
treeData={departments}
|
||||
multiple
|
||||
allowClear
|
||||
placeholder="请选择课程指派部门"
|
||||
placeholder="请选择部门"
|
||||
/>
|
||||
</Form.Item>
|
||||
)}
|
||||
|
Loading…
x
Reference in New Issue
Block a user