事件汇总统计

This commit is contained in:
liuye
2023-01-04 15:04:40 +08:00
parent 5595f0295d
commit 793c384d58
2 changed files with 4 additions and 4 deletions

View File

@@ -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)
}
})