NEZ-1735 fix: 部分内容未进行国际化显示

This commit is contained in:
zhangyu
2022-03-25 14:12:03 +08:00
parent fda7713cda
commit 5b276cf845
8 changed files with 33 additions and 33 deletions

View File

@@ -3,7 +3,7 @@
<div class="basic-info"> <div class="basic-info">
<div class="basic-info-title"> <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 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> </div>
<el-collapse-transition> <el-collapse-transition>
<!--asset info--> <!--asset info-->
@@ -78,7 +78,7 @@
</div> </div>
</div> </div>
<div class="basic-info-table-list"> <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"> <div class="basic-info-table-value">
<i class="nz-icon nz-icon-overview-endpoint monitorColor"></i>&nbsp; <i class="nz-icon nz-icon-overview-endpoint monitorColor"></i>&nbsp;
<span>{{chartDetail ? chartDetail.endpointNum : 0}}</span> <span>{{chartDetail ? chartDetail.endpointNum : 0}}</span>

View File

@@ -18,7 +18,7 @@
</span> </span>
</div> </div>
<div class="detail-top-search" style="text-align: center" v-else> <div class="detail-top-search" style="text-align: center" v-else>
All {{$t('config.assetLabel.all')}}
</div> </div>
<i class="nz-icon nz-icon-arrow-down search-value"/> <i class="nz-icon nz-icon-arrow-down search-value"/>
</div> </div>
@@ -50,7 +50,7 @@
</span> </span>
</div> </div>
<div class="detail-top-search" style="text-align: center" v-else> <div class="detail-top-search" style="text-align: center" v-else>
All {{$t('config.assetLabel.all')}}
</div> </div>
<i class="nz-icon nz-icon-arrow-down search-value"/> <i class="nz-icon nz-icon-arrow-down search-value"/>
</div> </div>

View File

