From d2460b321cf0b5fbf4c7ddc8e0837fdebce637f5 Mon Sep 17 00:00:00 2001 From: guoyue Date: Mon, 18 Jul 2022 14:17:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E5=8F=B0=EF=BC=9A=E5=B7=A5?= =?UTF-8?q?=E4=BD=9C=E5=8A=A8=E6=80=81=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../workBench/components/bottom-view.vue | 40 ++++++++++++++----- .../workBench/components/dept-todo-view.vue | 20 +++++++--- .../src/views/modules/workBench/workBench.vue | 20 +++++++--- 3 files changed, 61 insertions(+), 19 deletions(-) diff --git a/back/src/views/modules/workBench/components/bottom-view.vue b/back/src/views/modules/workBench/components/bottom-view.vue index 75368b2d..359c7e9d 100644 --- a/back/src/views/modules/workBench/components/bottom-view.vue +++ b/back/src/views/modules/workBench/components/bottom-view.vue @@ -8,12 +8,13 @@
{{ item.createDate }}
- +
{{ item.title || '--' }}
+
查看更多 >
@@ -34,7 +35,7 @@ export default { components: { contentTitle }, - data () { + data() { return { title: { dynamic: '部门发布动态', recommend: '部门推荐能力' }, list: [], @@ -76,13 +77,13 @@ export default { loadingTable: false } }, - mounted () { + mounted() { this.getResourceByDept() this.getApplyByDept() }, methods: { // 发布动态 - getResourceByDept () { + getResourceByDept() { const data = { limit: 5, page: 1 @@ -108,7 +109,7 @@ export default { ) }, // 部门推荐能力 - getApplyByDept () { + getApplyByDept() { const data = { limit: 5, page: 1 @@ -130,7 +131,12 @@ export default { console.log('err', err) } ) - } + }, + jumpTo() { + this.$router.push({ + path: 'activiti-my-work-dynamics' + }); + }, } } @@ -153,7 +159,8 @@ export default { background: #fff; width: 800px; height: 335px; - padding: 0px 0 20px 10px; + padding: 0px 0 0 10px; + box-sizing: border-box; } } @@ -171,7 +178,7 @@ export default { margin-bottom: 7px; .wrapper { - height: 50px; + height: 45px; width: 770px; display: flex; flex-direction: row; @@ -199,7 +206,7 @@ export default { } .right { - font-size: 18px; + font-size: 16px; color: #464645; width: 600px; } @@ -207,6 +214,16 @@ export default { } } +.more { + cursor: pointer; + text-align: right; + padding-top: 4px; + display: inline-block; + width: 100%; + color: #2b2b2b; + font-size: 14px; +} + .recommendView { cursor: pointer; width: 770px; @@ -220,3 +237,8 @@ export default { background-color: #f4f5f8; } + 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 3864a583..c7d872e0 100644 --- a/back/src/views/modules/workBench/components/dept-todo-view.vue +++ b/back/src/views/modules/workBench/components/dept-todo-view.vue @@ -12,16 +12,26 @@
-
- - + +
- {{ item[dataInfo.nameStr] || '--' }} + {{ `${(item.processDefinitionName || '--')}${item.taskName ? ('—' + item.taskName) : ''}` }} +
+
+ + +
+ {{ `${(item.processDefinitionName || '--')}${item.resourceName ? ('—' + item.resourceName) : + ''}` + }}
-
查看更多 >
diff --git a/back/src/views/modules/workBench/workBench.vue b/back/src/views/modules/workBench/workBench.vue index 95f5bca3..97a1a0b4 100644 --- a/back/src/views/modules/workBench/workBench.vue +++ b/back/src/views/modules/workBench/workBench.vue @@ -9,13 +9,13 @@
+ ref="resourceChart" :colorArray="resourceColor"> - + ref="requireChart" :colorArray="requireColor">
@@ -54,7 +54,7 @@ export default { textColor: '#f86f01', num: 0, list: [], - nameStr: 'taskName', + type: 'todo', url: 'activiti-my-todo-task' }, // 部门已办 @@ -67,7 +67,6 @@ export default { textColor: '#21b107', num: 0, list: [], - nameStr: 'processDefinitionName', url: 'activiti-my-join-task' }, // 部门申请 @@ -134,6 +133,7 @@ export default { console.log('res----已办-------->', res.data); this.hasToDodoData.list = res.data.data.records || [] this.hasToDodoData.num = res.data.data.total || 0 + }, err => { this.$message.error(err) this.loadingHasToDo = false; @@ -150,6 +150,9 @@ export default { } console.log('res----部门上架-------->', res.data); this.resourceData = this.formatList(res.data.data.total || []) + this.$nextTick(() => { + this.$refs.resourceChart.initChart(this.resourceData) + }) }, err => { this.$message.error(err) this.loadingResource = false; @@ -165,6 +168,10 @@ export default { } console.log('res----部门申请-------->', res.data); this.applyData = this.formatList(res.data.data.total || []) + this.$nextTick(() => { + console.log('this.applyData------------>', this.applyData); + this.$refs.applyChart.initChart(this.applyData) + }) }, err => { this.$message.error(err) this.loadingApply = false; @@ -190,6 +197,9 @@ export default { } console.log('res----部门需求-------->', res.data); this.requireData = this.formatList(res.data.data.total || [], 'flag') + this.$nextTick(() => { + this.$refs.requireChart.initChart(this.requireData) + }) }, err => { this.$message.error(err)