Commit cd9b9788 authored by miaojiale's avatar miaojiale

1.赋值问题

2.颜色问题
parent 50cd78a8
......@@ -198,7 +198,7 @@ export default {
riskNum: 0,
midhignNum: 0,
colorList1: ["#2197FF", "#1571EA"],
colorList2: ["#0A56BD", "#1571EA", "#2197FF", "#3DA5FF", "#72BEFF"],
colorList2: ["#0A56BD", "#1571EA", "#2197FF", "#3DA5FF", "#1571EA"],
colorList3: ["#47B7A0", "#FFA424", "#EB7126"],
colorList4: ["#3B4466", "#1571EA"],
pieData1: [
......@@ -210,7 +210,7 @@ export default {
{ value: 0, name: "50-59" },
{ value: 0, name: "60-69" },
{ value: 0, name: "70-79" },
// { value: 0, name: "80及以上" },
{ value: 0, name: "其他" },
],
pieData3: [
{ value: 0, name: "低风险" },
......@@ -340,11 +340,12 @@ export default {
getAgeCount() {
ageCount().then((res) => {
if (res.code == 1) {
let d = res.data
this.pieData2[0].value = res.data.num1
this.pieData2[1].value = res.data.num2
this.pieData2[2].value = res.data.num3
this.pieData2[3].value = res.data.num4
// this.pieData2[4].value = res.data.num5
this.pieData2[4].value = d.num - d.num1 - d.num2 - d.num3 - d.num4
this.ageNum = res.data.num
}
})
......@@ -363,8 +364,8 @@ export default {
getCheckCondition() {
checkCondition().then((res) => {
if (res.code == 1) {
this.pieData4[0].value = res.data.checked
this.pieData4[1].value = res.data.unChecked
this.pieData4[0].value = res.data.unChecked
this.pieData4[1].value = res.data.checked
this.midhignNum = res.data.total
}
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment