fix: 更新遗漏的tag处理
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -29,7 +29,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import chartMixin from '@/views/charts2/chart-mixin'
|
import chartMixin from '@/views/charts2/chart-mixin'
|
||||||
import i18n from '@/i18n'
|
import i18n from '@/i18n'
|
||||||
import { entityDetailTabsName, entityDetailTags, psiphon3IpType } from '@/utils/constants'
|
import { entityDetailTabsName, entityDetailTags } from '@/utils/constants'
|
||||||
import { reactive, ref } from 'vue'
|
import { reactive, ref } from 'vue'
|
||||||
import InformationAggregation from '@/views/charts2/charts/entityDetail/tabs/InformationAggregation'
|
import InformationAggregation from '@/views/charts2/charts/entityDetail/tabs/InformationAggregation'
|
||||||
import DomainNameResolution from '@/views/charts2/charts/entityDetail/tabs/DomainNameResolution'
|
import DomainNameResolution from '@/views/charts2/charts/entityDetail/tabs/DomainNameResolution'
|
||||||
|
|||||||
@@ -71,7 +71,7 @@
|
|||||||
import chartMixin from '@/views/charts2/chart-mixin'
|
import chartMixin from '@/views/charts2/chart-mixin'
|
||||||
import axios from 'axios'
|
import axios from 'axios'
|
||||||
import { api } from '@/utils/api'
|
import { api } from '@/utils/api'
|
||||||
import { entityDetailTabsName, entityDetailTags, psiphon3IpType } from '@/utils/constants'
|
import { entityDetailTabsName, entityDetailTags, tagValueLabelMapping } from '@/utils/constants'
|
||||||
import { dateFormatByAppearance } from '@/utils/date-util'
|
import { dateFormatByAppearance } from '@/utils/date-util'
|
||||||
import chartNoData from '@/views/charts/charts/ChartNoData'
|
import chartNoData from '@/views/charts/charts/ChartNoData'
|
||||||
|
|
||||||
@@ -95,7 +95,7 @@ export default {
|
|||||||
tagValueHandler (k, k2, value) {
|
tagValueHandler (k, k2, value) {
|
||||||
if (k === 'psiphon3Ip') {
|
if (k === 'psiphon3Ip') {
|
||||||
if (k2 === 'type') {
|
if (k2 === 'type') {
|
||||||
const find = psiphon3IpType.find(t => t.value === value)
|
const find = tagValueLabelMapping.find(t => t.value === value)
|
||||||
if (find) {
|
if (find) {
|
||||||
return find.name
|
return find.name
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -271,7 +271,7 @@ export default {
|
|||||||
formatT0 () {
|
formatT0 () {
|
||||||
const vm = this
|
const vm = this
|
||||||
return function (event) {
|
return function (event) {
|
||||||
const diffSeconds = this.detection.startTime - event.startTime
|
const diffSeconds = vm.detection.startTime - event.startTime
|
||||||
if (diffSeconds === 0) {
|
if (diffSeconds === 0) {
|
||||||
return 'T0'
|
return 'T0'
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import _ from 'lodash'
|
|||||||
import i18n from '@/i18n'
|
import i18n from '@/i18n'
|
||||||
import axios from 'axios'
|
import axios from 'axios'
|
||||||
import { api } from '@/utils/api'
|
import { api } from '@/utils/api'
|
||||||
import { entityDefaultColor, entityDetailTags, psiphon3IpType } from '@/utils/constants'
|
import { entityDefaultColor, entityDetailTags, tagValueLabelMapping } from '@/utils/constants'
|
||||||
|
|
||||||
export default class Node {
|
export default class Node {
|
||||||
/*
|
/*
|
||||||
@@ -145,7 +145,7 @@ export default class Node {
|
|||||||
tagValueHandler (k, k2, value) {
|
tagValueHandler (k, k2, value) {
|
||||||
if (k === 'psiphon3Ip') {
|
if (k === 'psiphon3Ip') {
|
||||||
if (k2 === 'type') {
|
if (k2 === 'type') {
|
||||||
const find = psiphon3IpType.find(t => t.value === value)
|
const find = tagValueLabelMapping.find(t => t.value === value)
|
||||||
if (find) {
|
if (find) {
|
||||||
return find.name
|
return find.name
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user