fix:优化 npm 部分国际化警告
This commit is contained in:
@@ -35,7 +35,7 @@
|
||||
<template #default="scope" :column="item">
|
||||
<div class="data-app-event-table">
|
||||
<template v-if="item.prop === 'domain' ||item.prop === 'appName' ||item.prop === 'serverIp' ">
|
||||
<span class="data-applications">{{ $t(scope.row[item.prop]) }}</span>
|
||||
<span class="data-applications">{{ scope.row[item.prop] }}</span>
|
||||
</template>
|
||||
<template v-else-if="item.prop === 'eventSeverity'">
|
||||
<template v-if="scope.row[item.prop]==='critical'">
|
||||
@@ -57,11 +57,11 @@
|
||||
<div v-for="item in 1" class="red-dot" :key="item"></div>
|
||||
<div v-for="item in 4" class="grey-dot" :key="item"></div>
|
||||
</template>
|
||||
<span class="data-severity">{{ $t(scope.row[item.prop]) }}</span>
|
||||
<span class="data-severity">{{ scope.row[item.prop] }}</span>
|
||||
</template>
|
||||
<template v-else-if="item.prop === 'eventType'">
|
||||
<!-- <span class="data-eventType" v-for="type in scope.row[item.prop]">{{type}}</span>-->
|
||||
<span class="data-eventType">{{ $t(scope.row[item.prop]) }}</span>
|
||||
<span class="data-eventType">{{ scope.row[item.prop] }}</span>
|
||||
</template>
|
||||
<template v-else-if="item.prop === 'count'">
|
||||
<span class="data-eventCount">{{ scope.row[item.prop] }}</span>
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
<div class="npm-line-header-rights" v-if="chartData.params && chartData.params.showLegend && !isNoData">
|
||||
<div class="npm-line-header-right" :class="{'active': item.show}" v-for="(item, index) in chartOptionLineData" :key="index" @click="highlightEvent(item)">
|
||||
<div class="npm-line-header-icon" :class="'icon' + index"></div>
|
||||
<div class="npm-line-header-value">{{$t(item.legend)}}</div>
|
||||
<div class="npm-line-header-value">{{item.legend}}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -21,13 +21,13 @@
|
||||
<template #default="scope" :column="item">
|
||||
<div class="data-recent-table">
|
||||
<template v-if="item.prop === 'eventSeverity'">
|
||||
<span class="data-recent-table-severity" :class="scope.row[item.prop]">{{$t(scope.row[item.prop])}}</span>
|
||||
<span class="data-recent-table-severity" :class="scope.row[item.prop]">{{scope.row[item.prop]}}</span>
|
||||
</template>
|
||||
<template v-else-if="item.prop === 'eventKey'">
|
||||
<span class="data-recent-table-entity">{{$t(scope.row[item.prop])}}</span>
|
||||
<span class="data-recent-table-entity">{{scope.row[item.prop]}}</span>
|
||||
</template>
|
||||
<template v-else-if="item.prop === 'eventType'">
|
||||
<span class="data-recent-table-eventType">{{$t(scope.row[item.prop])}}</span>
|
||||
<span class="data-recent-table-eventType">{{scope.row[item.prop]}}</span>
|
||||
</template>
|
||||
<span v-else-if="scope.row[item.prop]">{{scope.row[item.prop]}}</span>
|
||||
<span v-else>-</span>
|
||||
|
||||
Reference in New Issue
Block a user