perf: 修改翻译

This commit is contained in:
ibuler
2024-03-11 19:20:32 +08:00
parent 9c7606e59b
commit 6b87a2ad31
7 changed files with 33 additions and 7 deletions

View File

@@ -20,7 +20,7 @@
v-for="item in totalColumnsList"
:key="item.prop"
:span="8"
style="margin-top:5px;"
class="col-item"
>
<el-checkbox
:disabled="item.prop==='actions' || minColumns.indexOf(item.prop)!==-1"
@@ -87,8 +87,29 @@ export default {
}
</script>
<style lang='less' scoped>
<style lang='scss' scoped>
.column-setting {
margin-left: 10px;
.col-item {
margin-top: 5px;
>>> .el-checkbox {
width: 100%;
.el-checkbox__input {
line-height: 16px
}
.el-checkbox__label {
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
width: calc(100% - 20px); // 20px is the width of the checkbox
line-height: 16px;
vertical-align: text-top;
}
}
}
}
</style>

View File

@@ -170,7 +170,8 @@ export default {
<style lang="scss" scoped>
.el-data-table {
>>> .el-pagination.is-background .el-pager li {
margin: 0 1px ;
margin: 0 1px;
padding: 0 2px;
}
}
</style>

View File

@@ -397,3 +397,7 @@ button, input, optgroup, select, textarea {
border-radius: 2px;
}
.el-select .el-input .el-select__caret {
line-height: 1;
}

View File

@@ -38,7 +38,7 @@ export default {
tableConfig: {
url: `/api/v1/assets/assets/${this.object.id}/perm-users/`,
columns: [
'name', 'username', 'email', 'phone', 'wechat',
'name', 'username', 'email', 'phone',
'groups_display', 'total_role_display', 'source',
'is_valid', 'login_blocked', 'mfa_enabled',
'mfa_force_enabled', 'is_expired',

View File

@@ -24,7 +24,7 @@ export default {
fields: [
[this.$t('Account'), ['username', 'name', 'email']],
[this.$t('Authentication'), ['mfa_level', 'public_key']],
[this.$t('Other'), ['phone', 'wechat']],
[this.$t('Other'), ['phone']],
[this.$t('TermsAndConditions'), ['terms']]
],
fieldsMeta: {

View File

@@ -30,7 +30,7 @@ export default {
hasDetailInMsg: false,
fields: [
[this.$t('Account'), ['username', 'name', 'email']],
[this.$t('Other'), ['phone', 'wechat']]
[this.$t('Other'), ['phone']]
],
fieldsMeta: {
username: {

View File

@@ -31,7 +31,7 @@ export default {
'need_update_password', 'mfa_level', 'source'
]],
[this.$t('Secure'), ['system_roles', 'org_roles', 'is_active', 'date_expired']],
[this.$t('Other'), ['phone', 'wechat', 'comment']]
[this.$t('Other'), ['phone', 'comment']]
],
url: '/api/v1/users/users/',
fieldsMeta: {