From 23e23d1392a249186591393e7210591d93f121b0 Mon Sep 17 00:00:00 2001 From: "xinxin.wu" Date: Thu, 31 Oct 2024 11:37:24 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E7=94=A8=E4=BE=8B):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=88=9B=E5=BB=BA=E7=94=A8=E4=BE=8B=E4=BF=9D?= =?UTF-8?q?=E5=AD=98=E5=B9=B6=E7=BB=A7=E7=BB=AD=E6=AD=A5=E9=AA=A4=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E6=9C=AA=E7=BB=A7=E6=89=BF=E6=A8=A1=E6=9D=BF=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/caseTemplateDetail.vue | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/frontend/src/views/case-management/caseManagementFeature/components/caseTemplateDetail.vue b/frontend/src/views/case-management/caseManagementFeature/components/caseTemplateDetail.vue index 541ae796ea..ebe48394f4 100644 --- a/frontend/src/views/case-management/caseManagementFeature/components/caseTemplateDetail.vue +++ b/frontend/src/views/case-management/caseManagementFeature/components/caseTemplateDetail.vue @@ -318,16 +318,16 @@ const formRef = ref(); const caseFormRef = ref(); + const initStepData: StepList = { + id: getGenerateId(), + step: '', + expected: '', + showStep: false, + showExpected: false, + }; + // 步骤描述 - const stepData = ref([ - { - id: getGenerateId(), - step: '', - expected: '', - showStep: false, - showExpected: false, - }, - ]); + const stepData = ref([{ ...initStepData }]); const featureCaseStore = useFeatureCaseStore(); const modelId = computed(() => featureCaseStore.moduleId[0] || 'root'); @@ -778,6 +778,7 @@ async function resetForm() { caseFormRef.value?.resetFields(); form.value = { ...initForm, templateId: form.value.templateId }; + stepData.value = [{ ...initStepData }]; await initDefaultFields(); form.value.customFields = formItem.value.map((item: any) => { return {