diff --git a/src/views/dashboard/search/AdvancedSearch.vue b/src/views/dashboard/search/AdvancedSearch.vue index d3d783c..dddfdc0 100644 --- a/src/views/dashboard/search/AdvancedSearch.vue +++ b/src/views/dashboard/search/AdvancedSearch.vue @@ -123,6 +123,22 @@ date-format="YYYY" :placeholder="$t('pleaseSelect')+item.dbFieldTxt" /> + + @@ -474,7 +490,7 @@ export default { getFormFunc: getDomesticStandardFormModal, getDocumentInfoFunc: getDomesticStandardDetail, // 国标和外标的默认标准状态 - defaultStandardStatus: `${StandardStatus.CURRENTLY_EFFECTIVE.value},${StandardStatus.BE_IMPLEMENTED_SOON.value},${StandardStatus.RELEASE.value}`, + defaultStandardStatus: ``, // 企标的默认标准状态 defaultEnStandardStatus: `${EnterpriseStandardStatus.CURRENTLY_EFFECTIVE.value}` } @@ -793,12 +809,12 @@ export default { getOptionsData () { const formList = Object.values(this.searchList).reduce((acc, cur) => acc.concat(cur), []) formList.forEach(item => { - if (item.fieldShowType === FieldType.TREE.value || item.fieldShowType === FieldType.TREE_SINGLE.value) { + if (item.fieldShowType === FieldType.TREE.value || item.fieldShowType === FieldType.TREE_SINGLE.value || item.fieldShowType === FieldType.TREE_MODAL_SELECT_SEARCH_DIFF.value) { // 展示类型是树选择,且有接口的 if (item.fieldHref) { getAction(item.fieldHref).then(res => { if (res.success) { - this.$set(this.optionsData, item.dbFieldName, res.result) + this.$set(this.optionsData, item.dbFieldName, res.result.records || res.result) } }) } else if (item.dictId) { @@ -892,6 +908,10 @@ export default { this.clauseDataSource = [] this.currStandardId = '' this.ipagination.total = 0 + }, + filterTreeOption (input, option) { + const text = option.componentOptions.propsData.title || option.componentOptions.propsData.label + return text.toLowerCase().indexOf(input.toLowerCase()) >= 0 } } }