diff --git a/src/view/echarts_sy/zwfw1.vue b/src/view/echarts_sy/zwfw1.vue index 5efefc9..575e62e 100644 --- a/src/view/echarts_sy/zwfw1.vue +++ b/src/view/echarts_sy/zwfw1.vue @@ -131,7 +131,7 @@ const option = { title: [ { - text: "99.25%", + text: `${((dataList[0].value / dataList[1].value)*100).toFixed(2)}%`, right: "18%", bottom: "40%", textStyle: { diff --git a/src/view/echarts_sy/zwfw2.vue b/src/view/echarts_sy/zwfw2.vue index 17fdc5f..1666f73 100644 --- a/src/view/echarts_sy/zwfw2.vue +++ b/src/view/echarts_sy/zwfw2.vue @@ -127,8 +127,9 @@ const option = { title: [ { - text: "0.03%", - right: "22%", + // text: "0.03%", + text:`${((dataList[0].value / dataList[1].value)*100).toFixed(2)}%`, + right: "19%", bottom: "40%", textStyle: { color: "#ffffff", diff --git a/src/view/echarts_sy/zwfw3.vue b/src/view/echarts_sy/zwfw3.vue index b4c6030..b16cd5f 100644 --- a/src/view/echarts_sy/zwfw3.vue +++ b/src/view/echarts_sy/zwfw3.vue @@ -126,8 +126,8 @@ const option = { title: [ { - text: "0.02%", - right: "22%", + text: `${((dataList[0].value / dataList[1].value)*100).toFixed(2)}%`, + right: "19%", bottom: "40%", textStyle: { color: "#ffffff", diff --git a/src/view/yl.vue b/src/view/yl.vue index e324d54..6159709 100644 --- a/src/view/yl.vue +++ b/src/view/yl.vue @@ -183,7 +183,10 @@