NEZ-1204 fix: 修复在中文界面下,部分内容不会进行转换
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
:style="{top: `${moreBtnTop(data.type)}px`}"
|
||||
class="search-more"
|
||||
@click="changShowMore(type)">
|
||||
More <i :class="data.showMore ? 'arrow-up' : ''" class="el-icon-arrow-down arrow-down"/>
|
||||
{{$t('overall.more')}}<i :class="data.showMore ? 'arrow-up' : ''" class="el-icon-arrow-down arrow-down"/>
|
||||
</span>
|
||||
</el-skeleton>
|
||||
<el-skeleton v-else-if="data.type === 'dropdownCheckBox'" :loading="!data.show" :rows="1" class="search-items">
|
||||
@@ -38,7 +38,7 @@
|
||||
:style="{top: `${moreBtnTop(data.type)}px`}"
|
||||
class="search-more"
|
||||
@click="changShowMore(type)">
|
||||
More <i :class="data.showMore ? 'arrow-up' : ''" class="el-icon-arrow-down arrow-down"/>
|
||||
{{$t('overall.more')}}<i :class="data.showMore ? 'arrow-up' : ''" class="el-icon-arrow-down arrow-down"/>
|
||||
</span>
|
||||
</el-skeleton>
|
||||
</div>
|
||||
@@ -68,7 +68,7 @@ export default {
|
||||
default () {
|
||||
return {
|
||||
project: {
|
||||
label: 'Project', // 显示的label
|
||||
label: this.$t('overall.project'), // 显示的label
|
||||
key: 'projectIds', // 搜索使用的key
|
||||
type: 'checkBox', // 类型
|
||||
children: [], // 需要展示的子集
|
||||
@@ -151,6 +151,7 @@ export default {
|
||||
deep: true,
|
||||
handler (n) {
|
||||
this.titleSearchListCopy = JSON.parse(JSON.stringify(n))
|
||||
console.log(this.titleSearchListCopy)
|
||||
this.$nextTick(() => {
|
||||
this.setEachCascWidth()
|
||||
this.needMore()
|
||||
|
||||
@@ -3,7 +3,12 @@
|
||||
:class="{'is-focus': item.isFocus, 'is-hover': isHover}"
|
||||
class="nz-label-search"
|
||||
>
|
||||
<div class="nz-label-search__label"><span>{{item.name}}:</span></div>
|
||||
<div class="nz-label-search__label">
|
||||
<span v-if="item.name && item.type === 'logs'">{{$t('overall.logs')}}:</span>
|
||||
<span v-else-if="item.name && item.type === 'metrics'">{{$t('overall.metric')}}:</span>
|
||||
<span v-else-if="item.name === '时间'">{{$t('overall.time')}}:</span>
|
||||
<span v-else>{{item.name}}:</span>
|
||||
</div>
|
||||
<el-cascader
|
||||
ref="cascader"
|
||||
v-bind="$attrs"
|
||||
|
||||
@@ -349,7 +349,7 @@ export default {
|
||||
index: -1
|
||||
},
|
||||
assetLabel: {
|
||||
label: 'More',
|
||||
label: this.$t('overall.assetLabel'),
|
||||
key: 'fields',
|
||||
type: 'dropdownCheckBox',
|
||||
children: [],
|
||||
|
||||
@@ -366,7 +366,7 @@ export default {
|
||||
titleSearch: {},
|
||||
titleSearchList: {
|
||||
project: {
|
||||
label: 'Project',
|
||||
label: this.$t('overall.project'),
|
||||
key: 'projectIds',
|
||||
type: 'checkBox',
|
||||
children: [],
|
||||
@@ -376,7 +376,7 @@ export default {
|
||||
index: -1
|
||||
},
|
||||
module: {
|
||||
label: 'Module',
|
||||
label: this.$t('overall.module'),
|
||||
key: 'moduleIds',
|
||||
type: 'checkBox',
|
||||
children: [],
|
||||
@@ -386,7 +386,7 @@ export default {
|
||||
index: -1
|
||||
},
|
||||
state: {
|
||||
label: 'State',
|
||||
label: this.$t('overall.state'),
|
||||
key: 'state',
|
||||
type: 'dropdownCheckBox',
|
||||
children: [],
|
||||
@@ -408,7 +408,7 @@ export default {
|
||||
},
|
||||
detailSearchList: {
|
||||
project: {
|
||||
label: 'Project',
|
||||
label: this.$t('overall.project'),
|
||||
key: 'projectIds',
|
||||
type: 'checkBox',
|
||||
children: [],
|
||||
@@ -418,7 +418,7 @@ export default {
|
||||
index: -1
|
||||
},
|
||||
module: {
|
||||
label: 'Module',
|
||||
label: this.$t('overall.module'),
|
||||
key: 'moduleIds',
|
||||
type: 'checkBox',
|
||||
children: [],
|
||||
@@ -428,7 +428,7 @@ export default {
|
||||
index: -1
|
||||
},
|
||||
state: {
|
||||
label: 'State',
|
||||
label: this.$t('overall.state'),
|
||||
key: 'stateDetail',
|
||||
type: 'dropdownCheckBox',
|
||||
children: [],
|
||||
|
||||
Reference in New Issue
Block a user