diff --git a/src/views/project/ProjectStepForm.vue b/src/views/project/ProjectStepForm.vue index 0fd5982..da3a124 100644 --- a/src/views/project/ProjectStepForm.vue +++ b/src/views/project/ProjectStepForm.vue @@ -8,14 +8,17 @@ - +
+ - + + +
@@ -25,6 +28,9 @@ import Step1 from './form/ProjectForm' import Step2 from './form/ProjectUnitSelect' import Step3 from './form/ProjectCourseList' import Step4 from './form/ProjectPersonForm' +import step5 from './form/ProjectTestPaperFormationStrategy' +import result from './form/Result' + export default { components: { @@ -32,7 +38,10 @@ export default { Step2, Step3, Step4, + step5, + result, }, + data() { return { title: '', @@ -50,6 +59,7 @@ export default { confirmLoading: false, type: '', form: {}, + result: true, } }, methods: { @@ -67,23 +77,40 @@ export default { this.formLoading = false }, - // handler + //保存项目 + executeSave(childValue) { + console.log('保存项目', childValue) + if (true) { + this.currentTab = 8 + } + }, + + //保存并发布项目 + executeIssue(childValue) { + console.log('保存并发布项目', childValue) + if (true) { + this.currentTab = 8 + this.result = false + } + }, + //下一步 nextStep(childValue) { console.log('进入下一步', childValue) if (this.currentTab < 5) { - this.form = childValue; + this.form = childValue this.currentTab += 1 } }, //上一步 prevStep(childValue) { - console.log('返回上一步',childValue) + console.log('返回上一步', childValue) if (this.currentTab > 0) { this.form = childValue this.currentTab -= 1 } }, + finish() { this.currentTab = 0 }, diff --git a/src/views/project/form/ProjectPersonForm.vue b/src/views/project/form/ProjectPersonForm.vue index c7479cc..c20aa9d 100644 --- a/src/views/project/form/ProjectPersonForm.vue +++ b/src/views/project/form/ProjectPersonForm.vue @@ -90,8 +90,6 @@ export default { defaultExpandedKeys: [], selectedRowKeys: [], selectedRows: [], - keyData: [], //不动的key列表 - rowsData: [], //不动的数据列表 orgTree: [], orgId: '', orgType: 1, @@ -120,11 +118,11 @@ export default { methods: { //下一步 toNext() { - this.$emit('nextStep') + this.$emit('nextStep',this.selectedRowKeys) }, //上一步 toPrev() { - this.$emit('prevStep') + this.$emit('prevStep',this.selectedRowKeys) }, /** 表格行选中后触发 */ diff --git a/src/views/project/form/ProjectTestPaperFormationStrategy.vue b/src/views/project/form/ProjectTestPaperFormationStrategy.vue new file mode 100644 index 0000000..bcb23c4 --- /dev/null +++ b/src/views/project/form/ProjectTestPaperFormationStrategy.vue @@ -0,0 +1,62 @@ + + + + \ No newline at end of file diff --git a/src/views/project/form/Result.vue b/src/views/project/form/Result.vue new file mode 100644 index 0000000..5b0ca0b --- /dev/null +++ b/src/views/project/form/Result.vue @@ -0,0 +1,55 @@ + + + + \ No newline at end of file