feat: enstatvue 小调整

This commit is contained in:
caoqianming 2024-12-06 15:37:08 +08:00
parent d7d1ab60de
commit 9292cfe61d
2 changed files with 2 additions and 3 deletions

View File

@ -46,7 +46,6 @@
:apiObj="apiObj" :apiObj="apiObj"
row-key="id" row-key="id"
stripe stripe
:params="params"
:query="query" :query="query"
highlightCurrentRow highlightCurrentRow
> >
@ -103,7 +102,7 @@ export default {
}, },
methods: { methods: {
handleQuery() { handleQuery() {
if (this.timeRange) { if (this.timeRange.length > 0) {
this.query.start_time = this.timeRange[0] this.query.start_time = this.timeRange[0]
this.query.end_time = this.timeRange[1] this.query.end_time = this.timeRange[1]
} else { } else {

View File

@ -271,7 +271,7 @@ export default {
}, },
handle_add() {}, handle_add() {},
handleQuery() { handleQuery() {
if (this.timeRange) { if (this.timeRange.length > 0) {
this.query.start_time = this.timeRange[0] this.query.start_time = this.timeRange[0]
this.query.end_time = this.timeRange[1] this.query.end_time = this.timeRange[1]
} else { } else {