From e2812373b301835dbfdf219117e8c29e5baed5d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BE=99=E8=BF=90=E6=A8=A1?= <1724894114@qq.com> Date: Thu, 1 Aug 2024 23:30:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=95=B0=E6=8D=AE=E7=A1=AE?= =?UTF-8?q?=E8=AE=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/home/console/components/ring.vue | 15 +- src/views/order/dataConfirm/index.vue | 372 ++++++--------------- 2 files changed, 118 insertions(+), 269 deletions(-) diff --git a/src/views/home/console/components/ring.vue b/src/views/home/console/components/ring.vue index d24ea82..b824358 100644 --- a/src/views/home/console/components/ring.vue +++ b/src/views/home/console/components/ring.vue @@ -30,11 +30,6 @@ export default { type: 'pie', radius: ['40%', '70%'], avoidLabelOverlap: false, - itemStyle: { - borderRadius: 10, - borderColor: '#fff', - borderWidth: 2 - }, label: { show: false, position: 'center' @@ -46,6 +41,16 @@ export default { fontWeight: 'bold' } }, + // 设置颜色 + itemStyle: { + borderRadius: 10, + borderColor: '#fff', + borderWidth: 2, + color: function(params) { + let colors = ['#28F8E6', '#2A91C4', '#1367C1', '#d48265', '#91c7ae']; + return colors[params.dataIndex]; + } + }, labelLine: { show: false }, diff --git a/src/views/order/dataConfirm/index.vue b/src/views/order/dataConfirm/index.vue index b2b902a..a6d4781 100644 --- a/src/views/order/dataConfirm/index.vue +++ b/src/views/order/dataConfirm/index.vue @@ -1,83 +1,46 @@