Merge branch 'main' of git.zdool.com:xs/ggfwjsc
This commit is contained in:
commit
7309fb2e71
|
@ -25,11 +25,11 @@ const props = defineProps({
|
||||||
});
|
});
|
||||||
const data = reactive({
|
const data = reactive({
|
||||||
list: [[140], [260], [330], [270]],
|
list: [[140], [260], [330], [270]],
|
||||||
list1: "",
|
list1: [],
|
||||||
year: [],
|
year: [],
|
||||||
option: {},
|
option: {},
|
||||||
totalMax: null,
|
totalMax: 0,
|
||||||
total: 100,
|
total: 0,
|
||||||
lb: 3,
|
lb: 3,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -40,6 +40,10 @@ const data = reactive({
|
||||||
|
|
||||||
const getOption1 = () => {
|
const getOption1 = () => {
|
||||||
data.list = data.list1.map((item) => [item]);
|
data.list = data.list1.map((item) => [item]);
|
||||||
|
data.list1.forEach(item=>{
|
||||||
|
data.total+=item;
|
||||||
|
})
|
||||||
|
data.totalMax = data.total+6;
|
||||||
};
|
};
|
||||||
const getOption = () => {
|
const getOption = () => {
|
||||||
data.option = {
|
data.option = {
|
||||||
|
@ -115,7 +119,7 @@ const getOption = () => {
|
||||||
label: {
|
label: {
|
||||||
normal: {
|
normal: {
|
||||||
show: true,
|
show: true,
|
||||||
position: ["25%", "-60%"],
|
position: ["10%", "-60%"],
|
||||||
formatter: `${data.list[0][0]}%`,
|
formatter: `${data.list[0][0]}%`,
|
||||||
color: "#fff",
|
color: "#fff",
|
||||||
fontSize: 22,
|
fontSize: 22,
|
||||||
|
@ -238,7 +242,7 @@ const getOption = () => {
|
||||||
color: "rgba(255,255,255,0.1)",
|
color: "rgba(255,255,255,0.1)",
|
||||||
barBorderRadius: [100, 100, 100, 100],
|
barBorderRadius: [100, 100, 100, 100],
|
||||||
},
|
},
|
||||||
data: ["2019"].map(() => 120),
|
data: [`${data.totalMax}`],
|
||||||
barWidth: 50,
|
barWidth: 50,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in New Issue