From 1dd323587268f7eebd39027b780ee192d0dd0f1f Mon Sep 17 00:00:00 2001 From: Yuanjianghong Date: Mon, 29 Nov 2021 15:00:00 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E7=AE=A1=E7=90=86=E8=A1=A8?= =?UTF-8?q?=E5=8D=95=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/project/project.js | 14 +++- src/views/project/ProjectList.vue | 10 +-- src/views/project/ProjectStepForm.vue | 65 ++++++++++--------- src/views/project/form/ProjectCourseList.vue | 22 +++++-- .../project/form/ProjectCourseSelect.vue | 17 +++-- .../ProjectTestPaperFormationStrategy.vue | 6 +- 6 files changed, 84 insertions(+), 50 deletions(-) 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 @@