From dba0c4826d0757e081fc5c09e61e7657f5eb701f Mon Sep 17 00:00:00 2001 From: caoqianming Date: Tue, 27 Oct 2020 08:45:19 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=88=9B=E5=BB=BA=E7=A9=BA=E9=A1=B9?= =?UTF-8?q?=E7=9B=AE,=E6=B5=81=E7=A8=8B=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/src/api/project.js | 7 + client/src/router/index.js | 9 +- client/src/styles/index.scss | 5 + client/src/views/audit/task.vue | 12 +- client/src/views/certapp/certapp.vue | 68 +++---- client/src/views/certapp/certappchose.vue | 172 ++++++++++++++++++ .../src/views/enterprise/enterprisechoose.vue | 5 +- client/src/views/project/handle.vue | 44 ++++- client/src/views/project/project.vue | 91 +++++---- server/apps/project/views.py | 16 +- 10 files changed, 335 insertions(+), 94 deletions(-) create mode 100644 client/src/views/certapp/certappchose.vue diff --git a/client/src/api/project.js b/client/src/api/project.js index c4ff8ec..b320acb 100644 --- a/client/src/api/project.js +++ b/client/src/api/project.js @@ -39,6 +39,13 @@ export function getProject(id) { }) } +export function toplanProject(id) { + return request({ + url: `/project/project/${id}/toplan/`, + method: 'put' + }) +} + export function assginProject(id) { return request({ url: `/project/project/${id}/assgin/`, diff --git a/client/src/router/index.js b/client/src/router/index.js index 8367d97..6f9dd4a 100644 --- a/client/src/router/index.js +++ b/client/src/router/index.js @@ -100,7 +100,7 @@ export const asyncRoutes = [ hidden: true }, { - path: 'certapp/create/:id/', + path: 'certapp/create/:kind/', name: 'Certappcreate', component: () => import('@/views/certapp/certappcreate'), meta: { title: '申请受理单创建', icon: 'example', perms: ['certapp_create'] }, @@ -120,6 +120,13 @@ export const asyncRoutes = [ meta: { title: '业务详情', icon: 'example', perms: ['certapp_detail'] }, hidden: true }, + { + path: 'project/:id/update/', + name: 'Projectupdate', + component: () => import('@/views/project/handle'), + meta: { title: '编辑项目', icon: 'example', perms: ['project_update'] }, + hidden: true + }, ] }, { diff --git a/client/src/styles/index.scss b/client/src/styles/index.scss index bacfa40..65008d6 100644 --- a/client/src/styles/index.scss +++ b/client/src/styles/index.scss @@ -62,6 +62,11 @@ div:focus { // main-container global css .app-container { padding: 10px; + overflow-y: hidden; +} + +body .el-table th.gutter{ + display: table-cell!important; } .el-table--medium td,   .el-table--medium th { diff --git a/client/src/views/audit/task.vue b/client/src/views/audit/task.vue index 6c62067..8709e74 100644 --- a/client/src/views/audit/task.vue +++ b/client/src/views/audit/task.vue @@ -97,7 +97,7 @@ {{ scope.row.create_time }} - + - + - + @@ -102,15 +80,17 @@ @@ -145,13 +125,12 @@ export default { page: 1, page_size: 20 }, - deptOptions: [], + fieldOptions: [], field_list:[] }; }, created() { this.getList() - this.getdeptOptions() this.getfields() }, methods: { @@ -165,11 +144,11 @@ export default { this.listLoading = false }); }, - getdeptOptions() { - getOrgList().then(res=>{ - this.deptOptions = genTree(res.data) - }) - }, + // getdeptOptions() { + // getOrgList().then(res=>{ + // this.deptOptions = genTree(res.data) + // }) + // }, resetFilter() { this.listQuery = { page: 1, @@ -203,6 +182,7 @@ deleteCertapp(scope.row.id).then(res=>{ getfields(){ getDictList({type__code:'cert_field'}).then(res=>{ let fields = [] + this.fieldOptions = genTree(res.data) for(var i=0;i +
+
+ + + 搜索 + 重置 +
+ + + + + + + + + + + + + + + + + + + + + + + + +
+ + diff --git a/client/src/views/enterprise/enterprisechoose.vue b/client/src/views/enterprise/enterprisechoose.vue index 2c5366a..9dfebf0 100644 --- a/client/src/views/enterprise/enterprisechoose.vue +++ b/client/src/views/enterprise/enterprisechoose.vue @@ -12,14 +12,13 @@ icon="el-icon-search" @click="handleFilter">搜索 刷新重置 + @click="resetFilter">重置 业务信息 + 添加申请 {{ scope.row.create_time }}
- + @@ -466,9 +473,19 @@ width="80%" :append-to-body="true" > - + + + + + - \ No newline at end of file diff --git a/client/src/views/plan/paichai.vue b/client/src/views/plan/paichai.vue index a2ac442..5a9c9ca 100644 --- a/client/src/views/plan/paichai.vue +++ b/client/src/views/plan/paichai.vue @@ -47,7 +47,6 @@ @@ -122,7 +120,6 @@
diff --git a/client/src/views/plan/plan.vue b/client/src/views/plan/plan.vue index 7c7197e..0b4e777 100644 --- a/client/src/views/plan/plan.vue +++ b/client/src/views/plan/plan.vue @@ -29,22 +29,20 @@
@@ -100,29 +98,11 @@ - + - - + - + diff --git a/client/src/views/project/handle.vue b/client/src/views/project/handle.vue index 4f60fcb..68b6a03 100644 --- a/client/src/views/project/handle.vue +++ b/client/src/views/project/handle.vue @@ -1,144 +1,175 @@