Merge branch 'dev-3.9' of git.mesalab.cn:nezha/nezha-fronted into dev-3.9
This commit is contained in:
@@ -240,8 +240,8 @@ export default {
|
|||||||
const descending = this.operations.descending
|
const descending = this.operations.descending
|
||||||
const params = {
|
const params = {
|
||||||
logql: this.chartInfo.elements.map(item => item.expression),
|
logql: this.chartInfo.elements.map(item => item.expression),
|
||||||
start: this.$stringTimeParseToUnix(this.filterTime[0]),
|
start: this.momentStrToTimestamp(this.filterTime[0]),
|
||||||
end: this.$stringTimeParseToUnix(this.filterTime[1]),
|
end: this.momentStrToTimestamp(this.filterTime[1]),
|
||||||
direction: descending ? 'backward' : 'forward',
|
direction: descending ? 'backward' : 'forward',
|
||||||
limit
|
limit
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -103,8 +103,8 @@ export default {
|
|||||||
exportLog ({ limit, descending }) {
|
exportLog ({ limit, descending }) {
|
||||||
const params = {
|
const params = {
|
||||||
logql: this.expressions,
|
logql: this.expressions,
|
||||||
start: this.$stringTimeParseToUnix(bus.formateTimeToTime(this.filterTime[0])),
|
start: this.momentStrToTimestamp(this.filterTime[0]),
|
||||||
end: this.$stringTimeParseToUnix(bus.formateTimeToTime(this.filterTime[1])),
|
end: this.momentStrToTimestamp(this.filterTime[1]),
|
||||||
direction: descending ? 'backward' : 'forward',
|
direction: descending ? 'backward' : 'forward',
|
||||||
limit
|
limit
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3842,8 +3842,8 @@ export default {
|
|||||||
exportLog ({ limit, descending }) {
|
exportLog ({ limit, descending }) {
|
||||||
const params = {
|
const params = {
|
||||||
logql: this.expressions,
|
logql: this.expressions,
|
||||||
start: this.$stringTimeParseToUnix(bus.formateTimeToTime(this.filterTime[0])),
|
start: this.momentStrToTimestamp(this.filterTime[0]),
|
||||||
end: this.$stringTimeParseToUnix(bus.formateTimeToTime(this.filterTime[1])),
|
end: this.momentStrToTimestamp(this.filterTime[1]),
|
||||||
direction: descending ? 'backward' : 'forward',
|
direction: descending ? 'backward' : 'forward',
|
||||||
limit
|
limit
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -98,7 +98,7 @@ export default {
|
|||||||
const params = {
|
const params = {
|
||||||
...this.pageObj,
|
...this.pageObj,
|
||||||
queryValue: this.searchStr,
|
queryValue: this.searchStr,
|
||||||
orderBy: 'uts'
|
orderBy: '-uts'
|
||||||
}
|
}
|
||||||
if (this.type === 'metric') {
|
if (this.type === 'metric') {
|
||||||
params.queryKey = 'explore-metric'
|
params.queryKey = 'explore-metric'
|
||||||
@@ -151,7 +151,7 @@ export default {
|
|||||||
const params = {
|
const params = {
|
||||||
pageNo: 1,
|
pageNo: 1,
|
||||||
queryValue: this.searchStr,
|
queryValue: this.searchStr,
|
||||||
orderBy: 'uts',
|
orderBy: '-uts',
|
||||||
pageSize
|
pageSize
|
||||||
}
|
}
|
||||||
if (this.type === 'metric') {
|
if (this.type === 'metric') {
|
||||||
|
|||||||
Reference in New Issue
Block a user