事件汇总统计
This commit is contained in:
@@ -101,7 +101,7 @@ export default {
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.$dict.load('srScoreType', 'srScoreCalcType').then(() => {
|
||||
this.$dict.load('srScoreType', 'srScoreCalcType', 'srType').then(() => {
|
||||
this.getDetail()
|
||||
let nowTime = dayjs().format('YYYY-MM-DD')
|
||||
this.startPla = dayjs().subtract(29, 'day').format('YYYY-MM-DD')
|
||||
@@ -135,8 +135,8 @@ export default {
|
||||
}
|
||||
}).then(res => {
|
||||
if (res?.data) {
|
||||
this.xData = res.data.map(x => x.eventName)
|
||||
this.yData = res.data.map(y => y.totalIntegral)
|
||||
this.xData = res.data.map(x => this.dict.getLabel('srType', x.type))
|
||||
this.yData = res.data.map(y => y.score)
|
||||
this.getColEcherts(this.xData, this.yData)
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user