fix: 更新遗漏的tag处理

This commit is contained in:
chenjinsong
2023-10-23 13:42:42 +08:00
parent d8865b74d7
commit b90810470e
5 changed files with 7 additions and 7 deletions

File diff suppressed because one or more lines are too long

View File

@@ -29,7 +29,7 @@
<script>
import chartMixin from '@/views/charts2/chart-mixin'
import i18n from '@/i18n'
import { entityDetailTabsName, entityDetailTags, psiphon3IpType } from '@/utils/constants'
import { entityDetailTabsName, entityDetailTags } from '@/utils/constants'
import { reactive, ref } from 'vue'
import InformationAggregation from '@/views/charts2/charts/entityDetail/tabs/InformationAggregation'
import DomainNameResolution from '@/views/charts2/charts/entityDetail/tabs/DomainNameResolution'

View File

@@ -71,7 +71,7 @@
import chartMixin from '@/views/charts2/chart-mixin'
import axios from 'axios'
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 chartNoData from '@/views/charts/charts/ChartNoData'
@@ -95,7 +95,7 @@ export default {
tagValueHandler (k, k2, value) {
if (k === 'psiphon3Ip') {
if (k2 === 'type') {
const find = psiphon3IpType.find(t => t.value === value)
const find = tagValueLabelMapping.find(t => t.value === value)
if (find) {
return find.name
}

View File

@@ -271,7 +271,7 @@ export default {
formatT0 () {
const vm = this
return function (event) {
const diffSeconds = this.detection.startTime - event.startTime
const diffSeconds = vm.detection.startTime - event.startTime
if (diffSeconds === 0) {
return 'T0'
}

View File

@@ -2,7 +2,7 @@ import _ from 'lodash'
import i18n from '@/i18n'
import axios from 'axios'
import { api } from '@/utils/api'
import { entityDefaultColor, entityDetailTags, psiphon3IpType } from '@/utils/constants'
import { entityDefaultColor, entityDetailTags, tagValueLabelMapping } from '@/utils/constants'
export default class Node {
/*
@@ -145,7 +145,7 @@ export default class Node {
tagValueHandler (k, k2, value) {
if (k === 'psiphon3Ip') {
if (k2 === 'type') {
const find = psiphon3IpType.find(t => t.value === value)
const find = tagValueLabelMapping.find(t => t.value === value)
if (find) {
return find.name
}