Przeglądaj źródła

修改所有雷达图

dev
douzhuo 2 lat temu
rodzic
commit
2a4e6201b9
2 zmienionych plików z 16 dodań i 1 usunięć
  1. +1
    -1
      pages/center/Piabodata/Groupcontrast.vue
  2. +15
    -0
      pages/center/Piabodata/Theteamcompared.vue

+ 1
- 1
pages/center/Piabodata/Groupcontrast.vue Wyświetl plik

@@ -424,7 +424,7 @@
allobj.categories.push(item1.name)
}
obj.data.push(item1.avgExecutionRate)
if (max < item.avgExecutionRate) max = item.avgExecutionRate;
if (max < item1.avgExecutionRate) max = item1.avgExecutionRate;
})
allobj.series.push(obj)
})


+ 15
- 0
pages/center/Piabodata/Theteamcompared.vue Wyświetl plik

@@ -219,6 +219,7 @@
<view class="uchaserbox">
<qiun-data-charts
type="radar"
:opts="opts"
:chartData="chartData1"
:canvas2d="true"
canvasId="wangxiaohuaerlingeryilingwuyib88"
@@ -442,6 +443,15 @@
"data": [90,110,165,195,187,172]
}
]
},
opts: {
fontSize: 10,
extra: {
radar: {
max: ''
}
}
}
};
@@ -942,6 +952,7 @@
categories:[],
series:[]
}
let max = 0;
// 当选择全部时
if(!this.staff1.value&&!this.staff2.value){
// let first=res.first
@@ -955,6 +966,7 @@
allobj.categories.push(item1.name)
}
obj.data.push(item1.avgExecutionRate)
if (max < item1.avgExecutionRate) max = item1.avgExecutionRate;
})
allobj.series.push(obj)
})
@@ -971,6 +983,7 @@
allobj.categories.push(item1.name)
}
obj.data.push(item1.avgExecutionRate)
if (max < item1.avgExecutionRate) max = item1.avgExecutionRate;
})
allobj.series.push(obj)
})
@@ -1001,10 +1014,12 @@
allobj.categories.push(item1.name)
}
obj.data.push(item1.avgExecutionRate)
if (max < item1.avgExecutionRate) max = item1.avgExecutionRate;
})
allobj.series.push(obj)
})
}
this.opts.extra.radar.max = max +25
// console.log(allobj)
this.chartData1=allobj
this.$forceUpdate()


Ładowanie…
Anuluj
Zapisz