From 1c87fc91195ae116d7e491530137d0be01ce7f95 Mon Sep 17 00:00:00 2001 From: yangfeng <wanwan926_4@163.com> Date: 星期三, 06 十二月 2023 15:44:34 +0800 Subject: [PATCH] 人员生产效率、设备负荷对比、物料需求、车间正品率样式修改及文字显示处理 --- src/views/cockpitPage/components/PerSonnelProductivity.vue | 22 +++++++++++++++++++++- 1 files changed, 21 insertions(+), 1 deletions(-) diff --git a/src/views/cockpitPage/components/PerSonnelProductivity.vue b/src/views/cockpitPage/components/PerSonnelProductivity.vue index 832d68f..54a1eb7 100644 --- a/src/views/cockpitPage/components/PerSonnelProductivity.vue +++ b/src/views/cockpitPage/components/PerSonnelProductivity.vue @@ -84,6 +84,9 @@ show: false, startValue: this.startValue, // 浠庡ご寮�濮� endValue: this.endValue, // 涓�娆℃�у睍绀哄嚑涓� + zoomOnMouseWheel: false, + moveOnMouseWheel: true, + moveOnMouseMove: true, }, ], legend: { @@ -163,6 +166,9 @@ textStyle: { color: "#00FFFF", }, + formatter: function (value) { + return `${value}%`; + }, }, }, ], @@ -174,7 +180,21 @@ label: { show: true, position: "right", - color: "#00FFFF", + formatter: function (params) { + if (params.dataIndex % 2 == 0) { + return `{a|${params.value}%}`; + } else { + return `{b|${params.value}%}`; + } + }, + rich: { + a: { + color: "#00FFFF", + }, + b: { + color: "#dcb018", + }, + }, }, itemStyle: { normal: { -- Gitblit v1.8.0