|
@@ -38,7 +38,7 @@
|
|
|
@confirm="onFilterConfirm"
|
|
|
@reset="doSearch"
|
|
|
@open="doOpen"
|
|
|
- :defaultFilterState="defaultFilterState"
|
|
|
+ :defaultFilterState="noChangeDefaultFilterState"
|
|
|
:dropdownMenuMaxHeight="conf.maxHeight"
|
|
|
:infoTypeSourceConf="activeSearchGroupInfo"
|
|
|
:topSearch="topSearch"
|
|
@@ -2223,8 +2223,10 @@ export default {
|
|
|
vSwitch: this.vSwitch,
|
|
|
match_way: wordsMode
|
|
|
}
|
|
|
+ const loading = this.$toast.loading({ duration: 0 })
|
|
|
try {
|
|
|
const { flag } = await setUserSubInfo(params)
|
|
|
+ loading.clear()
|
|
|
if (flag === 'y') {
|
|
|
this.saveState()
|
|
|
openAppOrWxPage(LINKS.关键词列表)
|
|
@@ -2371,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
|
|
@@ -2474,27 +2482,25 @@ export default {
|
|
|
* */
|
|
|
let labelList = formattedList
|
|
|
.filter((v) => {
|
|
|
- if (v.label === '搜索范围:') {
|
|
|
- v.text = v.text.replace(/搜索/g, '')
|
|
|
- }
|
|
|
- if (v.label === '信息类型:') {
|
|
|
+ if (v.label.includes('信息类型')) {
|
|
|
const isChecked = deepCompareInfoType(v.text)
|
|
|
- // console.log(isChecked, '是否全选')
|
|
|
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)
|
|
|
}
|
|
|
- if (searchGroup > 0) {
|
|
|
+ // console.log(formattedList, 'formattedList')
|
|
|
+ const isHaveInfoType = formattedList.some((v) =>
|
|
|
+ v.label.includes('信息类型')
|
|
|
+ )
|
|
|
+ if (searchGroup > 0 && !isHaveInfoType) {
|
|
|
labelList = labelList.concat(this.activeSearchGroupInfo.title)
|
|
|
}
|
|
|
let label = ''
|
|
@@ -3299,4 +3305,7 @@ export default {
|
|
|
left: 12px;
|
|
|
right: 12px;
|
|
|
}
|
|
|
+.customer-corner {
|
|
|
+ z-index: 10;
|
|
|
+}
|
|
|
</style>
|