[update 88380] 列表翻译补充
This commit is contained in:
@@ -230,7 +230,8 @@ export default {
|
|||||||
title: this.$t('docTool.comparison.textStatus'),
|
title: this.$t('docTool.comparison.textStatus'),
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
dataIndex: 'fileType_dictText',
|
dataIndex: 'fileType_dictText',
|
||||||
width: 100
|
width: 100,
|
||||||
|
scopedSlots: { customRender: 'dictText' }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('fileName'),
|
title: this.$t('fileName'),
|
||||||
@@ -263,7 +264,8 @@ export default {
|
|||||||
title: this.$t('docTool.comparison.textStatus'),
|
title: this.$t('docTool.comparison.textStatus'),
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
dataIndex: 'fileType_dictText',
|
dataIndex: 'fileType_dictText',
|
||||||
width: 100
|
width: 100,
|
||||||
|
scopedSlots: { customRender: 'dictText' }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('fileName'),
|
title: this.$t('fileName'),
|
||||||
|
|||||||
@@ -126,6 +126,7 @@
|
|||||||
<!-- 12, 树选择 -->
|
<!-- 12, 树选择 -->
|
||||||
<s-tree-select
|
<s-tree-select
|
||||||
v-else-if="item.fieldShowType === FieldType.TREE.value"
|
v-else-if="item.fieldShowType === FieldType.TREE.value"
|
||||||
|
:replaceFields="getReplaceFields(item.dbFieldName)"
|
||||||
v-model="formInline[item.dbFieldName]"
|
v-model="formInline[item.dbFieldName]"
|
||||||
:disabled="disabled || disabledFieldList.includes(item.dbFieldName)"
|
:disabled="disabled || disabledFieldList.includes(item.dbFieldName)"
|
||||||
:tree-data="optionsData[item.dbFieldName]"
|
:tree-data="optionsData[item.dbFieldName]"
|
||||||
@@ -145,6 +146,7 @@
|
|||||||
<!-- 15, 树选择(单选) -->
|
<!-- 15, 树选择(单选) -->
|
||||||
<s-tree-select v-else-if="item.fieldShowType === FieldType.TREE_SINGLE.value"
|
<s-tree-select v-else-if="item.fieldShowType === FieldType.TREE_SINGLE.value"
|
||||||
v-model="formInline[item.dbFieldName]"
|
v-model="formInline[item.dbFieldName]"
|
||||||
|
:replaceFields="getReplaceFields(item.dbFieldName)"
|
||||||
:disabled="disabled || disabledFieldList.includes(item.dbFieldName)"
|
:disabled="disabled || disabledFieldList.includes(item.dbFieldName)"
|
||||||
:tree-data="optionsData[item.dbFieldName]"
|
:tree-data="optionsData[item.dbFieldName]"
|
||||||
:label-in-value="false"
|
:label-in-value="false"
|
||||||
@@ -257,6 +259,12 @@ export default {
|
|||||||
hiddenFieldList: ['item_content'], // 隐藏的字段
|
hiddenFieldList: ['item_content'], // 隐藏的字段
|
||||||
radioDictSelect: [], // 使用radio样式的数据字典单选
|
radioDictSelect: [], // 使用radio样式的数据字典单选
|
||||||
disabledFieldList: [], // 禁用的字段
|
disabledFieldList: [], // 禁用的字段
|
||||||
|
// 需要英文状态下翻译下拉的字段
|
||||||
|
dictTextFieldList: [
|
||||||
|
'professional_field', // 全部-专业领域
|
||||||
|
'applicable_market', // 适用市场
|
||||||
|
'domain_area' // 条款-专业领域
|
||||||
|
],
|
||||||
specialPlaceholder: {}, // 特殊的placeholder
|
specialPlaceholder: {}, // 特殊的placeholder
|
||||||
optionsData: {}, // 通过接口获取的下拉数据
|
optionsData: {}, // 通过接口获取的下拉数据
|
||||||
title: this.$t('newlyAdded'),
|
title: this.$t('newlyAdded'),
|
||||||
@@ -299,6 +307,18 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
/**
|
||||||
|
* 处理英文下树结构下拉的字段替换
|
||||||
|
* @param field - 字段名
|
||||||
|
*/
|
||||||
|
getReplaceFields (field) {
|
||||||
|
const obj = {}
|
||||||
|
// 数据字典或标签内容管理英文是enTitle
|
||||||
|
if (this.dictTextFieldList.includes(field)) {
|
||||||
|
obj.title = this.isChinese() ? 'title' : 'enTitle'
|
||||||
|
}
|
||||||
|
return obj
|
||||||
|
},
|
||||||
/**
|
/**
|
||||||
* 新增
|
* 新增
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -108,7 +108,8 @@ export default {
|
|||||||
{
|
{
|
||||||
dataIndex: 'origin_dictText',
|
dataIndex: 'origin_dictText',
|
||||||
title: this.$t('docTool.split.dataType'),
|
title: this.$t('docTool.split.dataType'),
|
||||||
width: 150
|
width: 150,
|
||||||
|
scopedSlots: { customRender: 'dictText' }
|
||||||
},
|
},
|
||||||
// 标准号
|
// 标准号
|
||||||
{
|
{
|
||||||
@@ -126,7 +127,8 @@ export default {
|
|||||||
{
|
{
|
||||||
dataIndex: 'standardFileType_dictText',
|
dataIndex: 'standardFileType_dictText',
|
||||||
title: this.$t('docTool.comparison.textStatus'),
|
title: this.$t('docTool.comparison.textStatus'),
|
||||||
width: 150
|
width: 150,
|
||||||
|
scopedSlots: { customRender: 'dictText' }
|
||||||
},
|
},
|
||||||
// 附件
|
// 附件
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -88,7 +88,8 @@ export default {
|
|||||||
{
|
{
|
||||||
dataIndex: 'origin_dictText',
|
dataIndex: 'origin_dictText',
|
||||||
title: this.$t('docTool.split.dataType'),
|
title: this.$t('docTool.split.dataType'),
|
||||||
width: 150
|
width: 150,
|
||||||
|
scopedSlots: { customRender: 'dictText' }
|
||||||
},
|
},
|
||||||
// 标准号
|
// 标准号
|
||||||
{
|
{
|
||||||
@@ -106,7 +107,8 @@ export default {
|
|||||||
{
|
{
|
||||||
dataIndex: 'standardFileType_dictText',
|
dataIndex: 'standardFileType_dictText',
|
||||||
title: this.$t('docTool.comparison.textStatus'),
|
title: this.$t('docTool.comparison.textStatus'),
|
||||||
width: 150
|
width: 150,
|
||||||
|
scopedSlots: { customRender: 'dictText' }
|
||||||
},
|
},
|
||||||
// 附件
|
// 附件
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -258,7 +258,7 @@ export default {
|
|||||||
{
|
{
|
||||||
required: true,
|
required: true,
|
||||||
message: this.$t('pleaseEnter') + this.$t('system.tag.attributeNameEnglish'),
|
message: this.$t('pleaseEnter') + this.$t('system.tag.attributeNameEnglish'),
|
||||||
trigger: 'change'
|
trigger: 'blur'
|
||||||
},
|
},
|
||||||
// { max: 50, message: this.$t('cantExeed') + '50' + this.$t('characters'), trigger: 'blur' },
|
// { max: 50, message: this.$t('cantExeed') + '50' + this.$t('characters'), trigger: 'blur' },
|
||||||
{ validator: this.test }
|
{ validator: this.test }
|
||||||
@@ -507,7 +507,7 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
// 树形结构
|
// 树形结构
|
||||||
if (this.form.fieldShowType === FieldType.TREE.value || this.form.fieldShowType === FieldType.TREE_SINGLE.value || this.form.fieldShowType === FieldType.TREE_MODAL_SELECT.value || val === FieldType.TREE_MODAL_SELECT_SEARCH_DIFF.value) {
|
if (this.form.fieldShowType === FieldType.TREE.value || this.form.fieldShowType === FieldType.TREE_SINGLE.value || this.form.fieldShowType === FieldType.TREE_MODAL_SELECT.value || this.form.fieldShowType === FieldType.TREE_MODAL_SELECT_SEARCH_DIFF.value) {
|
||||||
this.contentOption = [...this.contentOptionTree]
|
this.contentOption = [...this.contentOptionTree]
|
||||||
this.isTagContent = true
|
this.isTagContent = true
|
||||||
} else if (this.form.fieldShowType === FieldType.OPTION_SINGLE.value || this.form.fieldShowType === FieldType.OPTION_MORE.value) {
|
} else if (this.form.fieldShowType === FieldType.OPTION_SINGLE.value || this.form.fieldShowType === FieldType.OPTION_MORE.value) {
|
||||||
|
|||||||
Reference in New Issue
Block a user