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