diff --git a/src/pages/searchCenter/pages/standardSearch.vue b/src/pages/searchCenter/pages/standardSearch.vue index f892ae472..5dd1ca88d 100644 --- a/src/pages/searchCenter/pages/standardSearch.vue +++ b/src/pages/searchCenter/pages/standardSearch.vue @@ -1308,13 +1308,46 @@ this.keywords = '' } const AllList = {} + console.log(this.searchOptions) + console.log(this.searchCondition) let searchCondition = this.searchCondition let searchKeys = Object.keys(this.searchOptions) + console.log(searchCondition) + console.log(searchKeys) for (let key in searchCondition) { if (searchKeys.indexOf(key) !== -1) { - AllList[key] = searchCondition[key].join(',') === 'all' ? '' : searchCondition[key].join(',') + if(key !== 'CLLX' && key !== 'NYLXCLASS'){ + AllList[key] = searchCondition[key].join(',') === 'all' ? '' : searchCondition[key].join(',') + }else { + AllList[key] = searchCondition[key].join(',') === 'all' ? '' : searchCondition[key].join(',') + const list = AllList[key].split(",") + const listSum = [] + list.forEach(item =>{ + if(key === 'CLLX' && this.searchOptions.CLLX && this.searchOptions.CLLX.options){ + const ids = this.searchOptions.CLLX.options + ids.forEach(data =>{ + if(data.value === item){ + listSum.push(data.label) + } + + }) + }else if(key === 'NYLXCLASS' && this.searchOptions.NYLXCLASS && this.searchOptions.NYLXCLASS.options){ + const ids = this.searchOptions.NYLXCLASS.options + ids.forEach(data =>{ + if(data.value === item){ + listSum.push(data.label) + } + + }) + } + }) + AllList[key] = listSum.join(',') + } + } } + if(AllList[""]){ + } AllList.selectIndex = 'fulltextserch' AllList.selectValue = this.keywords AllList.page = this.pageAll