[update] 外来标准法规表头双语
This commit is contained in:
@@ -15,6 +15,8 @@ let importModalLoading
|
|||||||
// 需要数据字段翻译的属性类型
|
// 需要数据字段翻译的属性类型
|
||||||
const NEED_DICT_FIELD_TYPE = [FieldType.USER_SINGLE.value, FieldType.ORGAN_SINGLE.value, FieldType.ORGAN_MORE.value, FieldType.FILE_UP.value, FieldType.OPTION_SINGLE.value, FieldType.OPTION_MORE.value, FieldType.TREE.value, FieldType.TREE_SINGLE.value, FieldType.TREE_MODAL_SELECT.value]
|
const NEED_DICT_FIELD_TYPE = [FieldType.USER_SINGLE.value, FieldType.ORGAN_SINGLE.value, FieldType.ORGAN_MORE.value, FieldType.FILE_UP.value, FieldType.OPTION_SINGLE.value, FieldType.OPTION_MORE.value, FieldType.TREE.value, FieldType.TREE_SINGLE.value, FieldType.TREE_MODAL_SELECT.value]
|
||||||
|
|
||||||
|
const ZH = 'zh-cn'
|
||||||
|
|
||||||
export const ConfigurableTableMixin = {
|
export const ConfigurableTableMixin = {
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
@@ -151,7 +153,7 @@ export const ConfigurableTableMixin = {
|
|||||||
// 是否可排序
|
// 是否可排序
|
||||||
item.sorter = item.sortFlag === '1'
|
item.sorter = item.sortFlag === '1'
|
||||||
item.width = 215
|
item.width = 215
|
||||||
item.title = item.dbFieldTxt
|
item.title = this.$i18n.locale === ZH ? item.dbFieldTxt : item.dbFieldEnName
|
||||||
if (NEED_DICT_FIELD_TYPE.includes(item.fieldShowType)) {
|
if (NEED_DICT_FIELD_TYPE.includes(item.fieldShowType)) {
|
||||||
item.dataIndex = item.dbFieldName + '_dictText'
|
item.dataIndex = item.dbFieldName + '_dictText'
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user