Commit 201b5c6d1c3c297b750cf9daffd9553914113fd7
Merge branch 'fix/DEFECT-1975' into 'main_dev'
fix: 修复看板新增视频时选择视频不是必填项 See merge request yunteng/thingskit-front!1282
Showing
1 changed file
with
3 additions
and
0 deletions
@@ -71,6 +71,7 @@ export const formSchemas: FormSchema[] = [ | @@ -71,6 +71,7 @@ export const formSchemas: FormSchema[] = [ | ||
71 | component: 'Input', | 71 | component: 'Input', |
72 | label: '地址', | 72 | label: '地址', |
73 | colProps: { span: 16 }, | 73 | colProps: { span: 16 }, |
74 | + required: true, | ||
74 | ifShow: ({ model }) => model[FormFieldEnum.VIDEO_TYPE] === VideoOriginalEnum.CUSTOM, | 75 | ifShow: ({ model }) => model[FormFieldEnum.VIDEO_TYPE] === VideoOriginalEnum.CUSTOM, |
75 | componentProps: { | 76 | componentProps: { |
76 | placeholder: '请输入自定义地址', | 77 | placeholder: '请输入自定义地址', |
@@ -80,6 +81,7 @@ export const formSchemas: FormSchema[] = [ | @@ -80,6 +81,7 @@ export const formSchemas: FormSchema[] = [ | ||
80 | field: FormFieldEnum.ORGANIZATION_ID, | 81 | field: FormFieldEnum.ORGANIZATION_ID, |
81 | component: 'OrgTreeSelect', | 82 | component: 'OrgTreeSelect', |
82 | label: '组织', | 83 | label: '组织', |
84 | + required: true, | ||
83 | colProps: { span: 8 }, | 85 | colProps: { span: 8 }, |
84 | ifShow: ({ model }) => model[FormFieldEnum.VIDEO_TYPE] === VideoOriginalEnum.VIDEO_MANAGE, | 86 | ifShow: ({ model }) => model[FormFieldEnum.VIDEO_TYPE] === VideoOriginalEnum.VIDEO_MANAGE, |
85 | componentProps: ({ formActionType }) => { | 87 | componentProps: ({ formActionType }) => { |
@@ -106,6 +108,7 @@ export const formSchemas: FormSchema[] = [ | @@ -106,6 +108,7 @@ export const formSchemas: FormSchema[] = [ | ||
106 | field: FormFieldEnum.VIDEO_ID, | 108 | field: FormFieldEnum.VIDEO_ID, |
107 | component: 'ApiSelect', | 109 | component: 'ApiSelect', |
108 | label: '地址', | 110 | label: '地址', |
111 | + required: true, | ||
109 | colProps: { span: 8 }, | 112 | colProps: { span: 8 }, |
110 | ifShow: ({ model }) => model[FormFieldEnum.VIDEO_TYPE] === VideoOriginalEnum.VIDEO_MANAGE, | 113 | ifShow: ({ model }) => model[FormFieldEnum.VIDEO_TYPE] === VideoOriginalEnum.VIDEO_MANAGE, |
111 | componentProps: ({ formActionType, formModel }) => { | 114 | componentProps: ({ formActionType, formModel }) => { |