From 602d4e03fe3e807c5702390222159a312671963f Mon Sep 17 00:00:00 2001 From: v_xugzhou <941071842@qq.com> Date: Wed, 8 Jan 2025 15:05:57 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20api=E6=8F=92=E4=BB=B6=E5=8F=98=E9=87=8F?= =?UTF-8?q?=E5=BC=95=E7=94=A8=E6=97=B6=E6=A0=87=E9=A2=98=E6=8F=8F=E8=BF=B0?= =?UTF-8?q?=E9=9A=90=E8=97=8F=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D=20#85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../template/TemplateEdit/NodeConfig/InputParams.vue | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/frontend/src/views/template/TemplateEdit/NodeConfig/InputParams.vue b/frontend/src/views/template/TemplateEdit/NodeConfig/InputParams.vue index 568146b..40c9675 100644 --- a/frontend/src/views/template/TemplateEdit/NodeConfig/InputParams.vue +++ b/frontend/src/views/template/TemplateEdit/NodeConfig/InputParams.vue @@ -238,7 +238,7 @@ this.hookFormData[form] = varItem.value; this.hookFormSchema[form] = { ...schema }; this.formData[form] = `\${${form}}`; - this.setHookFormItem(formSchema, { form, title: schema.title }); + this.setHookFormItem(formSchema, { form, schema }); result = true; } } @@ -261,18 +261,19 @@ const result = await this.hookForm(path); if (!result) return; this.formData[path] = `\${${path}}`; - this.setHookFormItem(this.formsScheme, { form: path, title: schema.title }); + this.setHookFormItem(this.formsScheme, { form: path, schema }); this.$emit('update', tools.deepClone(this.formData)); } this.randomKey = new Date().getTime(); }, - setHookFormItem(formSchema, { form, title }) { + setHookFormItem(formSchema, { form, schema }) { formSchema.properties[form] = { extend: { can_hook: true, hook: true, }, - title, + title: schema.title, + description: schema.description, type: 'string', 'ui:component': { name: 'bfInput', @@ -535,7 +536,7 @@ // jsonSchema表单重置hook态 if (this.isJsonSchema) { const schema = this.hookFormSchema[form]; - this.setHookFormItem(this.formsScheme, { form, title: schema.title }); + this.setHookFormItem(this.formsScheme, { form, schema }); this.randomKey = new Date().getTime(); } },