CN-1655 fix: 【Entity】列表页选择自定义时间范围,跳转至实体详情页,详情页默认的时间范围有误
This commit is contained in:
@@ -128,13 +128,18 @@ export default {
|
|||||||
if (entityType === 'subscriber_id') {
|
if (entityType === 'subscriber_id') {
|
||||||
entityType = entityType.slice(0, -3)
|
entityType = entityType.slice(0, -3)
|
||||||
}
|
}
|
||||||
|
const queryParam = {
|
||||||
|
entityType: entityType,
|
||||||
|
entityName: this.entityData.entityValue,
|
||||||
|
range: this.timeFilter.dateRangeValue
|
||||||
|
}
|
||||||
|
if (queryParam.range === -1) {
|
||||||
|
queryParam.startTime = this.timeFilter.startTime
|
||||||
|
queryParam.endTime = this.timeFilter.endTime
|
||||||
|
}
|
||||||
const { href } = this.$router.resolve({
|
const { href } = this.$router.resolve({
|
||||||
path: '/entity/detail',
|
path: '/entity/detail',
|
||||||
query: {
|
query: queryParam
|
||||||
entityType: entityType,
|
|
||||||
entityName: this.entityData.entityValue,
|
|
||||||
range: this.timeFilter.dateRangeValue
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
window.open(href, '_blank')
|
window.open(href, '_blank')
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user