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