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 }}