diff --git a/apps/trigger/handler/impl/task/application_task.py b/apps/trigger/handler/impl/task/application_task.py index 0bc559f5763..29ec3d478a7 100644 --- a/apps/trigger/handler/impl/task/application_task.py +++ b/apps/trigger/handler/impl/task/application_task.py @@ -168,7 +168,8 @@ def get_application_parameters_setting(application): for field in ['audio', 'document', 'image', 'other', 'video']: v = file_upload_setting.get(field) if v: - application_parameter_setting[field] = {'required': False, 'default_value': [], 'type': 'array'} + application_parameter_setting[field + '_list'] = {'required': False, 'default_value': [], + 'type': 'array'} return application_parameter_setting diff --git a/ui/src/views/trigger/component/ApplicationParameter.vue b/ui/src/views/trigger/component/ApplicationParameter.vue index fe96b4024fb..57e09e8b43e 100644 --- a/ui/src/views/trigger/component/ApplicationParameter.vue +++ b/ui/src/views/trigger/component/ApplicationParameter.vue @@ -223,7 +223,7 @@ const base_field_list = computed>(() => { if (base_node.value.properties.node_data.file_upload_enable) { if (base_node.value.properties.node_data.file_upload_setting.document) { result.push({ - field: 'document', + field: 'document_list', required: true, default_value: '[]', label: { value: t('common.fileUpload.document') }, @@ -231,7 +231,7 @@ const base_field_list = computed>(() => { } if (base_node.value.properties.node_data.file_upload_setting.image) { result.push({ - field: 'image', + field: 'image_list', required: true, default_value: '[]', label: { value: t('common.fileUpload.image') }, @@ -239,7 +239,7 @@ const base_field_list = computed>(() => { } if (base_node.value.properties.node_data.file_upload_setting.audio) { result.push({ - field: 'audio', + field: 'audio_list', required: true, default_value: '[]', label: { value: t('common.fileUpload.audio') }, @@ -247,7 +247,7 @@ const base_field_list = computed>(() => { } if (base_node.value.properties.node_data.file_upload_setting.video) { result.push({ - field: 'video', + field: 'video_list', required: true, default_value: '[]', label: { value: t('common.fileUpload.video') }, @@ -256,7 +256,7 @@ const base_field_list = computed>(() => { if (base_node.value.properties.node_data.file_upload_setting.other) { result.push({ - field: 'other', + field: 'other_list', required: true, default_value: '[]', label: { value: t('common.fileUpload.other') },