|
@@ -113,7 +113,7 @@
|
|
|
<span
|
|
|
class="winner-item highlight-text link-clickable j-splitter"
|
|
|
data-j-splitter="、"
|
|
|
- v-for="(winner, index) in item.children"
|
|
|
+ v-for="(winner, index) in getCalcWinner(item.children)"
|
|
|
@click.stop="toToEntProfile(winner.id)"
|
|
|
:key="index"
|
|
|
>{{ winner.text }}</span
|
|
@@ -642,7 +642,7 @@ export default {
|
|
|
dateFormatter,
|
|
|
replaceKeyword,
|
|
|
// 获取个人标签列表
|
|
|
- async getAjaxGetKeepLabels () {
|
|
|
+ async getAjaxGetKeepLabels() {
|
|
|
const { error_code: code, data } = await ajaxGetKeepLabels()
|
|
|
if (code === 0 && data) {
|
|
|
data.forEach((item) => {
|
|
@@ -713,7 +713,10 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
initDefaultFilterState() {
|
|
|
- Object.assign(this.filters, JSON.parse(JSON.stringify(this.defaultFilterState)))
|
|
|
+ Object.assign(
|
|
|
+ this.filters,
|
|
|
+ JSON.parse(JSON.stringify(this.defaultFilterState))
|
|
|
+ )
|
|
|
},
|
|
|
onNoLoginInit() {
|
|
|
if (this.isLogin) return
|
|
@@ -931,7 +934,17 @@ export default {
|
|
|
FilterHistoryViewModel2AjaxModel.formatAreaCity(this.filters.area)
|
|
|
const infoType = InfoTypeTransform.listToMap(this.filters.infoType)
|
|
|
const infoTypeText = InfoTypeTransform.formatMapToList(infoType)
|
|
|
- const { price, moreKeywordsMode, publishTime, selectTime, label, buyerClass, winnerConcat, buyerConcat, industry } = this.filters
|
|
|
+ const {
|
|
|
+ price,
|
|
|
+ moreKeywordsMode,
|
|
|
+ publishTime,
|
|
|
+ selectTime,
|
|
|
+ label,
|
|
|
+ buyerClass,
|
|
|
+ winnerConcat,
|
|
|
+ buyerConcat,
|
|
|
+ industry
|
|
|
+ } = this.filters
|
|
|
// 整理wordsMode和additionalWords
|
|
|
// let additionalWords
|
|
|
// if (moreKeywordsMode) {
|
|
@@ -1366,7 +1379,9 @@ export default {
|
|
|
city,
|
|
|
district,
|
|
|
keyWords: moreKeywordsMode,
|
|
|
- industry: FilterHistoryViewModel2AjaxModel.formatIndustry(this.filters.industry), // 行业
|
|
|
+ industry: FilterHistoryViewModel2AjaxModel.formatIndustry(
|
|
|
+ this.filters.industry
|
|
|
+ ), // 行业
|
|
|
minprice: this.filters.price.start,
|
|
|
maxprice: this.filters.price.end,
|
|
|
publishTime: FilterHistoryViewModel2AjaxModel.formatTime(
|
|
@@ -1415,7 +1430,7 @@ export default {
|
|
|
path: '/common/order/create/dataexport',
|
|
|
query: {
|
|
|
source: 'd',
|
|
|
- id:data._id
|
|
|
+ id: data._id
|
|
|
}
|
|
|
})
|
|
|
} catch (error) {
|
|
@@ -1510,7 +1525,7 @@ export default {
|
|
|
listState: this.listState,
|
|
|
pageState: this.pageState,
|
|
|
BIInfo: this.BIInfo,
|
|
|
- toggleSearchBlurData: this.toggleSearchBlurData,
|
|
|
+ toggleSearchBlurData: this.toggleSearchBlurData
|
|
|
},
|
|
|
{ storage: sessionStorage }
|
|
|
)
|
|
@@ -1587,6 +1602,15 @@ export default {
|
|
|
this.pageState.tabSwitchShow = true
|
|
|
}
|
|
|
this.scrollStatus = scrollTop < 60
|
|
|
+ },
|
|
|
+ getCalcWinner(arr) {
|
|
|
+ const uniqueArr = arr.filter((item, index) => {
|
|
|
+ return (
|
|
|
+ arr.findIndex((i) => JSON.stringify(i) === JSON.stringify(item)) ===
|
|
|
+ index
|
|
|
+ )
|
|
|
+ })
|
|
|
+ return uniqueArr
|
|
|
}
|
|
|
}
|
|
|
}
|