From 2e71de1cec58e26c38cfd40e1997735607412508 Mon Sep 17 00:00:00 2001 From: Yuanjianghong Date: Mon, 6 Sep 2021 11:59:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9A=82=E5=AD=98=E7=9A=84=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/project/class.js | 38 +++ src/views/project/AddClass.vue | 36 --- src/views/project/ProjectList.vue | 23 +- src/views/project/ProjectStepForm.vue | 147 ++++++++++ src/views/project/classAdd/ClassList.vue | 65 +++++ .../project/form/ProjectCourseSelect.vue | 83 +++--- src/views/project/form/ProjectForm.vue | 258 +++++++++--------- src/views/project/form/ProjectStepForm.vue | 72 ----- src/views/project/form/ProjectUnitSelect.vue | 84 +++--- 9 files changed, 464 insertions(+), 342 deletions(-) create mode 100644 src/api/project/class.js delete mode 100644 src/views/project/AddClass.vue create mode 100644 src/views/project/ProjectStepForm.vue create mode 100644 src/views/project/classAdd/ClassList.vue delete mode 100644 src/views/project/form/ProjectStepForm.vue diff --git a/src/api/project/class.js b/src/api/project/class.js new file mode 100644 index 0000000..cac2709 --- /dev/null +++ b/src/api/project/class.js @@ -0,0 +1,38 @@ +import request from '@/utils/request' + +const classApi = { + get: '/project/species/get', + add: '/project/species/add', + del: '/project/species/del', + list: '/project/species/pageList' +} + +export function classAdd(params) { + return request({ + url: classApi.add, + method: 'post', + data: params + }) +} +export function classGet(params) { + return request({ + url: classApi.getDict, + method: 'get', + params: params + }) +} +export function classDel (params) { + return request({ + url: classApi.get, + method: 'delete', + data: params + }) +} +export function classList(params) { + console.log("------------{}", params) + return request({ + url: classApi.list, + method: 'get', + params: params + }) +} diff --git a/src/views/project/AddClass.vue b/src/views/project/AddClass.vue deleted file mode 100644 index 036daba..0000000 --- a/src/views/project/AddClass.vue +++ /dev/null @@ -1,36 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/views/project/ProjectList.vue b/src/views/project/ProjectList.vue index d8bd0cc..414113b 100644 --- a/src/views/project/ProjectList.vue +++ b/src/views/project/ProjectList.vue @@ -38,9 +38,9 @@ 重置 - - 新建 - 删除 + + 新增项目 + 删除项目 + @@ -75,16 +76,12 @@ import moment from 'moment' import { STable } from '@/components' import { getProjectList } from '@/api/project/project' -import ProjectForm from '@/views/project/form/ProjectForm' -import router from '@/router/index.js' +import projectStepForm from './ProjectStepForm' export default { - name: 'ProjectList', - props: {}, components: { STable, - ProjectForm, - router, + projectStepForm, }, data() { return { @@ -153,10 +150,10 @@ export default { methods: { // 增 handledCreate() { - return this.$router.push( - // {name: 'ProjectForm'} - { path: 'project/project/add' } - ) + // return this.$router.push( + // // {name: 'ProjectForm'} + // { path: 'project/project/add' } + // ) // router.push() }, diff --git a/src/views/project/ProjectStepForm.vue b/src/views/project/ProjectStepForm.vue new file mode 100644 index 0000000..89ee36e --- /dev/null +++ b/src/views/project/ProjectStepForm.vue @@ -0,0 +1,147 @@ + + + + + diff --git a/src/views/project/classAdd/ClassList.vue b/src/views/project/classAdd/ClassList.vue new file mode 100644 index 0000000..8c7e439 --- /dev/null +++ b/src/views/project/classAdd/ClassList.vue @@ -0,0 +1,65 @@ + + + + + \ No newline at end of file diff --git a/src/views/project/form/ProjectCourseSelect.vue b/src/views/project/form/ProjectCourseSelect.vue index 8d6824f..08aee42 100644 --- a/src/views/project/form/ProjectCourseSelect.vue +++ b/src/views/project/form/ProjectCourseSelect.vue @@ -1,49 +1,42 @@ diff --git a/src/views/project/form/ProjectStepForm.vue b/src/views/project/form/ProjectStepForm.vue deleted file mode 100644 index 745058b..0000000 --- a/src/views/project/form/ProjectStepForm.vue +++ /dev/null @@ -1,72 +0,0 @@ - - - - - diff --git a/src/views/project/form/ProjectUnitSelect.vue b/src/views/project/form/ProjectUnitSelect.vue index 9101380..cecb7b8 100644 --- a/src/views/project/form/ProjectUnitSelect.vue +++ b/src/views/project/form/ProjectUnitSelect.vue @@ -1,49 +1,47 @@