|
@@ -69,17 +69,16 @@ export class FilterHistoryAjaxModel2ViewModel {
|
|
buyerTelText,
|
|
buyerTelText,
|
|
winnerTel,
|
|
winnerTel,
|
|
winnerTelText,
|
|
winnerTelText,
|
|
- notkey: map.notkey,
|
|
|
|
- buyer: map.buyer,
|
|
|
|
- winner: map.winner,
|
|
|
|
- agency: map.agency,
|
|
|
|
|
|
+ notkey: map.notkey ? map.notkey.replace(/,/g, ",") : '',
|
|
|
|
+ buyer: map.buyer ? map.buyer.replace(/,/g, ",") : '',
|
|
|
|
+ winner: map.winner ? map.winner.replace(/,/g, ",") : '',
|
|
|
|
+ agency: map.agency ? map.agency.replace(/,/g, ",") : '',
|
|
fileExists: map.fileExists,
|
|
fileExists: map.fileExists,
|
|
- fileExiststText: fileExistsText
|
|
|
|
|
|
+ fileExistsText: fileExistsText
|
|
}
|
|
}
|
|
-
|
|
|
|
// 删去undefined/null的项
|
|
// 删去undefined/null的项
|
|
for (const key in formatted) {
|
|
for (const key in formatted) {
|
|
- if (!formatted[key]) {
|
|
|
|
|
|
+ if (formatted[key] === undefined || formatted[key] === null) {
|
|
delete formatted[key]
|
|
delete formatted[key]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -453,7 +452,7 @@ export class FilterHistoryAjaxModel2ViewModel {
|
|
})
|
|
})
|
|
|
|
|
|
if (val) {
|
|
if (val) {
|
|
- result.basicData = [val]
|
|
|
|
|
|
+ result.basicData = val
|
|
result.basicDataText = map[val]
|
|
result.basicDataText = map[val]
|
|
}
|
|
}
|
|
return result
|
|
return result
|
|
@@ -518,7 +517,7 @@ export class FilterHistoryViewModel2AjaxModel {
|
|
buyer: map.buyer ? map.buyer.join(',') : '', // 采购单位
|
|
buyer: map.buyer ? map.buyer.join(',') : '', // 采购单位
|
|
winner: map.winner ? map.winner.join(',') : '', // 中标企业
|
|
winner: map.winner ? map.winner.join(',') : '', // 中标企业
|
|
agency: map.agency ? map.agency.join(',') : '', // 招标代理机构
|
|
agency: map.agency ? map.agency.join(',') : '', // 招标代理机构
|
|
- fileExists: map.fileExists ? map.fileExists.toString() : '', // 附件
|
|
|
|
|
|
+ fileExists: map.fileExists, // 附件
|
|
regionMap: map.regionMap, // 地区
|
|
regionMap: map.regionMap, // 地区
|
|
searchGroup: map.searchGroup, // 搜索分组:默认0:全部;1:招标采购公告;2:超前项目
|
|
searchGroup: map.searchGroup, // 搜索分组:默认0:全部;1:招标采购公告;2:超前项目
|
|
searchMode: Number(map.searchMode), // 搜索模式:0:精准搜索;1:模糊搜索
|
|
searchMode: Number(map.searchMode), // 搜索模式:0:精准搜索;1:模糊搜索
|
|
@@ -529,7 +528,7 @@ export class FilterHistoryViewModel2AjaxModel {
|
|
|
|
|
|
// 删去undefined/null的项
|
|
// 删去undefined/null的项
|
|
for (const key in formatted) {
|
|
for (const key in formatted) {
|
|
- if (formatted[key] === '' || formatted[key] === undefined || formatted[key] === null) {
|
|
|
|
|
|
+ if (formatted[key] === undefined || formatted[key] === null) {
|
|
delete formatted[key]
|
|
delete formatted[key]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -761,7 +760,7 @@ export class FilterHistoryAjaxModelRestore {
|
|
// wordsMode
|
|
// wordsMode
|
|
const { additionalWords, wordsMode } = this.formatSelectMoreKey(map.additionalWords, map.wordsMode)
|
|
const { additionalWords, wordsMode } = this.formatSelectMoreKey(map.additionalWords, map.wordsMode)
|
|
// 高亮关键词
|
|
// 高亮关键词
|
|
- const matchKeys = this.formatMatchKeys(map.keywords, additionalWords, map.wordsMode)
|
|
|
|
|
|
+ const matchKeys = this.formatMatchKeys(map.keywords, additionalWords)
|
|
// 精准匹配/模糊匹配
|
|
// 精准匹配/模糊匹配
|
|
const searchMode= this.formatSearchMode(map.searchMode)
|
|
const searchMode= this.formatSearchMode(map.searchMode)
|
|
//
|
|
//
|
|
@@ -833,12 +832,12 @@ export class FilterHistoryAjaxModelRestore {
|
|
* 处理页面需要匹配的高亮关键词
|
|
* 处理页面需要匹配的高亮关键词
|
|
*/
|
|
*/
|
|
static formatMatchKeys (keywords, additionalWords) {
|
|
static formatMatchKeys (keywords, additionalWords) {
|
|
- const arr = []
|
|
|
|
|
|
+ let arr = []
|
|
if(keywords) {
|
|
if(keywords) {
|
|
arr.push(keywords)
|
|
arr.push(keywords)
|
|
}
|
|
}
|
|
- if(additionalWords && additionalWords.length > 0) {
|
|
|
|
- arr.concat(additionalWords)
|
|
|
|
|
|
+ if(additionalWords?.length > 0) {
|
|
|
|
+ arr.concat(additionalWords)
|
|
}
|
|
}
|
|
return arr
|
|
return arr
|
|
}
|
|
}
|