From 715dffc8eb60c68487f0457d6cb4d99935a92dd4 Mon Sep 17 00:00:00 2001 From: xy <271556543@qq.com> Date: Fri, 31 May 2024 10:47:02 +0800 Subject: [PATCH] 1 --- resources/views/admin/home.blade.php | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/resources/views/admin/home.blade.php b/resources/views/admin/home.blade.php index 4cf25ba..d066fbb 100644 --- a/resources/views/admin/home.blade.php +++ b/resources/views/admin/home.blade.php @@ -22,10 +22,10 @@ margin-left: 20px; } .static-container > .card1:nth-child(1) { - flex-basis: 60%; + flex-basis: 40%; } .static-container > .card1:nth-child(2) { - flex-basis: calc(40% - 20px); + flex-basis: calc(60% - 20px); } .static-container > .card1:nth-child(3) { flex-basis: 68%; @@ -349,6 +349,14 @@ { name: item.name, value: parseFloat(item.total??"0") * item.rate, + label: { + show: true, + position: 'center', + fontWeight: "bold", + formatter: function (params) { + return params.name + "\n" + (item.rate * 100) + "%" + } + } }, { name: '未完成', @@ -382,12 +390,8 @@ }, label: { normal: { - show: true, - position: 'center', - fontWeight: "bold", - formatter: function (params) { - return params.name + "\n" + params.value + "%" - } + show: false, + position: 'center' }, emphasis: { label: {