This commit is contained in:
‘937886381’
2024-06-03 16:42:28 +08:00
parent 38b278530c
commit 9d11f8b943
12 changed files with 132 additions and 108 deletions

View File

@@ -1,7 +1,7 @@
<!--
* @Author: zhp
* @Date: 2024-05-20 13:32:59
* @LastEditTime: 2024-05-31 15:05:20
* @LastEditTime: 2024-06-03 16:26:24
* @LastEditors: zhp
* @Description:
-->
@@ -151,7 +151,7 @@ export default {
];
}
let titleValue =
vt[1] != null && vt[2] !== 0
vt[1] != null && (vt[2] !== 0 && vt[2] !== undefined)
? this.formatNumber((vt[1] / vt[2] * 100)) + '%'
: (vt[1] != 0 && vt[1] != null) && vt[2] == 0
? "100%" : '0%',

View File

@@ -1,17 +1,10 @@
<!--
* @Author: zhp
* @Date: 2024-05-30 16:00:50
* @LastEditTime: 2024-05-31 16:15:51
* @LastEditTime: 2024-06-03 16:26:03
* @LastEditors: zhp
* @Description:
-->
<!--
filename: DoubleRingWrapper.vue
author: liubin
date: 2024-04-17 09:55:12
description:
-->
<template>
<div class="double-ring-wrapper">
<template>

View File

@@ -22,7 +22,7 @@ export default ({
textAlign: "center",
textStyle: {
fontWeight: 600,
fontSize: 32,
fontSize: 20,
color: "#fffd",
},
subtext: `\u2002${subtitle}\u2002`,
@@ -38,7 +38,7 @@ export default ({
{
type: "pie",
name: "当前目标",
radius: ["70%", "85%"],
radius: ["80%", "90%"],
center: ["45%", "52%"],
emptyCircleStyle: {
color: "#042c5f33",
@@ -47,7 +47,7 @@ export default ({
// 数据 series
{
type: "pie",
radius: ["70%", "85%"],
radius: ["80%", "90%"],
center: ["45%", "52%"],
avoidLabelOvervlap: false,
label: {
@@ -92,7 +92,7 @@ export default ({
// 数据 series2 - 2023累计
{
type: "pie",
radius: ["55%", "70%"],
radius: ["70%", "80%"],
center: ["45%", "52%"],
avoidLabelOvervlap: false,
label: {