Merge branch 'main' of git.zdool.com:xs/ggfwjsc

This commit is contained in:
duanxiaohai 2024-05-16 15:28:41 +08:00
commit 7309fb2e71
1 changed files with 9 additions and 5 deletions

View File

@ -25,11 +25,11 @@ const props = defineProps({
});
const data = reactive({
list: [[140], [260], [330], [270]],
list1: "",
list1: [],
year: [],
option: {},
totalMax: null,
total: 100,
totalMax: 0,
total: 0,
lb: 3,
});
@ -40,6 +40,10 @@ const data = reactive({
const getOption1 = () => {
data.list = data.list1.map((item) => [item]);
data.list1.forEach(item=>{
data.total+=item;
})
data.totalMax = data.total+6;
};
const getOption = () => {
data.option = {
@ -115,7 +119,7 @@ const getOption = () => {
label: {
normal: {
show: true,
position: ["25%", "-60%"],
position: ["10%", "-60%"],
formatter: `${data.list[0][0]}%`,
color: "#fff",
fontSize: 22,
@ -238,7 +242,7 @@ const getOption = () => {
color: "rgba(255,255,255,0.1)",
barBorderRadius: [100, 100, 100, 100],
},
data: ["2019"].map(() => 120),
data: [`${data.totalMax}`],
barWidth: 50,
},
],