perf: 细节调整

This commit is contained in:
chenjinsong
2021-07-09 21:58:49 +08:00
parent 23e78b0a84
commit ac7f3b6280
8 changed files with 325 additions and 273 deletions

View File

@@ -101,24 +101,23 @@ export default {
chart.i = chart.id
return chart
})
// this.chartList = [this.chartList[7], this.chartList[12]]
}
},
timeRefreshChange () {
async timeRefreshChange () {
if (!this.$refs.dateTimeRange) {
this.init()
await this.init()
return
}
if (this.$refs.dateTimeRange.isCustom) {
this.init()
await this.init()
} else {
const value = this.dateRangeValue.value || this.dateRangeValue
this.$refs.dateTimeRange.quickChange(value)
}
},
reload (s, e, v) {
async reload (s, e, v) {
this.dateTimeRangeChange(s, e, v)
this.init()
await this.init()
}
}
}