@@ -160,32 +160,32 @@ export default {
panel: [ panel: [
{ prop: 'panelTab', name: this.$t('overall.detail'), active: true }, { prop: 'panelTab', name: this.$t('overall.detail'), active: true },
{ prop: 'alertMessageTab', name: this.$t('overall.alert'), active: false }, { prop: 'alertMessageTab', name: this.$t('overall.alert'), active: false },
{ prop: 'endpointTab', name: 'Endpoint', active: false }, { prop: 'endpointTab', name: this.$t('asset.endpoint'), active: false },
{ prop: 'log', name: 'Log', active: false } { prop: 'log', name: this.$t('overall.logs'), active: false }
], ],
alertMessage: [ alertMessage: [
{ prop: 'panelTab', name: this.$t('overall.detail'), active: false }, { prop: 'panelTab', name: this.$t('overall.detail'), active: false },
{ prop: 'alertMessageTab', name: this.$t('overall.alert'), active: true }, { prop: 'alertMessageTab', name: this.$t('overall.alert'), active: true },
{ prop: 'endpointTab', name: 'Endpoint', active: false }, { prop: 'endpointTab', name: this.$t('asset.endpoint'), active: false },
{ prop: 'log', name: 'Log', active: false } { prop: 'log', name: this.$t('overall.logs'), active: false }
], ],
endpoint: [ endpoint: [
{ prop: 'panelTab', name: this.$t('overall.detail'), active: false }, { prop: 'panelTab', name: this.$t('overall.detail'), active: false },
{ prop: 'alertMessageTab', name: this.$t('overall.alert'), active: false }, { prop: 'alertMessageTab', name: this.$t('overall.alert'), active: false },
{ prop: 'endpointTab', name: 'Endpoint', active: true }, { prop: 'endpointTab', name: this.$t('asset.endpoint'), active: true },
{ prop: 'log', name: 'Log', active: false } { prop: 'log', name: this.$t('overall.logs'), active: false }
], ],
log: [ log: [
{ prop: 'panelTab', name: this.$t('overall.detail'), active: false }, { prop: 'panelTab', name: this.$t('overall.detail'), active: false },
{ prop: 'alertMessageTab', name: this.$t('overall.alert'), active: false }, { prop: 'alertMessageTab', name: this.$t('overall.alert'), active: false },
{ prop: 'endpointTab', name: 'Endpoint', active: false }, { prop: 'endpointTab', name: this.$t('asset.endpoint'), active: false },
{ prop: 'log', name: 'Log', active: true } { prop: 'log', name: this.$t('overall.logs'), active: true }
], ],
alertMessageSub: [ alertMessageSub: [
{ prop: 'panelTab', name: this.$t('overall.detail'), active: false }, { prop: 'panelTab', name: this.$t('overall.detail'), active: false },
{ prop: 'alertMessageTab', name: this.$t('overall.alert'), active: false }, { prop: 'alertMessageTab', name: this.$t('overall.alert'), active: false },
{ prop: 'endpointTab', name: 'Endpoint', active: false }, { prop: 'endpointTab', name: this.$t('asset.endpoint'), active: false },
{ prop: 'log', name: 'Log', active: false }, { prop: 'log', name: this.$t('overall.logs'), active: false },
{ prop: 'assetSubTab', name: this.$t('overall.assetSubTab'), active: true } { prop: 'assetSubTab', name: this.$t('overall.assetSubTab'), active: true }
] ]
}, },
@@ -200,8 +200,8 @@ export default {
endpointTabTitle: [ endpointTabTitle: [
{ prop: 'panelTab', name: this.$t('overall.detail') }, { prop: 'panelTab', name: this.$t('overall.detail') },
{ prop: 'endpointAlertMessage', name: this.$t('overall.alert') }, { prop: 'endpointAlertMessage', name: this.$t('overall.alert') },
{ prop: 'endpointQuery', name: 'Metrics' }, { prop: 'endpointQuery', name: this.$t('project.metrics.metrics') },
{ prop: 'log', name: 'Log' } { prop: 'log', name: this.$t('overall.logs') }
] ]
}, },
chartTemp: { chartTemp: {

View File

@@ -93,7 +93,7 @@
{{$t('globalSearch.toEsc')}} {{$t('globalSearch.toEsc')}}
</div> </div>
<div class="global-search-footer-right"> <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)" /> <i class="nz-icon" :class="selectIcon(item)" />
{{stat[item.type] || 0}} {{stat[item.type] || 0}}
</div> </div>

View File

@@ -503,12 +503,12 @@ export default {
searchItemPath (item) { searchItemPath (item) {
let str = '' let str = ''
switch (item.type) { switch (item.type) {
case 'asset' : str += '<span>Asset</span> <span>/</span> <span>Asset</span>'; break case 'asset' : str += `<span>${this.$t('overall.asset')}</span> <span>/</span> <span>${this.$t('overall.asset')}</span>`; break
case 'datacenter' : str += '<span>Setting</span> <span>/</span> <span>Data center</span>'; break case 'datacenter' : str += `<span>${this.$t('config.config')}</span> <span>/</span> <span>${this.$t('overall.dc')}</span>`; break
case 'project' : str += '<span>Monitor</span> <span>/</span> <span>Project</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>Monitor</span> <span>/</span> <span>Module</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>Monitor</span> <span>/</span> <span>Endpoint</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>Alert</span> <span>/</span> <span>Alert rule</span>'; break case 'alertrule' : str += `<span>${this.$t('overall.alert')}</span> <span>/</span> <span>${this.$t('dashboard.overview.alert.alertRule')}</span>`; break
} }
return str return str
}, },

View File

@@ -185,8 +185,8 @@ export default {
filterPanel: '', filterPanel: '',
groupArr: [], groupArr: [],
varTypeArr: [ varTypeArr: [
{ name: 'Asset', id: 1 }, { name: this.$t('asset.asset'), id: 1 },
{ name: 'Endpoint', id: 2 } { name: this.$t('asset.endpoint'), id: 2 }
], ],
panelName: '', panelName: '',
rules: { rules: {

View File

@@ -36,13 +36,13 @@ export default {
statisticsList: this.$CONSTANTS.statisticsList, statisticsList: this.$CONSTANTS.statisticsList,
legendPositionList: [ legendPositionList: [
{ {
label: 'bottom', label: this.$t('overall.bottom'),
value: 'bottom' value: 'bottom'
}, { }, {
label: 'left', label: this.$t('overall.left'),
value: 'left' value: 'left'
}, { }, {
label: 'right', label: this.$t('overall.right'),
value: 'right' value: 'right'
} }
], ],
@@ -156,16 +156,16 @@ export default {
], ],
textList: [ textList: [
{ {
label: 'All', label: this.$t('config.assetLabel.all'),
value: 'all' value: 'all'
}, { }, {
label: 'Value', label: this.$t('overall.value'),
value: 'value' value: 'value'
}, { }, {
label: 'Legend', label: this.$t('dashboard.panel.chartForm.legend'),
value: 'legend' value: 'legend'
}, { }, {
label: 'None', label: this.$t('config.assetLabel.all'),
value: 'none' value: 'none'
} }
], ],

View File

@@ -421,7 +421,7 @@ export default {
index: -1 index: -1
}, },
assetLabel: { assetLabel: {
label: 'More', label: this.$t('overall.more'),
key: 'fieldsDetail', key: 'fieldsDetail',
type: 'dropdownCheckBox', type: 'dropdownCheckBox',
children: [], children: [],