From e7ffbe9fab4458d6cbf36a4188a769404d796160 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Tue, 29 Sep 2020 16:37:58 +0800 Subject: [PATCH 1/3] certappunti --- client/src/api/certapp.js | 8 + client/src/api/certappunit.js | 32 +++ client/src/styles/index.scss | 6 +- client/src/views/accessment/access.vue | 225 ++++++++++++++---- client/src/views/accessment/index.vue | 17 +- client/src/views/certapp/certunit.vue | 15 +- client/src/views/system/dict.vue | 7 +- .../migrations/0003_auto_20200929_1544.py | 44 ++++ .../migrations/0004_auto_20200929_1605.py | 35 +++ server/apps/accessment/models.py | 56 +++-- server/apps/accessment/serializers.py | 40 ++-- server/apps/accessment/urls.py | 16 +- server/apps/accessment/views.py | 51 ++-- .../migrations/0039_auto_20200929_1605.py | 35 +++ server/apps/project/models.py | 11 + server/apps/project/serializers.py | 22 +- server/apps/project/urls.py | 1 + server/apps/project/views.py | 36 ++- server/apps/system/serializers.py | 4 + server/server/urls.py | 2 +- 20 files changed, 504 insertions(+), 159 deletions(-) create mode 100644 client/src/api/certappunit.js create mode 100644 server/apps/accessment/migrations/0003_auto_20200929_1544.py create mode 100644 server/apps/accessment/migrations/0004_auto_20200929_1605.py create mode 100644 server/apps/project/migrations/0039_auto_20200929_1605.py diff --git a/client/src/api/certapp.js b/client/src/api/certapp.js index e942f60..06bca08 100644 --- a/client/src/api/certapp.js +++ b/client/src/api/certapp.js @@ -54,3 +54,11 @@ export function getCertapp(id) { method: 'get', }) } + +export function accessCertapp(id, data) { + return request({ + url: `/project/certapp/${id}/access/`, + method: 'put', + data + }) +} \ No newline at end of file diff --git a/client/src/api/certappunit.js b/client/src/api/certappunit.js new file mode 100644 index 0000000..27d943d --- /dev/null +++ b/client/src/api/certappunit.js @@ -0,0 +1,32 @@ +import request from '@/utils/request' + +export function getCertappunitList(query) { + return request({ + url: '/project/certappunit/', + method: 'get', + params: query + }) +} + +// export function createAccess(data) { +// return request({ +// url: '/accessment/certass/', +// method: 'post', +// data +// }) +// } + +// export function updateAccess(id, data) { +// return request({ +// url: `/accessment/certass/${id}/`, +// method: 'put', +// data +// }) +// } + +// export function deleteAccess(id) { +// return request({ +// url: `/accessment/certass/${id}/`, +// method: 'delete' +// }) +// } \ No newline at end of file diff --git a/client/src/styles/index.scss b/client/src/styles/index.scss index 797311f..b47aaea 100644 --- a/client/src/styles/index.scss +++ b/client/src/styles/index.scss @@ -98,6 +98,6 @@ div:focus { .el-button+.el-button { margin-left: 1px; } -.el-button { - border-radius: 0px; -} \ No newline at end of file +// .el-button { +// border-radius: 0px; +// } \ No newline at end of file diff --git a/client/src/views/accessment/access.vue b/client/src/views/accessment/access.vue index 65a662c..e243248 100644 --- a/client/src/views/accessment/access.vue +++ b/client/src/views/accessment/access.vue @@ -4,63 +4,196 @@
评定结论
- - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + +
+ 保存 +
+
+ + +
+ 业务涉及的认证单元 +
+ + + + + + + + + + + + + + +
\ No newline at end of file diff --git a/client/src/views/accessment/index.vue b/client/src/views/accessment/index.vue index c220e67..3798699 100644 --- a/client/src/views/accessment/index.vue +++ b/client/src/views/accessment/index.vue @@ -1,6 +1,7 @@