-
+
@@ -37,52 +37,52 @@
-
+
![gift]()
-
金币:{{ item.giftCandy }}
+
{{ $t('pages.giftManagement.weekStar.form.goldPrefix') }}{{ item.giftCandy }}
-
+
![gift]()
-
金币:{{ item.giftCandy }}
+
{{ $t('pages.giftManagement.weekStar.form.goldPrefix') }}{{ item.giftCandy }}
-
+
![gift]()
-
金币:{{ item.giftCandy }}
+
{{ $t('pages.giftManagement.weekStar.form.goldPrefix') }}{{ item.giftCandy }}
- 取消
- 保存
+ {{ $t('common.cancel') }}
+ {{ $t('pages.giftManagement.cp.action.save') }}
@@ -96,9 +96,10 @@ import { mapGetters } from 'vuex'
export default {
name: 'AddWeekGiftGroup',
data() {
+ const requiredMessage = this.$t('pages.giftManagement.weekStar.validation.required')
function commonFormRules() {
return [
- { required: true, message: '必填字段不可为空', trigger: 'blur' }
+ { required: true, message: requiredMessage, trigger: 'blur' }
]
}
return {
diff --git a/src/views/cnf/gift/week-star/index.vue b/src/views/cnf/gift/week-star/index.vue
index 1011adb..a415bc8 100644
--- a/src/views/cnf/gift/week-star/index.vue
+++ b/src/views/cnf/gift/week-star/index.vue
@@ -3,7 +3,7 @@
- 新增
+ {{ $t('pages.giftManagement.action.add') }}
@@ -43,9 +43,9 @@
fit
highlight-current-row
>
-
+
-
+
-
+
- 当前
+ {{ $t('pages.giftManagement.weekStar.status.current') }}
- 上周
+ {{ $t('pages.giftManagement.weekStar.status.lastWeek') }}
- 下周
+ {{ $t('pages.giftManagement.weekStar.status.nextWeek') }}
-
-
+
删除
+ >{{ $t('pages.giftManagement.weekStar.action.delete') }}
@@ -193,7 +193,7 @@ export default {
},
renderDataSuccess() {
this.$message({
- message: 'Successful',
+ message: this.$t('pages.giftManagement.weekStar.message.success'),
type: 'success'
})
this.renderData()
@@ -204,7 +204,7 @@ export default {
},
// 删除
handlDel(id) {
- this.$confirm('确认删除吗?', '提示', {
+ this.$confirm(this.$t('pages.giftManagement.weekStar.message.confirmDelete'), this.$t('pages.giftManagement.weekStar.message.tip'), {
type: 'warning'
})
.then(() => {
diff --git a/src/views/cnf/pay/channel/edit-form.vue b/src/views/cnf/pay/channel/edit-form.vue
index 7c9550b..607318b 100644
--- a/src/views/cnf/pay/channel/edit-form.vue
+++ b/src/views/cnf/pay/channel/edit-form.vue
@@ -16,31 +16,31 @@
v-loading="submitLoading"
style="width: 400px; margin-left:50px;"
:model="form"
- :rules="rules"
+ :rules="localizedRules"
label-width="60px"
>
-
+
-
+
-
-
+
+
-
+
@@ -77,7 +77,6 @@ export default {
}
},
data() {
- var commonRequiredParams = [{ required: true, message: '必填参数不可为空', trigger: 'blur' }]
return {
payChannelGroups,
form: {
@@ -87,12 +86,6 @@ export default {
channelIcon: '',
channelType: ''
},
- rules: {
- channelCode: commonRequiredParams,
- channelName: commonRequiredParams,
- channelIcon: commonRequiredParams,
- channelType: commonRequiredParams
- },
submitLoading: false,
iconUploadLoading: false,
iconFileList: []
@@ -103,10 +96,19 @@ export default {
return !!(this.form && this.form.id)
},
title() {
- return this.form && this.form.id ? '修改渠道' : '添加渠道'
+ return this.form && this.form.id ? this.$t('pages.payChannel.dialog.editTitle') : this.$t('pages.payChannel.dialog.addTitle')
},
formChannelIconNotEmpty() {
return !!(this.form.channelIcon && this.form.channelIcon.length > 0)
+ },
+ localizedRules() {
+ const commonRequiredParams = [{ required: true, message: this.$t('pages.payChannel.validation.requiredField'), trigger: 'blur' }]
+ return {
+ channelCode: commonRequiredParams,
+ channelName: commonRequiredParams,
+ channelIcon: commonRequiredParams,
+ channelType: commonRequiredParams
+ }
}
},
watch: {
@@ -126,6 +128,11 @@ export default {
handleClose() {
this.$emit('close')
},
+ getChannelTypeName(type) {
+ const key = `pages.payChannel.channelTypes.${type}`
+ const translatedName = this.$t(key)
+ return translatedName === key ? type : translatedName
+ },
submitForm() {
const that = this
that.$refs.form.validate(valid => {
diff --git a/src/views/cnf/pay/channel/index.vue b/src/views/cnf/pay/channel/index.vue
index d4f5365..c5e474d 100644
--- a/src/views/cnf/pay/channel/index.vue
+++ b/src/views/cnf/pay/channel/index.vue
@@ -4,7 +4,7 @@
@@ -35,7 +35,7 @@
icon="el-icon-search"
@click="handleSearch"
>
- 搜索
+ {{ $t('pages.payChannel.action.search') }}
- 添加
+ {{ $t('pages.payChannel.action.add') }}
-
+
-
+
- {{ payChannelGroupNames[scope.row.channelType].name }}
+ {{ getChannelTypeName(scope.row.channelType) }}
-
+
{{ scope.row.createTime | dateFormat }}
-
+
- 编辑
+ {{ $t('pages.payChannel.action.edit') }}
@@ -157,6 +157,11 @@ export default {
that.selectedRow = row
that.formEditVisible = true
},
+ getChannelTypeName(type) {
+ const key = `pages.payChannel.channelTypes.${type}`
+ const translatedName = this.$t(key)
+ return translatedName === key ? (this.payChannelGroupNames[type] && this.payChannelGroupNames[type].name) || type : translatedName
+ },
formEditSuccess(res) {
this.selectedRow = {}
this.formEditVisible = false
diff --git a/src/views/cnf/pay/comp/transfer-channel.vue b/src/views/cnf/pay/comp/transfer-channel.vue
index 300d321..e33324c 100644
--- a/src/views/cnf/pay/comp/transfer-channel.vue
+++ b/src/views/cnf/pay/comp/transfer-channel.vue
@@ -2,7 +2,7 @@
-
添加渠道
+
{{ $t('pages.payFactory.action.addChannels') }}