From 9e045b05032c250bdcc1ae554d24d891fdd1b4c2 Mon Sep 17 00:00:00 2001 From: guoyue Date: Thu, 30 Jun 2022 10:33:23 +0800 Subject: [PATCH] =?UTF-8?q?=E8=81=94=E8=B0=83=E9=A5=BC=E5=9B=BEapi?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- back/src/views/modules/workBench/api.js | 40 ++++ .../workBench/components/dept-chart-view.vue | 195 +++++++++++++++++- .../workBench/components/dept-todo-view.vue | 1 + .../src/views/modules/workBench/workBench.vue | 94 ++++++++- 4 files changed, 312 insertions(+), 18 deletions(-) diff --git a/back/src/views/modules/workBench/api.js b/back/src/views/modules/workBench/api.js index 52da4412..add2d7d7 100644 --- a/back/src/views/modules/workBench/api.js +++ b/back/src/views/modules/workBench/api.js @@ -43,4 +43,44 @@ export const getHasToDoTask = (data, success, fail) => { }).catch(err => { fail && fail(err) }) +} + +// 上架统计《====》饼图 +export const getTotalByDept = (data, success, fail) => { + Request({ + methods: 'get', + url: '/resource/selectTotalByDept', + data + }).then(res => { + success && success(res) + }).catch(err => { + fail && fail(err) + }) +} + + +// 部门申请 +export const getApply = (data, success, fail) => { + Request({ + methods: 'get', + url: '/resource/selectTotalApplyByDept', + data + }).then(res => { + success && success(res) + }).catch(err => { + fail && fail(err) + }) +} + +// 部门需求 +export const getRequire = (data, success, fail) => { + Request({ + methods: 'get', + url: '/demanData/selectFlagCountByDepts', + data + }).then(res => { + success && success(res) + }).catch(err => { + fail && fail(err) + }) } \ No newline at end of file diff --git a/back/src/views/modules/workBench/components/dept-chart-view.vue b/back/src/views/modules/workBench/components/dept-chart-view.vue index 126c5706..c35139ec 100644 --- a/back/src/views/modules/workBench/components/dept-chart-view.vue +++ b/back/src/views/modules/workBench/components/dept-chart-view.vue @@ -1,22 +1,203 @@ \ No newline at end of file diff --git a/back/src/views/modules/workBench/components/dept-todo-view.vue b/back/src/views/modules/workBench/components/dept-todo-view.vue index a500f1b8..74394017 100644 --- a/back/src/views/modules/workBench/components/dept-todo-view.vue +++ b/back/src/views/modules/workBench/components/dept-todo-view.vue @@ -114,6 +114,7 @@ export default { .list-box { width: 314px; height: 252px; + padding: 0 16px; } .list-item { diff --git a/back/src/views/modules/workBench/workBench.vue b/back/src/views/modules/workBench/workBench.vue index a8033a0e..7f80c24f 100644 --- a/back/src/views/modules/workBench/workBench.vue +++ b/back/src/views/modules/workBench/workBench.vue @@ -4,9 +4,13 @@
- + +
+
+ + +
-
@@ -21,14 +25,16 @@ @@ -114,17 +184,19 @@ export default { .top { height: 284px; margin-bottom: 16px; - background: #fff; + } .dept-left { width: 836px; + background: #fff; + margin-right: 16px; } .dept-chart-box { width: 780px; height: 100%; - background: orange; + background: #fff; } } \ No newline at end of file