NEZ-1735 fix: 部分内容未进行国际化显示
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
<div class="basic-info">
|
||||
<div class="basic-info-title">
|
||||
<span style="cursor: pointer"><i @click="hideElement" :class="{'nz-icon nz-icon-caret-right': showBasicInfo,'nz-icon nz-icon-caret-bottom': !showBasicInfo}"></i></span>
|
||||
<span>Basic info</span>
|
||||
<span>{{$t('overall.basicInfo')}}</span>
|
||||
</div>
|
||||
<el-collapse-transition>
|
||||
<!--asset info-->
|
||||
@@ -78,7 +78,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="basic-info-table-list">
|
||||
<div class="basic-info-table-title">Endpoint</div>
|
||||
<div class="basic-info-table-title">{{$t('asset.endpoint')}}</div>
|
||||
<div class="basic-info-table-value">
|
||||
<i class="nz-icon nz-icon-overview-endpoint monitorColor"></i>
|
||||
<span>{{chartDetail ? chartDetail.endpointNum : 0}}</span>
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
</span>
|
||||
</div>
|
||||
<div class="detail-top-search" style="text-align: center" v-else>
|
||||
All
|
||||
{{$t('config.assetLabel.all')}}
|
||||
</div>
|
||||
<i class="nz-icon nz-icon-arrow-down search-value"/>
|
||||
</div>
|
||||
@@ -50,7 +50,7 @@
|
||||
</span>
|
||||
</div>
|
||||
<div class="detail-top-search" style="text-align: center" v-else>
|
||||
All
|
||||
{{$t('config.assetLabel.all')}}
|
||||
</div>
|
||||
<i class="nz-icon nz-icon-arrow-down search-value"/>
|
||||
</div>
|
||||
|
||||
@@ -160,32 +160,32 @@ export default {
|
||||
panel: [
|
||||
{ prop: 'panelTab', name: this.$t('overall.detail'), active: true },
|
||||
{ prop: 'alertMessageTab', name: this.$t('overall.alert'), active: false },
|
||||
{ prop: 'endpointTab', name: 'Endpoint', active: false },
|
||||
{ prop: 'log', name: 'Log', active: false }
|
||||
{ prop: 'endpointTab', name: this.$t('asset.endpoint'), active: false },
|
||||
{ prop: 'log', name: this.$t('overall.logs'), active: false }
|
||||
],
|
||||
alertMessage: [
|
||||
{ prop: 'panelTab', name: this.$t('overall.detail'), active: false },
|
||||
{ prop: 'alertMessageTab', name: this.$t('overall.alert'), active: true },
|
||||
{ prop: 'endpointTab', name: 'Endpoint', active: false },
|
||||
{ prop: 'log', name: 'Log', active: false }
|
||||
{ prop: 'endpointTab', name: this.$t('asset.endpoint'), active: false },
|
||||
{ prop: 'log', name: this.$t('overall.logs'), active: false }
|
||||
],
|
||||
endpoint: [
|
||||
{ prop: 'panelTab', name: this.$t('overall.detail'), active: false },
|
||||
{ prop: 'alertMessageTab', name: this.$t('overall.alert'), active: false },
|
||||
{ prop: 'endpointTab', name: 'Endpoint', active: true },
|
||||
{ prop: 'log', name: 'Log', active: false }
|
||||
{ prop: 'endpointTab', name: this.$t('asset.endpoint'), active: true },
|
||||
{ prop: 'log', name: this.$t('overall.logs'), active: false }
|
||||
],
|
||||
log: [
|
||||
{ prop: 'panelTab', name: this.$t('overall.detail'), active: false },
|
||||
{ prop: 'alertMessageTab', name: this.$t('overall.alert'), active: false },
|
||||
{ prop: 'endpointTab', name: 'Endpoint', active: false },
|
||||
{ prop: 'log', name: 'Log', active: true }
|
||||
{ prop: 'endpointTab', name: this.$t('asset.endpoint'), active: false },
|
||||
{ prop: 'log', name: this.$t('overall.logs'), active: true }
|
||||
],
|
||||
alertMessageSub: [
|
||||
{ prop: 'panelTab', name: this.$t('overall.detail'), active: false },
|
||||
{ prop: 'alertMessageTab', name: this.$t('overall.alert'), active: false },
|
||||
{ prop: 'endpointTab', name: 'Endpoint', active: false },
|
||||
{ prop: 'log', name: 'Log', active: false },
|
||||
{ prop: 'endpointTab', name: this.$t('asset.endpoint'), active: false },
|
||||
{ prop: 'log', name: this.$t('overall.logs'), active: false },
|
||||
{ prop: 'assetSubTab', name: this.$t('overall.assetSubTab'), active: true }
|
||||
]
|
||||
},
|
||||
@@ -200,8 +200,8 @@ export default {
|
||||
endpointTabTitle: [
|
||||
{ prop: 'panelTab', name: this.$t('overall.detail') },
|
||||
{ prop: 'endpointAlertMessage', name: this.$t('overall.alert') },
|
||||
{ prop: 'endpointQuery', name: 'Metrics' },
|
||||
{ prop: 'log', name: 'Log' }
|
||||
{ prop: 'endpointQuery', name: this.$t('project.metrics.metrics') },
|
||||
{ prop: 'log', name: this.$t('overall.logs') }
|
||||
]
|
||||
},
|
||||
chartTemp: {
|
||||
|
||||
@@ -93,7 +93,7 @@
|
||||
{{$t('globalSearch.toEsc')}}
|
||||
</div>
|
||||
<div class="global-search-footer-right">
|
||||
<div class="scope-box" v-for="item in scope" :class="item.isSelect ? 'is-select' : ''" :key="item.type" @click="scopeChange(item)" :title="item.type">
|
||||
<div class="scope-box" v-for="item in scope" :class="item.isSelect ? 'is-select' : ''" :key="item.type" @click="scopeChange(item)" :title="item.title">
|
||||
<i class="nz-icon" :class="selectIcon(item)" />
|
||||
{{stat[item.type] || 0}}
|
||||
</div>
|
||||
|
||||
@@ -503,12 +503,12 @@ export default {
|
||||
searchItemPath (item) {
|
||||
let str = ''
|
||||
switch (item.type) {
|
||||
case 'asset' : str += '<span>Asset</span> <span>/</span> <span>Asset</span>'; break
|
||||
case 'datacenter' : str += '<span>Setting</span> <span>/</span> <span>Data center</span>'; break
|
||||
case 'project' : str += '<span>Monitor</span> <span>/</span> <span>Project</span>'; break
|
||||
case 'module' :str += '<span>Monitor</span> <span>/</span> <span>Module</span>'; break
|
||||
case 'endpoint' : str += '<span>Monitor</span> <span>/</span> <span>Endpoint</span>'; break
|
||||
case 'alertrule' : str += '<span>Alert</span> <span>/</span> <span>Alert rule</span>'; break
|
||||
case 'asset' : str += `<span>${this.$t('overall.asset')}</span> <span>/</span> <span>${this.$t('overall.asset')}</span>`; break
|
||||
case 'datacenter' : str += `<span>${this.$t('config.config')}</span> <span>/</span> <span>${this.$t('overall.dc')}</span>`; break
|
||||
case 'project' : str += `<span>${this.$t('config.system.monitor.monitor')}</span> <span>/</span> <span>${this.$t('dashboard.overview.project.project')}</span>`; break
|
||||
case 'module' :str += `<span>${this.$t('config.system.monitor.monitor')}</span> <span>/</span> <span>${this.$t('overall.module')}</span>`; break
|
||||
case 'endpoint' : str += `<span>${this.$t('config.system.monitor.monitor')}</span> <span>/</span> <span>${this.$t('asset.endpoint')}</span>`; break
|
||||
case 'alertrule' : str += `<span>${this.$t('overall.alert')}</span> <span>/</span> <span>${this.$t('dashboard.overview.alert.alertRule')}</span>`; break
|
||||
}
|
||||
return str
|
||||
},
|
||||
|
||||
@@ -185,8 +185,8 @@ export default {
|
||||
filterPanel: '',
|
||||
groupArr: [],
|
||||
varTypeArr: [
|
||||
{ name: 'Asset', id: 1 },
|
||||
{ name: 'Endpoint', id: 2 }
|
||||
{ name: this.$t('asset.asset'), id: 1 },
|
||||
{ name: this.$t('asset.endpoint'), id: 2 }
|
||||
],
|
||||
panelName: '',
|
||||
rules: {
|
||||
|
||||
@@ -36,13 +36,13 @@ export default {
|
||||
statisticsList: this.$CONSTANTS.statisticsList,
|
||||
legendPositionList: [
|
||||
{
|
||||
label: 'bottom',
|
||||
label: this.$t('overall.bottom'),
|
||||
value: 'bottom'
|
||||
}, {
|
||||
label: 'left',
|
||||
label: this.$t('overall.left'),
|
||||
value: 'left'
|
||||
}, {
|
||||
label: 'right',
|
||||
label: this.$t('overall.right'),
|
||||
value: 'right'
|
||||
}
|
||||
],
|
||||
@@ -156,16 +156,16 @@ export default {
|
||||
],
|
||||
textList: [
|
||||
{
|
||||
label: 'All',
|
||||
label: this.$t('config.assetLabel.all'),
|
||||
value: 'all'
|
||||
}, {
|
||||
label: 'Value',
|
||||
label: this.$t('overall.value'),
|
||||
value: 'value'
|
||||
}, {
|
||||
label: 'Legend',
|
||||
label: this.$t('dashboard.panel.chartForm.legend'),
|
||||
value: 'legend'
|
||||
}, {
|
||||
label: 'None',
|
||||
label: this.$t('config.assetLabel.all'),
|
||||
value: 'none'
|
||||
}
|
||||
],
|
||||
|
||||
@@ -421,7 +421,7 @@ export default {
|
||||
index: -1
|
||||
},
|
||||
assetLabel: {
|
||||
label: 'More',
|
||||
label: this.$t('overall.more'),
|
||||
key: 'fieldsDetail',
|
||||
type: 'dropdownCheckBox',
|
||||
children: [],
|
||||
|
||||
Reference in New Issue
Block a user