diff --git a/src/components/dict/JDictSelectTag.vue b/src/components/dict/JDictSelectTag.vue
index c6143ef..2f21fe5 100644
--- a/src/components/dict/JDictSelectTag.vue
+++ b/src/components/dict/JDictSelectTag.vue
@@ -24,8 +24,8 @@
>
请选择
-
- {{ item.text || item.label }}
+
+ {{ $i18n.locale === EN ? item.enText : (item.text || item.label) }}
@@ -56,6 +56,7 @@ export default {
},
data () {
return {
+ EN: 'en-us',
dictOptions: [],
tagType: ''
}
@@ -105,6 +106,7 @@ export default {
// 优先从缓存中读取字典配置
if (getDictItemsFromCache(this.dictCode)) {
this.dictOptions = getDictItemsFromCache(this.dictCode)
+ console.log('-----------缓存获取', this.dictCode, this.dictOptions)
return
}
@@ -112,6 +114,7 @@ export default {
ajaxGetDictItems(this.dictCode, null).then((res) => {
if (res.success) {
this.dictOptions = res.result
+ console.log('-----------接口获取', this.dictCode, this.dictOptions)
}
})
},
diff --git a/src/components/dict/JMultiSelectTag.vue b/src/components/dict/JMultiSelectTag.vue
index 1c713b7..0c52f6c 100644
--- a/src/components/dict/JMultiSelectTag.vue
+++ b/src/components/dict/JMultiSelectTag.vue
@@ -20,7 +20,7 @@
:class="(openSelectedAll && arrayValue[0] === selectedAllValue) ? 'multi-select-tag-check-all' : ''"
v-bind="$attrs">
{{ $t('checkedAll') }}
- {{ item.text || item.label }}
+ {{ $i18n.locale === EN ? item.enText : (item.text || item.label) }}
@@ -61,6 +61,7 @@ export default {
},
data () {
return {
+ EN: 'en-us',
// 全选的value
selectedAllValue,
dictOptions: [],