diff --git a/src/api/project/project.js b/src/api/project/project.js index 6355e9f..c42a51b 100644 --- a/src/api/project/project.js +++ b/src/api/project/project.js @@ -4,7 +4,8 @@ const projectApi = { add: 'project/add', getDict:'project/dict/get', list: 'project/pageList', - projectCourseList: '' + get: 'project/get', + projectCourseList: '', } export function projectAdd (params) { @@ -21,6 +22,7 @@ export function dictGet (params) { params: params }) } + export function getProjectList (params) { return request({ url: projectApi.list, @@ -28,3 +30,13 @@ export function getProjectList (params) { params: params }) } + + +export function getProjectDetail (params) { + return request({ + url: projectApi.get, + method: 'get', + params: params + }) +} + diff --git a/src/views/project/ProjectList.vue b/src/views/project/ProjectList.vue index 842e280..8bdcc46 100644 --- a/src/views/project/ProjectList.vue +++ b/src/views/project/ProjectList.vue @@ -48,13 +48,13 @@ @@ -136,9 +136,9 @@ export default { this.$router.push({ path: '/project/projectStepForm', query: { - id: record.id, - projectQueryParam: this.queryParam, - projectPageNum: this.$refs.table.localPagination.current + projectId: record.id, //项目id + projectQueryParam: this.queryParam, //查询参数 + projectPageNum: this.$refs.table.localPagination.current //当前页 } }); } diff --git a/src/views/project/ProjectStepForm.vue b/src/views/project/ProjectStepForm.vue index ef1e316..9f13b4a 100644 --- a/src/views/project/ProjectStepForm.vue +++ b/src/views/project/ProjectStepForm.vue @@ -30,6 +30,7 @@