feat:endpoint query 图表添加比较按钮

This commit is contained in:
zhangyu
2021-03-31 15:26:01 +08:00
parent 1758302b33
commit 2276dcfa93
10 changed files with 74 additions and 26 deletions

View File

@@ -365,7 +365,6 @@ export default {
this.isCustom = false
this.$emit('change', this.searchTime)
} else {
console.log(123123)
this.isCustom = true
this.$refs.calendar.focus()
}
@@ -390,7 +389,6 @@ export default {
}
},
setSearchTime (type, val) {
console.log(132, this.stepSearchTime, val, new Date(this.stepSearchTime[0]).getTime() - val * 60 * 60)
if (type === 'minute') {
const startTime = bus.timeFormate(new Date(this.stepSearchTime[0]).getTime() - val * 60 * 1000, 'yyyy-MM-dd hh:mm:ss')
const endTime = bus.timeFormate(new Date(this.stepSearchTime[1]).getTime() - val * 60 * 1000, 'yyyy-MM-dd hh:mm:ss')