From 4cf34a5ccc2d94e78ae06db2527d46bcb463013e Mon Sep 17 00:00:00 2001 From: hbzgyjh Date: Sun, 21 Nov 2021 01:59:40 +0800 Subject: [PATCH] =?UTF-8?q?'=E9=A1=B9=E7=9B=AE=E8=A1=A8=E5=8D=95=E6=9B=B4?= =?UTF-8?q?=E6=96=B0'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/request.js | 2 +- src/views/project/ProjectStepForm.vue | 37 +++++++++++------- src/views/project/form/ProjectCourseList.vue | 38 ++++++++++++++++--- src/views/project/form/ProjectForm.vue | 9 ++--- src/views/project/form/ProjectPersonForm.vue | 20 ++++++++-- .../ProjectTestPaperFormationStrategy.vue | 16 +++++--- src/views/project/form/ProjectUnitSelect.vue | 10 +++-- src/views/project/form/Result.vue | 16 +++++--- 8 files changed, 105 insertions(+), 43 deletions(-) diff --git a/src/utils/request.js b/src/utils/request.js index c3bea4e..5ba50c2 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -20,7 +20,7 @@ const toast = (msg, description) => { const request = axios.create({ // API 请求的默认前缀 baseURL: process.env.VUE_APP_API_BASE_URL, - timeout: 6000 // 请求超时时间 + timeout: 60000 // 请求超时时间 }) // 异常拦截处理器 diff --git a/src/views/project/ProjectStepForm.vue b/src/views/project/ProjectStepForm.vue index 71e0cf5..a4ffb11 100644 --- a/src/views/project/ProjectStepForm.vue +++ b/src/views/project/ProjectStepForm.vue @@ -5,20 +5,20 @@ - - - + + +
- - - - - - - - + + + + + + + +
@@ -31,7 +31,6 @@ import Step4 from './form/ProjectPersonForm' import step5 from './form/ProjectTestPaperFormationStrategy' import result from './form/Result' - export default { components: { Step1, @@ -41,7 +40,13 @@ export default { step5, result, }, - + //生命周期 - 创建完成(可以访问当前this实例) + created() { + console.log('分步表单创建完成') + }, + destroyed() { + console.log('分步表单销毁了。。。。。') + }, //生命周期 - 销毁完成 data() { return { title: '', @@ -58,7 +63,9 @@ export default { visible: false, confirmLoading: false, type: '', - form: {}, + form: { + trainWay: '1', + }, result: true, status: '', } @@ -104,6 +111,7 @@ export default { this.form = childValue this.currentTab += 1 } + console.log('ProjectStepForm表单数据', this.form) }, //上一步 prevStep(childValue) { @@ -112,6 +120,7 @@ export default { this.form = childValue this.currentTab -= 1 } + console.log('ProjectStepForm表单数据', this.form) }, finish() { diff --git a/src/views/project/form/ProjectCourseList.vue b/src/views/project/form/ProjectCourseList.vue index e12d395..75f2db1 100644 --- a/src/views/project/form/ProjectCourseList.vue +++ b/src/views/project/form/ProjectCourseList.vue @@ -10,7 +10,7 @@ - {{ index + 1 }} + {{ index + 1 }}