fix: vpn类的tag都标位红色
This commit is contained in:
@@ -2625,7 +2625,7 @@ export const entityDetailTags = {
|
||||
},
|
||||
{
|
||||
name: 'vpnServiceName',
|
||||
type: 'normal'
|
||||
type: 'negative'
|
||||
}
|
||||
],
|
||||
ip: [
|
||||
@@ -2651,7 +2651,7 @@ export const entityDetailTags = {
|
||||
},
|
||||
{
|
||||
name: 'vpnServiceName',
|
||||
type: 'normal'
|
||||
type: 'negative'
|
||||
}
|
||||
],
|
||||
app: [
|
||||
|
||||
@@ -1502,7 +1502,7 @@ export const formatTags = (data, type, list) => {
|
||||
if (k !== 'userDefinedTags' && data[k]) {
|
||||
if (_.isArray(data[k])) {
|
||||
data[k].forEach(k3 => {
|
||||
const find = entityDetailTags[type].find(t => t.name === k3.vpnServiceName)
|
||||
const find = entityDetailTags[type].find(t => t.name === 'vpnServiceName')
|
||||
if (find) {
|
||||
list.push({ key: 'vpnServiceName', value: tagValueHandler(k3.vpnServiceName), type: find.type })
|
||||
} else {
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
<span>{{ summaryCount.appCount }}</span>
|
||||
|
||||
<span class="entity-hide-entity" v-if="q">
|
||||
<span v-if="listData.length !== 0">
|
||||
<!-- <span v-if="listData.length !== 0">-->
|
||||
<!-- <el-checkbox-->
|
||||
<!-- v-model="isHideRelatedEntities"-->
|
||||
<!-- :label="$t('entity.hideRelatedEntities')"-->
|
||||
@@ -60,7 +60,7 @@
|
||||
<el-radio :label="true" size="large">{{ $t('entity.entityMode') }}</el-radio>
|
||||
<el-radio :label="false" style="margin-left: -10px;" size="large">{{ $t('entity.relatedMode') }}</el-radio>
|
||||
</el-radio-group>
|
||||
</span>
|
||||
<!-- </span>-->
|
||||
</span>
|
||||
</div>
|
||||
|
||||
@@ -614,9 +614,9 @@ export default {
|
||||
this.listData = []
|
||||
this.$nextTick(() => {
|
||||
this.listData = response.data.data.list
|
||||
if (this.listData.length === 0) {
|
||||
/*if (this.listData.length === 0) {
|
||||
this.isHideRelatedEntities = false
|
||||
}
|
||||
}*/
|
||||
})
|
||||
} else {
|
||||
this.$message.error(response.data.message)
|
||||
|
||||
Reference in New Issue
Block a user