|
@@ -38,7 +38,7 @@
|
|
|
@confirm="onFilterConfirm"
|
|
|
@reset="doSearch"
|
|
|
@open="doOpen"
|
|
|
- :defaultFilterState="defaultFilterState"
|
|
|
+ :defaultFilterState="noChangeDefaultFilterState"
|
|
|
:dropdownMenuMaxHeight="conf.maxHeight"
|
|
|
:infoTypeSourceConf="activeSearchGroupInfo"
|
|
|
:topSearch="topSearch"
|
|
@@ -2373,8 +2373,14 @@ export default {
|
|
|
// 保存筛选条件
|
|
|
async saveFilterToHistory() {
|
|
|
const params = this.getSaveFilterToHistoryParams()
|
|
|
-
|
|
|
- if (!params.searchvalue) {
|
|
|
+ // 如未输入关键词(包含顶部搜索框及更多筛选条件设置的多关键词、采购单位、中标单位和招标代理机构)则toast提示“请输入关键词”
|
|
|
+ if (
|
|
|
+ !params.searchvalue &&
|
|
|
+ !params.additionalWords &&
|
|
|
+ !params.buyer &&
|
|
|
+ !params.winner &&
|
|
|
+ !params.agency
|
|
|
+ ) {
|
|
|
return this.$toast('请先输入关键词')
|
|
|
}
|
|
|
const { savedFilterListMaxCount: maxCount } = this.conf
|
|
@@ -2476,26 +2482,24 @@ export default {
|
|
|
* */
|
|
|
let labelList = formattedList
|
|
|
.filter((v) => {
|
|
|
- if (v.label === '信息类型:') {
|
|
|
+ if (v.label.includes('信息类型')) {
|
|
|
const isChecked = deepCompareInfoType(v.text)
|
|
|
v.text = isChecked ? '' : v.text
|
|
|
}
|
|
|
if (this.topSearch.input) {
|
|
|
return v && v.text
|
|
|
} else {
|
|
|
- return (
|
|
|
- v.label !== '搜索范围:' && v.label !== '信息类型:' && v.text
|
|
|
- )
|
|
|
+ return !v.label.includes('搜索范围') && v.text
|
|
|
}
|
|
|
})
|
|
|
.map((item) => item.text)
|
|
|
if (searchModeText && this.topSearch.input) {
|
|
|
labelList = [searchModeText].concat(labelList)
|
|
|
}
|
|
|
+ // console.log(formattedList, 'formattedList')
|
|
|
const isHaveInfoType = formattedList.some((v) =>
|
|
|
v.label.includes('信息类型')
|
|
|
)
|
|
|
- // console.log(isHaveInfoType, 'isHaveInfoType')
|
|
|
if (searchGroup > 0 && !isHaveInfoType) {
|
|
|
labelList = labelList.concat(this.activeSearchGroupInfo.title)
|
|
|
}
|