|
@@ -27,31 +27,32 @@ function getRecommendEntInfo(list) {
|
|
|
link: item.link,
|
|
|
tags: [
|
|
|
{
|
|
|
- value: resItem.contactCount || 0,
|
|
|
+ value: resItem.contactCount || '-',
|
|
|
unit: '个',
|
|
|
label: '联系人'
|
|
|
},
|
|
|
{
|
|
|
- value: resItem.biddingCount || 0,
|
|
|
+ value: resItem.biddingCount || '-',
|
|
|
unit: '条',
|
|
|
label: '招标动态'
|
|
|
},
|
|
|
{
|
|
|
- value: resItem.projectCount || 0,
|
|
|
+ value: resItem.projectCount || '-',
|
|
|
unit: '个',
|
|
|
label: '采购项目数量'
|
|
|
},
|
|
|
{
|
|
|
- value: formatMoney(resItem.bidamountCount, { type: 'number' }),
|
|
|
- unit: formatMoney(resItem.bidamountCount, { type: 'unit' }),
|
|
|
+ value:
|
|
|
+ formatMoney(resItem.bidamountCount, { type: 'number' }) || '-',
|
|
|
+ unit: formatMoney(resItem.bidamountCount, { type: 'unit' }) || '',
|
|
|
label: '采购规模'
|
|
|
},
|
|
|
{
|
|
|
- value: resItem.cooperate || 0,
|
|
|
+ value: resItem.cooperate || '-',
|
|
|
unit: '个',
|
|
|
label: '合作企业'
|
|
|
}
|
|
|
- ].filter((v) => v.value),
|
|
|
+ ],
|
|
|
origin: res.data
|
|
|
}
|
|
|
recommendList.value = [].concat(resultList)
|
|
@@ -70,7 +71,10 @@ const list = computed(() => {
|
|
|
getRecommendEntInfo(list.value)
|
|
|
|
|
|
const recommendEntList = computed(() => {
|
|
|
- return recommendList.value.filter((v) => v.name && v.tags.length > 0)
|
|
|
+ return recommendList.value.filter((v) => {
|
|
|
+ const hasTwoTag = v?.tags?.filter((v) => v.value !== '-').length >= 2
|
|
|
+ return v.name && hasTwoTag
|
|
|
+ })
|
|
|
})
|
|
|
|
|
|
function doOpen(item) {
|
|
@@ -115,7 +119,7 @@ function doOpen(item) {
|
|
|
<div class="number-info-item" v-for="(tag, i) in item.tags" :key="i">
|
|
|
<div class="highlight-number">
|
|
|
<span class="highlight-number-label">{{ tag.value }}</span>
|
|
|
- <span>{{ tag.unit }}</span>
|
|
|
+ <span v-if="tag.value !== '-'">{{ tag.unit }}</span>
|
|
|
</div>
|
|
|
<span>{{ tag.label }}</span>
|
|
|
</div>
|
|
@@ -158,7 +162,7 @@ function doOpen(item) {
|
|
|
display: flex;
|
|
|
flex-direction: row;
|
|
|
align-items: center;
|
|
|
- justify-content: flex-start;
|
|
|
+ justify-content: space-between;
|
|
|
font-size: 14px;
|
|
|
line-height: 22px;
|
|
|
color: #686868;
|