feat: 用户片头请求备注字段
This commit is contained in:
@@ -76,6 +76,7 @@ const userTitlesSchema = object({
|
|||||||
title_id: number().required().moreThan(0, '模板 ID 无效'),
|
title_id: number().required().moreThan(0, '模板 ID 无效'),
|
||||||
title: string().required('请填写课程名称'),
|
title: string().required('请填写课程名称'),
|
||||||
description: string().required('请填写主讲人名字'),
|
description: string().required('请填写主讲人名字'),
|
||||||
|
remark: string().optional(),
|
||||||
})
|
})
|
||||||
|
|
||||||
type UserTitlesSchema = InferType<typeof userTitlesSchema>
|
type UserTitlesSchema = InferType<typeof userTitlesSchema>
|
||||||
@@ -84,6 +85,7 @@ const userTitlesState = reactive({
|
|||||||
title_id: 0,
|
title_id: 0,
|
||||||
title: '',
|
title: '',
|
||||||
description: '',
|
description: '',
|
||||||
|
remark: ''
|
||||||
})
|
})
|
||||||
|
|
||||||
const onUserTitlesRequest = (titles: TitlesTemplate) => {
|
const onUserTitlesRequest = (titles: TitlesTemplate) => {
|
||||||
@@ -330,6 +332,13 @@ const onUserTitlesSubmit = (event: FormSubmitEvent<UserTitlesSchema>) => {
|
|||||||
>
|
>
|
||||||
<UInput v-model="userTitlesState.description" />
|
<UInput v-model="userTitlesState.description" />
|
||||||
</UFormGroup>
|
</UFormGroup>
|
||||||
|
<UFormGroup
|
||||||
|
label="备注"
|
||||||
|
name="remark"
|
||||||
|
help="可选,可以在此处填写学校、单位等额外信息"
|
||||||
|
>
|
||||||
|
<UTextarea v-model="userTitlesState.remark" />
|
||||||
|
</UFormGroup>
|
||||||
<UFormGroup name="title_id">
|
<UFormGroup name="title_id">
|
||||||
<UInput
|
<UInput
|
||||||
type="hidden"
|
type="hidden"
|
||||||
|
|||||||
Reference in New Issue
Block a user