diff --git a/src/utils/defaultSignupFormSchema.ts b/src/utils/defaultSignupFormSchema.ts index 2db9c7b..e4740c6 100644 --- a/src/utils/defaultSignupFormSchema.ts +++ b/src/utils/defaultSignupFormSchema.ts @@ -50,7 +50,7 @@ export const DEFAULT_SIGNUP_FORM_SCHEMA: SignupFormSchemaField[] = [ { label: '创新组', value: '创新组' }, { label: '创业组', value: '创业组' }, ], - help: '选择「创业组」时须填写企业名称', + help: '仅限创业组填报企业名称(创新组不展示该字段)', }, { key: 'company_name', @@ -58,7 +58,7 @@ export const DEFAULT_SIGNUP_FORM_SCHEMA: SignupFormSchemaField[] = [ label: '企业名称', required: false, required_when: { field: 'entry_group', values: ['创业组'] }, - placeholder: '创业组为必填;创新组选填', + placeholder: '请填写工商注册全称', }, { key: 'project_name', type: 'text', label: '项目名称', required: true }, { diff --git a/src/views/ApplyFormView.vue b/src/views/ApplyFormView.vue index 11e8621..160ac7c 100644 --- a/src/views/ApplyFormView.vue +++ b/src/views/ApplyFormView.vue @@ -142,7 +142,7 @@ const trackDropdownBtn = ref(nul const trackMainText = computed(() => { const code = formModel.track const t = competitionTracks.value.find((x) => x.track_code === code) - return t ? t.title : code ? code : '请选择' + return t ? t.title : code ? code : '请选择主题赛道' }) const trackMainClass = computed(() => (formModel.track ? 'text-body' : 'text-secondary')) const trackNoteText = computed(() => { @@ -204,6 +204,13 @@ watch( }, ) +watch( + () => formModel.entry_group, + (g) => { + if (g === '创新组') formModel.company_name = '' + }, +) + const planFileItems = ref([]) const supportingFileItems = ref([]) const planFileSavedInfo = ref('') @@ -257,6 +264,7 @@ function textareaFieldPlaceholder(field: SignupFormSchemaField): string { function isFieldVisible(field: SignupFormSchemaField): boolean { if (field.type === 'file') return true + if (field.key === 'company_name') return formModel.entry_group !== '创新组' if (field.key === 'location_province' || field.key === 'location_city') { return isChina.value } @@ -1097,7 +1105,6 @@ onMounted(() => { aria-hidden="true" :disabled="formDisabled" > - @@ -1121,15 +1128,6 @@ onMounted(() => {