From 9b8f1a3ee88e56c28bcddf581dea31cecd3879f0 Mon Sep 17 00:00:00 2001 From: Yuanjianghong Date: Mon, 22 Nov 2021 20:31:57 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E7=AE=A1=E7=90=86Form?= =?UTF-8?q?=E8=A1=A8=E5=8D=95=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/project/ProjectStepForm.vue | 19 ++- .../ProjectTestPaperFormationStrategy.vue | 142 ++++++++++++++++-- 2 files changed, 147 insertions(+), 14 deletions(-) diff --git a/src/views/project/ProjectStepForm.vue b/src/views/project/ProjectStepForm.vue index a4ffb11..ef1e316 100644 --- a/src/views/project/ProjectStepForm.vue +++ b/src/views/project/ProjectStepForm.vue @@ -16,7 +16,13 @@ - + @@ -64,7 +70,8 @@ export default { confirmLoading: false, type: '', form: { - trainWay: '1', + trainWay: '2', + totalScore: '100', }, result: true, status: '', @@ -108,7 +115,9 @@ export default { nextStep(childValue) { console.log('进入下一步', childValue) if (this.currentTab < 5) { - this.form = childValue + if (childValue) { + this.form = childValue + } this.currentTab += 1 } console.log('ProjectStepForm表单数据', this.form) @@ -117,7 +126,9 @@ export default { prevStep(childValue) { console.log('返回上一步', childValue) if (this.currentTab > 0) { - this.form = childValue + if (childValue) { + this.form = childValue + } this.currentTab -= 1 } console.log('ProjectStepForm表单数据', this.form) diff --git a/src/views/project/form/ProjectTestPaperFormationStrategy.vue b/src/views/project/form/ProjectTestPaperFormationStrategy.vue index 8fb748c..a4ab1ae 100644 --- a/src/views/project/form/ProjectTestPaperFormationStrategy.vue +++ b/src/views/project/form/ProjectTestPaperFormationStrategy.vue @@ -1,12 +1,52 @@