NEZ-895 feat: asset-logTab

This commit is contained in:
chenjinsong
2021-08-05 22:31:36 +08:00
parent 61d8e0df1c
commit a8ab1cc62e
2 changed files with 20 additions and 4 deletions

View File

@@ -33,6 +33,7 @@ import logTab from '@/components/page/dashboard/explore/logTab'
import subDataListMixin from '@/components/common/mixin/subDataList'
import axios from 'axios'
import bus from '@/libs/bus'
import {fromRoute} from "@/components/common/js/constants";
export default {
name: 'logBottomTab',
@@ -210,7 +211,11 @@ export default {
}
},
mounted () {
this.expressions = [`{project="${this.obj.project.name}",module="${this.obj.module.name}",endpoint="${this.obj.name}"}`]
if (this.from === fromRoute.endpoint) {
this.expressions = [`{project="${this.obj.project.name}",module="${this.obj.module.name}",endpoint="${this.obj.name}"}`]
} else if (this.from === fromRoute.asset) {
this.expressions = [`{asset="${this.obj.name}"}`]
}
this.queryLogData()
}
}