diff --git a/src/components/ActionsGroup/index.vue b/src/components/ActionsGroup/index.vue index d89389df0..62a2c9c06 100644 --- a/src/components/ActionsGroup/index.vue +++ b/src/components/ActionsGroup/index.vue @@ -41,7 +41,7 @@ export default { moreActionsTitle: { type: String, default() { - return this.$ttc('moreActions') + return this.$t('common.moreActions') } } }, @@ -66,7 +66,7 @@ export default { return actions }, iMoreActionsTitle() { - return this.moreActionsTitle || this.$ttc('moreActions') + return this.moreActionsTitle || this.$t('common.moreActions') } }, mounted() { diff --git a/src/components/AutoDataTable/index.vue b/src/components/AutoDataTable/index.vue index 86e213654..b648cd9f6 100644 --- a/src/components/AutoDataTable/index.vue +++ b/src/components/AutoDataTable/index.vue @@ -50,7 +50,7 @@ export default { case 'actions': col = { prop: 'id', - label: this.$ttc('actions'), + label: this.$t('common.actions'), align: 'center', formatter: ActionsFormatter, width: '150px', @@ -58,7 +58,7 @@ export default { } break case 'is_valid': - col.label = this.$ttc('validity') + col.label = this.$t('common.validity') col.formatter = BooleanFormatter col.align = 'center' col.width = '80px' diff --git a/src/components/DataForm/index.vue b/src/components/DataForm/index.vue index 5e2effe33..d196f06a6 100644 --- a/src/components/DataForm/index.vue +++ b/src/components/DataForm/index.vue @@ -14,8 +14,8 @@ {{ button.title }} - {{ $ttc('reset') }} - {{ $ttc('submit') }} + {{ $t('common.reset') }} + {{ $t('common.submit') }} diff --git a/src/components/DataZTree/components/ZTree/index.vue b/src/components/DataZTree/components/ZTree/index.vue index 415143f27..b09a6b067 100644 --- a/src/components/DataZTree/components/ZTree/index.vue +++ b/src/components/DataZTree/components/ZTree/index.vue @@ -53,7 +53,7 @@ export default { } if (res.length === 0) { res.push({ - name: this.$tco('empty') + name: this.$t('common.empty') }) } this.zTree = $.fn.zTree.init($('#ztree'), this.treeSetting, res) diff --git a/src/components/DetailCard/index.vue b/src/components/DetailCard/index.vue index 2e6759418..5698b6773 100644 --- a/src/components/DetailCard/index.vue +++ b/src/components/DetailCard/index.vue @@ -22,7 +22,7 @@ export default { title: { type: String, default() { - return this.$ttc('basicInfo') + return this.$t('common.basicInfo') } }, items: { diff --git a/src/components/Dialog/index.vue b/src/components/Dialog/index.vue index 023dc4de5..a21a424ed 100644 --- a/src/components/Dialog/index.vue +++ b/src/components/Dialog/index.vue @@ -7,8 +7,8 @@ diff --git a/src/components/DialogAction/index.vue b/src/components/DialogAction/index.vue index 942af61f5..96faf4af2 100644 --- a/src/components/DialogAction/index.vue +++ b/src/components/DialogAction/index.vue @@ -1,6 +1,6 @@