From 86d80a3b1a768441af65dfd2321b65c606b1d322 Mon Sep 17 00:00:00 2001 From: Yuanjianghong Date: Thu, 26 Aug 2021 16:30:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E9=83=A8=E9=97=A8=E9=80=89?= =?UTF-8?q?=E6=8B=A9=E8=A7=86=E5=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/project/project.js | 8 ++ src/config/router.config.js | 6 ++ src/views/project/ProjectForm.vue | 97 ++++++++++++++----------- src/views/project/ProjectList.vue | 1 + src/views/project/ProjectUnitSelect.vue | 38 ++++++++++ 5 files changed, 109 insertions(+), 41 deletions(-) create mode 100644 src/views/project/ProjectUnitSelect.vue diff --git a/src/api/project/project.js b/src/api/project/project.js index 6edb944..5dcef94 100644 --- a/src/api/project/project.js +++ b/src/api/project/project.js @@ -2,6 +2,7 @@ import request from '@/utils/request' const projectApi = { add: 'project/add', + getDict:'projecct/getDict', // get: 'sys/menu/get', // update: 'sys/menu/update', // del: 'sys/menu/delete', @@ -16,6 +17,13 @@ export function projectAdd (params) { data: params }) } +export function dictGet (params) { + return request({ + url: projectApi.getDict, + method: 'get', + params: params + }) +} // export function menuGet (params) { // return request({ // url: menuApi.get, diff --git a/src/config/router.config.js b/src/config/router.config.js index bbb8161..5681c28 100644 --- a/src/config/router.config.js +++ b/src/config/router.config.js @@ -90,6 +90,12 @@ export const asyncRouterMap = [ component: () => import('@/views/project/ProjectForm'), meta: { title: '新增项目', keepAlive: true, permission: ['form'] } }, + { + path: '/project/unitSelect', + name: 'unitSelect', + component: () => import('@/views/project/ProjectUnitSelect'), + meta: { title: '部门选择', keepAlive: true, permission: ['form'] } + }, { path: '/form/step-form', name: 'StepForm', diff --git a/src/views/project/ProjectForm.vue b/src/views/project/ProjectForm.vue index 726162d..12eaf19 100644 --- a/src/views/project/ProjectForm.vue +++ b/src/views/project/ProjectForm.vue @@ -2,10 +2,15 @@ - + - + Zone one Zone two @@ -26,90 +31,100 @@ - Zone one - Zone two + {{ item.name }} - + - - + - + - + - - + - + - + - - + - - - - - - - - - Online - Promotion - Offline - - - - - Sponsor - Venue + + + + + + 补考次数: + + + + + 随机补考 + + + + + + 允许 + 不允许 - - + + - 提交 + 下一步 取消 + diff --git a/src/views/project/ProjectUnitSelect.vue b/src/views/project/ProjectUnitSelect.vue new file mode 100644 index 0000000..0b04684 --- /dev/null +++ b/src/views/project/ProjectUnitSelect.vue @@ -0,0 +1,38 @@ + + + + \ No newline at end of file