[update 88060] 搜索英文下拉
This commit is contained in:
@@ -31,6 +31,7 @@
|
|||||||
<a-form-item :label="item.dbFieldTxt" :labelCol="labelCol" :wrapperCol="wrapperCol" :colon="false">
|
<a-form-item :label="item.dbFieldTxt" :labelCol="labelCol" :wrapperCol="wrapperCol" :colon="false">
|
||||||
<template v-if="item.fieldShowType === FieldType.TREE.value">
|
<template v-if="item.fieldShowType === FieldType.TREE.value">
|
||||||
<a-tree-select
|
<a-tree-select
|
||||||
|
:replaceFields="getReplaceFields(item.dbFieldName)"
|
||||||
tree-node-filter-prop="title"
|
tree-node-filter-prop="title"
|
||||||
v-model="queryParam[item.dbFieldName]"
|
v-model="queryParam[item.dbFieldName]"
|
||||||
:maxTagCount="1"
|
:maxTagCount="1"
|
||||||
@@ -44,6 +45,7 @@
|
|||||||
<!-- 树形选择器(单选) -->
|
<!-- 树形选择器(单选) -->
|
||||||
<template v-if="item.fieldShowType === FieldType.TREE_SINGLE.value">
|
<template v-if="item.fieldShowType === FieldType.TREE_SINGLE.value">
|
||||||
<a-tree-select
|
<a-tree-select
|
||||||
|
:replaceFields="getReplaceFields(item.dbFieldName)"
|
||||||
tree-node-filter-prop="title"
|
tree-node-filter-prop="title"
|
||||||
v-model="queryParam[item.dbFieldName]"
|
v-model="queryParam[item.dbFieldName]"
|
||||||
:maxTagCount="1"
|
:maxTagCount="1"
|
||||||
@@ -250,6 +252,12 @@ export default {
|
|||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
FieldType,
|
FieldType,
|
||||||
|
// 需要英文状态下翻译下拉的字段
|
||||||
|
dictTextFieldList: [
|
||||||
|
'professional_field', // 全部-专业领域
|
||||||
|
'applicable_market', // 适用市场
|
||||||
|
'domain_area' // 条款-专业领域
|
||||||
|
],
|
||||||
loading: false,
|
loading: false,
|
||||||
toggleSearchStatus: true, // 检索条件的展开和收起,false收缩状态
|
toggleSearchStatus: true, // 检索条件的展开和收起,false收缩状态
|
||||||
currStandardType: '1', // 1外部 3企标 4条款 5全部
|
currStandardType: '1', // 1外部 3企标 4条款 5全部
|
||||||
@@ -548,6 +556,18 @@ export default {
|
|||||||
this.queryParam.standard_state = this.defaultStandardStatus
|
this.queryParam.standard_state = this.defaultStandardStatus
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
/**
|
||||||
|
* 处理英文下树结构下拉的字段替换
|
||||||
|
* @param field - 字段名
|
||||||
|
*/
|
||||||
|
getReplaceFields (field) {
|
||||||
|
const obj = {}
|
||||||
|
// 数据字典或标签内容管理英文是enTitle
|
||||||
|
if (this.dictTextFieldList.includes(field)) {
|
||||||
|
obj.title = this.isChinese() ? 'title' : 'enTitle'
|
||||||
|
}
|
||||||
|
return obj
|
||||||
|
},
|
||||||
// 导出
|
// 导出
|
||||||
handleExportXls (fileName, fileSuffix = '.xls') {
|
handleExportXls (fileName, fileSuffix = '.xls') {
|
||||||
if (!fileName || typeof fileName !== 'string') {
|
if (!fileName || typeof fileName !== 'string') {
|
||||||
|
|||||||
Reference in New Issue
Block a user