This commit is contained in:
parent
13ec79b4be
commit
6a952c9c15
|
|
@ -381,7 +381,7 @@ export default {
|
||||||
goOne(a) {
|
goOne(a) {
|
||||||
this.click2 = "";
|
this.click2 = "";
|
||||||
this.click1 = a;
|
this.click1 = a;
|
||||||
// this.sendMessageToCSharp(this.click1);
|
this.sendMessageToCSharp(this.click1);
|
||||||
if (this.click1 == "配电室") {
|
if (this.click1 == "配电室") {
|
||||||
this.$router.replace(
|
this.$router.replace(
|
||||||
"/area/nyjcd/pds",
|
"/area/nyjcd/pds",
|
||||||
|
|
|
||||||
|
|
@ -1125,14 +1125,6 @@ export default {
|
||||||
endValue = startValue + series[i].pieData.value;
|
endValue = startValue + series[i].pieData.value;
|
||||||
series[i].pieData.startRatio = startValue / sumValue;
|
series[i].pieData.startRatio = startValue / sumValue;
|
||||||
series[i].pieData.endRatio = endValue / sumValue;
|
series[i].pieData.endRatio = endValue / sumValue;
|
||||||
console.log(
|
|
||||||
series[i].pieData.startRatio,
|
|
||||||
series[i].pieData.endRatio,
|
|
||||||
false,
|
|
||||||
false,
|
|
||||||
k,
|
|
||||||
series[i].pieData.value
|
|
||||||
);
|
|
||||||
series[i].parametricEquation = this.getParametricEquation(
|
series[i].parametricEquation = this.getParametricEquation(
|
||||||
series[i].pieData.startRatio,
|
series[i].pieData.startRatio,
|
||||||
series[i].pieData.endRatio,
|
series[i].pieData.endRatio,
|
||||||
|
|
@ -1207,12 +1199,9 @@ export default {
|
||||||
formatter: (params) => {
|
formatter: (params) => {
|
||||||
var total = 0;
|
var total = 0;
|
||||||
optionsData.forEach((item, index) => {
|
optionsData.forEach((item, index) => {
|
||||||
console.log(item.value);
|
|
||||||
total += item.value;
|
total += item.value;
|
||||||
});
|
});
|
||||||
console.log(total);
|
|
||||||
let percent = ((params.value / total) * 100).toFixed(2);
|
let percent = ((params.value / total) * 100).toFixed(2);
|
||||||
console.log(params);
|
|
||||||
return (
|
return (
|
||||||
`{colors|${percent}%}` + "\n" + "\n" + `{name|${params.name}}`
|
`{colors|${percent}%}` + "\n" + "\n" + `{name|${params.name}}`
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue