From bcaddcd4faf221ab0195f1e5ca51a8ffa6c1c616 Mon Sep 17 00:00:00 2001 From: guoyue Date: Fri, 1 Jul 2022 14:50:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E5=8F=B0=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- back/src/views/modules/workBench/api.js | 3 +- .../workBench/components/bottom-view.vue | 178 ++++++++++++++++-- .../workBench/components/dynamic-view.vue | 69 ------- .../components/frequency-top5-view.vue | 14 +- .../workBench/components/recommend-view.vue | 98 ---------- .../src/views/modules/workBench/workBench.vue | 2 + 6 files changed, 179 insertions(+), 185 deletions(-) delete mode 100644 back/src/views/modules/workBench/components/dynamic-view.vue delete mode 100644 back/src/views/modules/workBench/components/recommend-view.vue diff --git a/back/src/views/modules/workBench/api.js b/back/src/views/modules/workBench/api.js index da7c16a2..38aad1e9 100644 --- a/back/src/views/modules/workBench/api.js +++ b/back/src/views/modules/workBench/api.js @@ -116,7 +116,8 @@ export const getFrequence = (data, success, fail) => { export const getResourceByDept = (data, success, fail) => { Request({ methods: 'get', - url: '/resource/getByDept', + // url: '/resource/getByDept', + url: '/workdynamics/getDeptWork', data }).then(res => { success && success(res) diff --git a/back/src/views/modules/workBench/components/bottom-view.vue b/back/src/views/modules/workBench/components/bottom-view.vue index cf6da540..35aed927 100644 --- a/back/src/views/modules/workBench/components/bottom-view.vue +++ b/back/src/views/modules/workBench/components/bottom-view.vue @@ -1,53 +1,132 @@ \ No newline at end of file diff --git a/back/src/views/modules/workBench/components/dynamic-view.vue b/back/src/views/modules/workBench/components/dynamic-view.vue deleted file mode 100644 index fea8cda8..00000000 --- a/back/src/views/modules/workBench/components/dynamic-view.vue +++ /dev/null @@ -1,69 +0,0 @@ - - - - - \ No newline at end of file diff --git a/back/src/views/modules/workBench/components/frequency-top5-view.vue b/back/src/views/modules/workBench/components/frequency-top5-view.vue index 9764f74e..49938ded 100644 --- a/back/src/views/modules/workBench/components/frequency-top5-view.vue +++ b/back/src/views/modules/workBench/components/frequency-top5-view.vue @@ -4,15 +4,22 @@
-
{{ no2Obj.name || '--' }}
+ +
{{ no2Obj.name || '--' }}
+
{{ formatCount(no2Obj.count) }}
-
{{ no1Obj.name || '--' }}
+ +
{{ no1Obj.name || '--' }}
+
{{ formatCount(no1Obj.count) }}
-
{{ no3Obj.name || '--' }}
+ +
{{ no3Obj.name || '--' }}
+
+
{{ formatCount(no3Obj.count) }}
@@ -174,6 +181,7 @@ export default { margin-bottom: 10px; margin-top: 70px; width: 150px; + text-align: center; } .count { diff --git a/back/src/views/modules/workBench/components/recommend-view.vue b/back/src/views/modules/workBench/components/recommend-view.vue deleted file mode 100644 index c07032b0..00000000 --- a/back/src/views/modules/workBench/components/recommend-view.vue +++ /dev/null @@ -1,98 +0,0 @@ - - - - - \ No newline at end of file diff --git a/back/src/views/modules/workBench/workBench.vue b/back/src/views/modules/workBench/workBench.vue index 95b6f0f8..04cb45a4 100644 --- a/back/src/views/modules/workBench/workBench.vue +++ b/back/src/views/modules/workBench/workBench.vue @@ -212,6 +212,8 @@ export default { } .work-brnch-box { + padding-bottom: 20px; + .top { height: 284px; margin-bottom: 16px;