mirror of
https://github.com/jumpserver/lina.git
synced 2025-08-10 11:02:16 +00:00
Fixed: Fixed PT-BR language adaptation issue (#4636)
* Fixed: Fixed PT-BR language adaptation issue * Fiexed: Fixed En languange ACL Page adapation issue --------- Co-authored-by: zhaojisen <1301338853@qq.com>
This commit is contained in:
parent
d94752a021
commit
d6c28b8286
@ -84,6 +84,12 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang='scss' scoped>
|
<style lang='scss' scoped>
|
||||||
|
html:lang(pt-br) {
|
||||||
|
.datepicker ::v-deep .el-range-separator {
|
||||||
|
padding: 0 10px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.datepicker {
|
.datepicker {
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
width: 233px;
|
width: 233px;
|
||||||
|
@ -76,8 +76,7 @@ export default {
|
|||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
|
|
||||||
span {
|
span {
|
||||||
overflow: hidden;
|
white-space: nowrap;
|
||||||
white-space: nowrap; /* 控制文本不换行 */
|
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
@ -24,7 +24,12 @@ export default {
|
|||||||
tableConfig: {
|
tableConfig: {
|
||||||
url: '/api/v1/accounts/accounts/',
|
url: '/api/v1/accounts/accounts/',
|
||||||
hasLeftActions: true,
|
hasLeftActions: true,
|
||||||
hasImport: true
|
hasImport: true,
|
||||||
|
columnsMeta: {
|
||||||
|
actions: {
|
||||||
|
width: this.$i18n.locale === 'pt-br' ? '120px' : '100px'
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
treeSetting: {
|
treeSetting: {
|
||||||
showMenu: false,
|
showMenu: false,
|
||||||
|
@ -37,6 +37,7 @@ export default {
|
|||||||
label: this.$t('ApproverNumbers')
|
label: this.$t('ApproverNumbers')
|
||||||
},
|
},
|
||||||
actions: {
|
actions: {
|
||||||
|
width: (this.$i18n.locale === 'pt-br' || this.$i18n.locale === 'en') ? '120px' : '100px',
|
||||||
formatterArgs: {
|
formatterArgs: {
|
||||||
hasClone: false,
|
hasClone: false,
|
||||||
updateRoute: ({ row }) => {
|
updateRoute: ({ row }) => {
|
||||||
|
@ -103,6 +103,7 @@ export default {
|
|||||||
width: '200px'
|
width: '200px'
|
||||||
},
|
},
|
||||||
actions: {
|
actions: {
|
||||||
|
width: this.$i18n.locale === 'pt-br' ? '120px' : '100px',
|
||||||
formatterArgs: {
|
formatterArgs: {
|
||||||
hasUpdate: false,
|
hasUpdate: false,
|
||||||
hasDelete: false,
|
hasDelete: false,
|
||||||
|
@ -33,7 +33,7 @@ export default {
|
|||||||
{
|
{
|
||||||
prop: 'total',
|
prop: 'total',
|
||||||
label: this.$t('LoginCount'),
|
label: this.$t('LoginCount'),
|
||||||
width: '120px'
|
width: this.$i18n.locale === 'zh-CN' ? '120px' : '220px'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@ -50,7 +50,7 @@ export default {
|
|||||||
{
|
{
|
||||||
prop: 'total',
|
prop: 'total',
|
||||||
label: this.$t('NumberOfVisits'),
|
label: this.$t('NumberOfVisits'),
|
||||||
width: '140px'
|
width: this.$i18n.locale === 'zh-CN' ? '140px' : '140px'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -9,13 +9,14 @@
|
|||||||
class="table"
|
class="table"
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
>
|
>
|
||||||
<el-table-column :label="$tc('Ranking')" width="80px">
|
<el-table-column :label="$tc('Ranking')" :width="this.$i18n.locale === 'zh-CN' ? '80px' : '110px'">
|
||||||
<template v-slot="scope" #header>
|
<template #header>
|
||||||
<el-tooltip :content="$t('Ranking')" placement="top" :open-delay="500">
|
<el-tooltip :content="$t('Ranking')" placement="top" :open-delay="500">
|
||||||
<span style="cursor: pointer;">{{ $t('Ranking') }}</span>
|
<span style="cursor: pointer;">{{ $t('Ranking') }}</span>
|
||||||
</el-tooltip>
|
</el-tooltip>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|
||||||
<el-table-column
|
<el-table-column
|
||||||
v-for="i in config.columns"
|
v-for="i in config.columns"
|
||||||
:key="i.prop"
|
:key="i.prop"
|
||||||
|
Loading…
Reference in New Issue
Block a user