From 6d5ec8c345951cd0ceb2f98544db82762e6b50c7 Mon Sep 17 00:00:00 2001 From: Yuanjianghong Date: Fri, 10 Sep 2021 16:54:03 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/project/class.js | 4 +- src/views/project/ProjectList.vue | 66 +---- src/views/project/ProjectStepForm.vue | 52 +--- src/views/project/classAdd/ClassForm.vue | 111 ++++++++ src/views/project/classAdd/ClassList.vue | 39 +-- .../project/form/ProjectCourseSelect.vue | 13 +- src/views/project/form/ProjectForm.vue | 238 +++++++++--------- src/views/project/form/ProjectUnitSelect.vue | 3 +- src/views/security/role/RoleForm.vue | 2 +- 9 files changed, 282 insertions(+), 246 deletions(-) create mode 100644 src/views/project/classAdd/ClassForm.vue diff --git a/src/api/project/class.js b/src/api/project/class.js index cac2709..f13d54f 100644 --- a/src/api/project/class.js +++ b/src/api/project/class.js @@ -23,9 +23,9 @@ export function classGet(params) { } export function classDel (params) { return request({ - url: classApi.get, + url: classApi.del, method: 'delete', - data: params + params: params }) } export function classList(params) { diff --git a/src/views/project/ProjectList.vue b/src/views/project/ProjectList.vue index 414113b..239cf85 100644 --- a/src/views/project/ProjectList.vue +++ b/src/views/project/ProjectList.vue @@ -39,8 +39,7 @@ - 新增项目 - 删除项目 + 新增项目 {{ index + 1 }} diff --git a/src/views/project/ProjectStepForm.vue b/src/views/project/ProjectStepForm.vue index 89ee36e..7596177 100644 --- a/src/views/project/ProjectStepForm.vue +++ b/src/views/project/ProjectStepForm.vue @@ -2,7 +2,7 @@ { - // this.setMenuItem(record) - // // 默认加载菜单树 - // this.getMenuTree() - // }, 100) - this.formLoading = false }, diff --git a/src/views/project/classAdd/ClassForm.vue b/src/views/project/classAdd/ClassForm.vue new file mode 100644 index 0000000..5778689 --- /dev/null +++ b/src/views/project/classAdd/ClassForm.vue @@ -0,0 +1,111 @@ + + + + \ No newline at end of file diff --git a/src/views/project/classAdd/ClassList.vue b/src/views/project/classAdd/ClassList.vue index 8c7e439..494ea1b 100644 --- a/src/views/project/classAdd/ClassList.vue +++ b/src/views/project/classAdd/ClassList.vue @@ -1,37 +1,39 @@ diff --git a/src/views/project/form/ProjectCourseSelect.vue b/src/views/project/form/ProjectCourseSelect.vue index 08aee42..3f8a5d0 100644 --- a/src/views/project/form/ProjectCourseSelect.vue +++ b/src/views/project/form/ProjectCourseSelect.vue @@ -8,23 +8,22 @@ 查询 添加课程 + {{ index + 1 }} - - + @@ -140,6 +140,10 @@ export default { } }) }, + toPrep() { + console.log('toPrep', this.form) + this.$emit('prevStep',this.form) + }, onChange(targetKeys) { console.log('Target Keys:', targetKeys) this.targetKeys = targetKeys