From bb7f2e3ecbd47edfde477d742990bcbad3d601e1 Mon Sep 17 00:00:00 2001 From: yangfeng <wanwan926_4@163.com> Date: 星期一, 04 十二月 2023 11:43:41 +0800 Subject: [PATCH] 接口联调及人员饼图模块样式优化 --- src/views/cockpitPage/components/PerSonnelProductivity.vue | 17 +++++++++++++---- 1 files changed, 13 insertions(+), 4 deletions(-) diff --git a/src/views/cockpitPage/components/PerSonnelProductivity.vue b/src/views/cockpitPage/components/PerSonnelProductivity.vue index cdd40ec..b0dbd06 100644 --- a/src/views/cockpitPage/components/PerSonnelProductivity.vue +++ b/src/views/cockpitPage/components/PerSonnelProductivity.vue @@ -212,8 +212,8 @@ z: 3, style: { image: img, - width: 248, - height: 248, + width: 238, + height: 238, }, left: "center", top: "center", @@ -240,8 +240,17 @@ borderWidth: 5, borderRadius: 4, formatter: function (params) { - let str = params.name + params.value + "%"; - return str; + return `{a|${params.name}} {b|${params.value + "%"}}`; + }, + rich: { + a: { + color: "#00ffff", + fontSize: 14, + }, + b: { + color: "#fccd1d", + fontSize: 14, + }, }, }, }, -- Gitblit v1.8.0