diff --git a/client/src/api/certappunit.js b/client/src/api/certappunit.js index 27d943d..41b5b10 100644 --- a/client/src/api/certappunit.js +++ b/client/src/api/certappunit.js @@ -7,7 +7,40 @@ export function getCertappunitList(query) { params: query }) } - +export function getCertappunit(id) { + return request({ + url: `/project/certappunit/${id}/`, + method: 'get' + }) +} +export function accessCertappunit(id,data) { + return request({ + url: `/project/certappunit/${id}/access/`, + method: 'put', + data + }) +} +export function testtaskCertappunit(id,data) { + return request({ + url: `/project/certappunit/${id}/testtask/`, + method: 'put', + data + }) +} +export function teststateCertappunit(id,data) { + return request({ + url: `/project/certappunit/${id}/teststate/`, + method: 'put', + data + }) +} +export function createsamplesCertappunit(id,data) { + return request({ + url: `/project/certappunit/${id}/createsamples/`, + method: 'put', + data + }) +} // export function createAccess(data) { // return request({ // url: '/accessment/certass/', diff --git a/client/src/api/certificate.js b/client/src/api/certificate.js new file mode 100644 index 0000000..4f77876 --- /dev/null +++ b/client/src/api/certificate.js @@ -0,0 +1,19 @@ +import request from '@/utils/request' + +export function getCertificateList(query) { + return request({ + url: '/certificate/certificate/', + method: 'get', + params: query + }) +} + +export function createCertificate(data) { + return request({ + url: '/certificate/certificate/', + method: 'post', + data + }) +} + + diff --git a/client/src/router/index.js b/client/src/router/index.js index 1411268..d0d6598 100644 --- a/client/src/router/index.js +++ b/client/src/router/index.js @@ -212,6 +212,19 @@ export const asyncRoutes = [ component: () => import('@/views/testorg/testorgnotice'), meta: { title: '实验室通知公告', icon: 'example', perms: ['testorg_manage'] } }, + { + path: 'taskmanagement', + name: 'TaskManagement', + component: () => import('@/views/testorg/taskmanagement'), + meta: { title: '任务管理', icon: 'example', perms: ['testorg_manage'] } + }, + { + path: 'feedback/create', + name: 'FeedbackCreate', + component: () => import('@/views/testorg/feedback.vue'), + meta: { title: '任务反馈', noCache: true, icon: '', perms: ['feedback_create']}, + hidden: true + }, ] }, @@ -244,12 +257,25 @@ export const asyncRoutes = [ name: 'CertificateManage', meta: { title: '证书管理', icon: 'example'}, children: [ + { + path: 'issueindex', + name: 'issueindex', + component: () => import('@/views/certificate/issueindex'), + meta: { title: '证书颁发', icon: 'example', perms: ['certificate_issue'] } + }, { path: 'index', name: 'Certificate', component: () => import('@/views/certificate/index'), meta: { title: '证书管理', icon: 'example', perms: ['certificate_view'] } }, + { + path: 'certapp/:id/:action/', + name: 'Certissue', + component: () => import('@/views/certapp/certapphandle'), + meta: { title: '证书颁发', icon: 'example', perms: ['certificate_issue'] }, + hidden: true + }, ] }, { diff --git a/client/src/views/accessment/access.vue b/client/src/views/accessment/access.vue index e243248..779a3c3 100644 --- a/client/src/views/accessment/access.vue +++ b/client/src/views/accessment/access.vue @@ -69,7 +69,7 @@ > - + - + --> + + \ No newline at end of file diff --git a/client/src/views/certificate/index.vue b/client/src/views/certificate/index.vue index c220e67..a47f996 100644 --- a/client/src/views/certificate/index.vue +++ b/client/src/views/certificate/index.vue @@ -59,7 +59,7 @@ diff --git a/client/src/views/certificate/issue.vue b/client/src/views/certificate/issue.vue new file mode 100644 index 0000000..59431cf --- /dev/null +++ b/client/src/views/certificate/issue.vue @@ -0,0 +1,136 @@ + + \ No newline at end of file diff --git a/client/src/views/certificate/issueindex.vue b/client/src/views/certificate/issueindex.vue new file mode 100644 index 0000000..261f709 --- /dev/null +++ b/client/src/views/certificate/issueindex.vue @@ -0,0 +1,180 @@ + + diff --git a/client/src/views/plan/handle.vue b/client/src/views/plan/handle.vue index ec4d256..bd3da2f 100644 --- a/client/src/views/plan/handle.vue +++ b/client/src/views/plan/handle.vue @@ -45,7 +45,7 @@
当前状态 - {{project.status}} + {{project.state}}
下达人 @@ -111,7 +111,7 @@ --> - + - + - + @@ -170,7 +170,7 @@ - + --> - + - + @@ -139,7 +139,7 @@ export default { tableData: [], listLoading: true, listQuery: { - status: "已受理", + state: "已受理", }, deptOptions: [], field_list: [], @@ -166,7 +166,7 @@ export default { }, resetFilter() { this.listQuery = { - status: "已受理", + state: "已受理", }; this.getList(); }, diff --git a/client/src/views/project/project.vue b/client/src/views/project/project.vue index 761c364..292441d 100644 --- a/client/src/views/project/project.vue +++ b/client/src/views/project/project.vue @@ -30,7 +30,7 @@ - + @@ -44,7 +44,7 @@