|
@@ -8,141 +8,158 @@
|
|
|
'style-for-bidding': config.bidding
|
|
|
}"
|
|
|
>
|
|
|
- <div class="article-item-header">
|
|
|
- <input
|
|
|
- v-if="config.collect"
|
|
|
- @change="changeCheck($event)"
|
|
|
- @click.stop
|
|
|
- class="custom-checkbox title-text-checkbox"
|
|
|
- name="bid-list"
|
|
|
- type="checkbox"
|
|
|
- :dataid="article._id"
|
|
|
- />
|
|
|
- <div class="a-i-con">
|
|
|
- <div class="content-item">
|
|
|
- <div
|
|
|
- v-html="calcTitle"
|
|
|
- class="a-i-left visited-hd"
|
|
|
- :class="(config.push || config.bidding) ? 'ellipsis-3' : 'ellipsis'"
|
|
|
- @click="onClick"
|
|
|
- ></div>
|
|
|
+ <div class="list-item-left">
|
|
|
+ <slot name="prefix"></slot>
|
|
|
+ </div>
|
|
|
+ <div class="list-item-content">
|
|
|
+ <div class="article-item-header">
|
|
|
+ <input
|
|
|
+ v-if="config.collect"
|
|
|
+ @change="changeCheck($event)"
|
|
|
+ @click.stop
|
|
|
+ class="custom-checkbox title-text-checkbox"
|
|
|
+ name="bid-list"
|
|
|
+ type="checkbox"
|
|
|
+ :dataid="article._id"
|
|
|
+ />
|
|
|
+ <div class="a-i-con">
|
|
|
+ <div class="content-item">
|
|
|
+ <div
|
|
|
+ v-html="calcTitle"
|
|
|
+ class="a-i-left visited-hd"
|
|
|
+ :class="config.push || config.bidding ? 'ellipsis-3' : 'ellipsis'"
|
|
|
+ @click="onClick"
|
|
|
+ ></div>
|
|
|
+ </div>
|
|
|
+ <div class="time-container">
|
|
|
+ <span class="el-icon-jy-time" v-if="!config.gray"></span>
|
|
|
+ <span class="time-text">
|
|
|
+ <slot name="right-time">{{
|
|
|
+ dateFromNow(article.publishtime * 1000) ||
|
|
|
+ dateFromNow(article.publishTime * 1000)
|
|
|
+ }}</slot>
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- <div class="time-container">
|
|
|
- <span class="el-icon-jy-time" v-if="!config.gray"></span>
|
|
|
- <span class="time-text">
|
|
|
- <slot name="right-time">{{
|
|
|
- dateFromNow(article.publishtime * 1000) || dateFromNow(article.publishTime * 1000)
|
|
|
- }}</slot>
|
|
|
+ </div>
|
|
|
+ <div
|
|
|
+ v-if="config.detail && article.detail && calcDetail"
|
|
|
+ class="a-i-detail ellipsis"
|
|
|
+ v-html="calcDetail"
|
|
|
+ ></div>
|
|
|
+ <div class="a-i-right">
|
|
|
+ <div class="tags">
|
|
|
+ <span
|
|
|
+ class="tag tag-user"
|
|
|
+ v-if="
|
|
|
+ article.site === '剑鱼信息发布平台' ||
|
|
|
+ article.spidercode === 'a_jyxxfbpt_gg' ||
|
|
|
+ article.spiderCode === 'a_jyxxfbpt_gg'
|
|
|
+ "
|
|
|
+ >业主委托项目</span
|
|
|
+ >
|
|
|
+ <span class="tag tag-own" v-if="buySubject && article.source === 1"
|
|
|
+ >个人订阅</span
|
|
|
+ >
|
|
|
+ <span class="tag tag-ent" v-if="buySubject && article.source === 2"
|
|
|
+ >企业自动分发</span
|
|
|
+ >
|
|
|
+ <span class="tag tag-ent" v-if="buySubject && article.source === 3"
|
|
|
+ >企业手动分发</span
|
|
|
+ >
|
|
|
+ <span
|
|
|
+ class="tag"
|
|
|
+ v-if="calcArea"
|
|
|
+ :class="{
|
|
|
+ 'tag-handle': tagClickList.includes('area') && article.areaUrl
|
|
|
+ }"
|
|
|
+ @click.stop="tagClick('area')"
|
|
|
+ >
|
|
|
+ {{ calcArea }}</span
|
|
|
+ >
|
|
|
+ <span
|
|
|
+ class="tag orange"
|
|
|
+ :class="{
|
|
|
+ 'tag-handle':
|
|
|
+ tagClickList.includes('subtype') && article.subtypeUrl
|
|
|
+ }"
|
|
|
+ v-if="article.type || article.subtype"
|
|
|
+ @click.stop="tagClick('subtype')"
|
|
|
+ >
|
|
|
+ {{ article.type || article.subtype }}
|
|
|
+ </span>
|
|
|
+ <span class="tag green" v-if="calcBuyerclass">{{
|
|
|
+ article.buyerclass || article.buyerClass
|
|
|
+ }}</span>
|
|
|
+ <span class="tag dpink" v-if="calcBudget && calcBudget !== '0元'">
|
|
|
+ {{ calcBudget }}
|
|
|
</span>
|
|
|
+ <span
|
|
|
+ v-if="config.gray && (article.ca_fileExists || article.fileExists)"
|
|
|
+ class="haveFile"
|
|
|
+ >有附件</span
|
|
|
+ >
|
|
|
</div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div
|
|
|
- v-if="config.detail && article.detail && calcDetail"
|
|
|
- class="a-i-detail ellipsis"
|
|
|
- v-html="calcDetail"
|
|
|
- ></div>
|
|
|
- <div class="a-i-right">
|
|
|
- <div class="tags">
|
|
|
- <span
|
|
|
- class="tag tag-user"
|
|
|
- v-if="
|
|
|
- article.site === '剑鱼信息发布平台' ||
|
|
|
- article.spidercode === 'a_jyxxfbpt_gg'
|
|
|
- "
|
|
|
- >业主委托项目</span
|
|
|
- >
|
|
|
- <span class="tag tag-own" v-if="buySubject && article.source === 1"
|
|
|
- >个人订阅</span
|
|
|
- >
|
|
|
- <span class="tag tag-ent" v-if="buySubject && article.source === 2"
|
|
|
- >企业自动分发</span
|
|
|
- >
|
|
|
- <span class="tag tag-ent" v-if="buySubject && article.source === 3"
|
|
|
- >企业手动分发</span
|
|
|
- >
|
|
|
- <span class="tag"
|
|
|
- v-if="calcArea"
|
|
|
- :class="{'tag-handle': tagClickList.includes('area') && article.areaUrl}"
|
|
|
- @click.stop="tagClick('area')">
|
|
|
- {{ calcArea }}</span>
|
|
|
- <span class="tag orange"
|
|
|
- :class="{'tag-handle': tagClickList.includes('subtype') && article.subtypeUrl}"
|
|
|
- v-if="article.type || article.subtype"
|
|
|
- @click.stop="tagClick('subtype')">
|
|
|
- {{article.type || article.subtype }}
|
|
|
- </span>
|
|
|
- <span
|
|
|
- class="tag green"
|
|
|
- v-if="calcBuyerclass"
|
|
|
- >{{ article.buyerclass || article.buyerClass }}</span
|
|
|
- >
|
|
|
- <span class="tag dpink" v-if="calcBudget && calcBudget !== '0元'">
|
|
|
- {{ calcBudget }}
|
|
|
- </span>
|
|
|
- <span v-if="config.gray && (article.ca_fileExists || article.fileExists)" class="haveFile"
|
|
|
- >有附件</span
|
|
|
- >
|
|
|
- </div>
|
|
|
- <div style="display: flex; align-items: center">
|
|
|
- <el-popover
|
|
|
- popper-class="statusPopover"
|
|
|
- placement="left"
|
|
|
- :visible-arrow="false"
|
|
|
- :append-to-body="false"
|
|
|
- v-if="vt === 'q'"
|
|
|
- @show="setShow"
|
|
|
- trigger="hover"
|
|
|
- >
|
|
|
- <el-table maxHeight="288px" :border="true" :data="gridData">
|
|
|
- <el-table-column
|
|
|
- align="center"
|
|
|
- width="88"
|
|
|
- prop="name"
|
|
|
- label="员工姓名"
|
|
|
- ></el-table-column>
|
|
|
- <el-table-column
|
|
|
- align="center"
|
|
|
- width="120"
|
|
|
- prop="phone"
|
|
|
- label="手机号"
|
|
|
- ></el-table-column>
|
|
|
- <!-- 信息来源 -->
|
|
|
- <el-table-column label="信息来源" align="center" width="112">
|
|
|
- <template slot-scope="scope">
|
|
|
- {{ formatSource(scope.row.source) || '-' }}
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
- class-name="pushTime"
|
|
|
- align="center"
|
|
|
- width="136"
|
|
|
- prop="date"
|
|
|
- label="推送时间"
|
|
|
- ></el-table-column>
|
|
|
- <el-table-column
|
|
|
- align="center"
|
|
|
- width="96"
|
|
|
- prop="isvisit"
|
|
|
- label="查看状态"
|
|
|
- ></el-table-column>
|
|
|
- <el-table-column
|
|
|
- class-name="viewTime"
|
|
|
- align="center"
|
|
|
- width="136"
|
|
|
- prop="visittime"
|
|
|
- label="最近一次查看时间"
|
|
|
- ></el-table-column>
|
|
|
- </el-table>
|
|
|
- <span slot="reference" class="view-status">查看状态</span>
|
|
|
- </el-popover>
|
|
|
- <slot name="right-handle-container"></slot>
|
|
|
- <!-- 参标-->
|
|
|
- <div
|
|
|
- v-if="config.joinBid && ('joinBid' in article)"
|
|
|
- class="join-bid"
|
|
|
- @click.prevent.stop="joinBidChange"
|
|
|
- >
|
|
|
+
|
|
|
+ <div style="display: flex; align-items: center">
|
|
|
+ <el-popover
|
|
|
+ popper-class="statusPopover"
|
|
|
+ placement="left"
|
|
|
+ :visible-arrow="false"
|
|
|
+ :append-to-body="false"
|
|
|
+ v-if="vt === 'q'"
|
|
|
+ @show="setShow"
|
|
|
+ trigger="hover"
|
|
|
+ >
|
|
|
+ <el-table maxHeight="288px" :border="true" :data="gridData">
|
|
|
+ <el-table-column
|
|
|
+ align="center"
|
|
|
+ width="88"
|
|
|
+ prop="name"
|
|
|
+ label="员工姓名"
|
|
|
+ ></el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ align="center"
|
|
|
+ width="120"
|
|
|
+ prop="phone"
|
|
|
+ label="手机号"
|
|
|
+ ></el-table-column>
|
|
|
+ <!-- 信息来源 -->
|
|
|
+ <el-table-column label="信息来源" align="center" width="112">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ {{ formatSource(scope.row.source) || '-' }}
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ class-name="pushTime"
|
|
|
+ align="center"
|
|
|
+ width="136"
|
|
|
+ prop="date"
|
|
|
+ label="推送时间"
|
|
|
+ ></el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ align="center"
|
|
|
+ width="96"
|
|
|
+ prop="isvisit"
|
|
|
+ label="查看状态"
|
|
|
+ ></el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ class-name="viewTime"
|
|
|
+ align="center"
|
|
|
+ width="136"
|
|
|
+ prop="visittime"
|
|
|
+ label="最近一次查看时间"
|
|
|
+ ></el-table-column>
|
|
|
+ </el-table>
|
|
|
+ <span slot="reference" class="view-status">查看状态</span>
|
|
|
+ </el-popover>
|
|
|
+ <slot name="right-handle-container"></slot>
|
|
|
+ <!-- 参标-->
|
|
|
+ <div
|
|
|
+ v-if="config.joinBid && 'joinBid' in article"
|
|
|
+ class="join-bid"
|
|
|
+ @click.prevent.stop="joinBidChange"
|
|
|
+ >
|
|
|
<i
|
|
|
class="j-self-icon"
|
|
|
:class="
|
|
@@ -150,121 +167,141 @@
|
|
|
"
|
|
|
></i>
|
|
|
<span>{{ article.joinBid ? '终止参标' : '参标' }}</span>
|
|
|
- </div>
|
|
|
- <!-- 收藏-->
|
|
|
- <div
|
|
|
- class="right-actions"
|
|
|
- v-if="config.collect"
|
|
|
- @click.stop="collectChange($event)"
|
|
|
- >
|
|
|
- <i
|
|
|
- class="icon-collect"
|
|
|
- :class="{ checked: article.collection }"
|
|
|
- :dataid="article._id"
|
|
|
- ></i>
|
|
|
- <span name="right-action" style="font-size: 14px; margin-left: 4px">{{
|
|
|
- article.collection ? '已收藏' : '收藏'
|
|
|
- }}</span>
|
|
|
+ </div>
|
|
|
+ <!-- 收藏-->
|
|
|
+ <div
|
|
|
+ class="right-actions"
|
|
|
+ v-if="config.collect"
|
|
|
+ @click.stop="collectChange($event)"
|
|
|
+ >
|
|
|
+ <i
|
|
|
+ class="icon-collect"
|
|
|
+ :class="{ checked: article.collection }"
|
|
|
+ :dataid="article._id"
|
|
|
+ ></i>
|
|
|
+ <span
|
|
|
+ name="right-action"
|
|
|
+ style="font-size: 14px; margin-left: 4px"
|
|
|
+ >{{ article.collection ? '已收藏' : '收藏' }}</span
|
|
|
+ >
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- </div>
|
|
|
- <div class="list-detail" v-show="showDetailModel">
|
|
|
- <p
|
|
|
- class="l-d-item"
|
|
|
- v-if="article.buyer || article.buyerTel || article.budget"
|
|
|
- >
|
|
|
- <span v-if="article.buyer">
|
|
|
- <i class="l-d-item-label">采购单位:</i>
|
|
|
- <em
|
|
|
- v-for="(buyer, b) in formatBuyer(article.buyer)"
|
|
|
- :key="b"
|
|
|
- @click="goPortrayal('buyerDesc', buyer)"
|
|
|
- class="highlight-text pointer"
|
|
|
- >
|
|
|
- {{ buyer }}
|
|
|
- <em v-if="b != formatBuyer(article.buyer).length - 1">、</em>
|
|
|
- </em>
|
|
|
- </span>
|
|
|
- <span v-if="article.buyerTel">
|
|
|
- <i class="l-d-item-label">采购单位联系方式:</i>
|
|
|
- {{ article.buyerPerson }}
|
|
|
- <em v-if="article.buyerPerson">,</em>
|
|
|
- {{ article.buyerTel }}
|
|
|
- <em
|
|
|
- class="more-tel"
|
|
|
- v-if="article.buyerTel"
|
|
|
- @click="goPortrayal('buyerDesc', article.buyer, 'contact')"
|
|
|
- >获取更多</em
|
|
|
- >
|
|
|
- </span>
|
|
|
- <span v-if="article.budget">
|
|
|
- <i class="l-d-item-label">预算金额:</i>
|
|
|
- {{ moneyUnit(article.budget) }}
|
|
|
- </span>
|
|
|
- </p>
|
|
|
- <p class="l-d-item" v-if="article.agency || article.agencyTel">
|
|
|
- <span v-if="article.agency">
|
|
|
- <i class="l-d-item-label">代理机构:</i>
|
|
|
- {{ article.agency }}
|
|
|
- </span>
|
|
|
- <span v-if="article.agencyTel">
|
|
|
- <i class="l-d-item-label">代理机构联系方式:</i>
|
|
|
- {{ article.agencyPerson }}<em v-if="article.agencyPerson">,</em
|
|
|
- >{{ article.agencyTel }}</span
|
|
|
+ <div class="list-detail" v-show="showDetailModel">
|
|
|
+ <p
|
|
|
+ class="l-d-item"
|
|
|
+ v-if="article.buyer || article.buyerTel || article.budget"
|
|
|
>
|
|
|
- </p>
|
|
|
- <p
|
|
|
- class="l-d-item"
|
|
|
- v-if="article.winner || article.winnerTel || article.bidAmount"
|
|
|
- >
|
|
|
- <span v-if="article.winnerInfo && article.winnerInfo.length > 0">
|
|
|
- <i class="l-d-item-label">中标单位:</i>
|
|
|
- <em
|
|
|
- v-for="(w, i) in article.winnerInfo"
|
|
|
- :key="w.winnerId"
|
|
|
- @click="goPortrayal('entDesc', w.winnerId)"
|
|
|
- class="highlight-text pointer"
|
|
|
- >
|
|
|
- {{ w.winner }}
|
|
|
- <em v-if="i != article.winnerInfo.length - 1" :key="i + '_1'"
|
|
|
- >、</em
|
|
|
+ <span v-if="article.buyer">
|
|
|
+ <i class="l-d-item-label">采购单位:</i>
|
|
|
+ <em
|
|
|
+ v-for="(buyer, b) in formatBuyer(article.buyer)"
|
|
|
+ :key="b"
|
|
|
+ @click="goPortrayal('buyerDesc', buyer)"
|
|
|
+ class="highlight-text pointer"
|
|
|
+ >
|
|
|
+ {{ buyer }}
|
|
|
+ <em v-if="b != formatBuyer(article.buyer).length - 1">、</em>
|
|
|
+ </em>
|
|
|
+ </span>
|
|
|
+ <span v-if="article.buyerTel">
|
|
|
+ <i class="l-d-item-label">采购单位联系方式:</i>
|
|
|
+ {{ article.buyerPerson }}
|
|
|
+ <em v-if="article.buyerPerson">,</em>
|
|
|
+ {{ article.buyerTel }}
|
|
|
+ <em
|
|
|
+ class="more-tel"
|
|
|
+ v-if="article.buyerTel"
|
|
|
+ @click="goPortrayal('buyerDesc', article.buyer, 'contact')"
|
|
|
+ >获取更多</em
|
|
|
>
|
|
|
- </em>
|
|
|
- </span>
|
|
|
- <span v-if="article.winnerTel">
|
|
|
- <i class="l-d-item-label">中标单位联系方式:</i>
|
|
|
- {{ article.winnerPerson }}
|
|
|
- <em v-if="article.winnerPerson">,</em>
|
|
|
- {{ article.winnerTel }}
|
|
|
- <em
|
|
|
- class="more-tel"
|
|
|
- v-if="article.winnerInfo && article.winnerInfo.length === 1"
|
|
|
- @click="goPortrayal('entDesc', article.winnerInfo[0].winnerId, 'contact')"
|
|
|
- >获取更多</em
|
|
|
+ </span>
|
|
|
+ <span v-if="article.budget">
|
|
|
+ <i class="l-d-item-label">预算金额:</i>
|
|
|
+ {{ moneyUnit(article.budget) }}
|
|
|
+ </span>
|
|
|
+ </p>
|
|
|
+ <p class="l-d-item" v-if="article.agency || article.agencyTel">
|
|
|
+ <span v-if="article.agency">
|
|
|
+ <i class="l-d-item-label">代理机构:</i>
|
|
|
+ {{ article.agency }}
|
|
|
+ </span>
|
|
|
+ <span v-if="article.agencyTel">
|
|
|
+ <i class="l-d-item-label">代理机构联系方式:</i>
|
|
|
+ {{ article.agencyPerson }}<em v-if="article.agencyPerson">,</em
|
|
|
+ >{{ article.agencyTel }}</span
|
|
|
>
|
|
|
- </span>
|
|
|
- <span v-if="article.bidAmount">
|
|
|
- <i class="l-d-item-label">中标金额:</i>
|
|
|
- {{ moneyUnit(article.bidAmount) }}
|
|
|
- </span>
|
|
|
- </p>
|
|
|
- <p
|
|
|
- class="l-d-item"
|
|
|
- v-if="article.signendTime || article.bidendTime || article.bidEndTime || article.bidOpenTime"
|
|
|
- >
|
|
|
- <span v-if="article.signendTime">
|
|
|
- <i class="l-d-item-label">报名截止日期:</i>
|
|
|
- {{ dateFromNow(article.signendTime * 1000) }}
|
|
|
- </span>
|
|
|
- <span v-if="article.bidendTime || article.bidEndTime">
|
|
|
- <i class="l-d-item-label">投标截止日期:</i>
|
|
|
- {{ dateFromNow(article.bidendTime * 1000) || dateFromNow(article.bidEndTime * 1000) }}
|
|
|
- </span>
|
|
|
- <span v-if="article.bidOpenTime">
|
|
|
- <i class="l-d-item-label">开标日期:</i>
|
|
|
- {{ dateFromNow(article.bidOpenTime * 1000) }}
|
|
|
- </span>
|
|
|
- </p>
|
|
|
+ </p>
|
|
|
+ <p
|
|
|
+ class="l-d-item"
|
|
|
+ v-if="article.winner || article.winnerTel || article.bidAmount"
|
|
|
+ >
|
|
|
+ <span v-if="article.winnerInfo && article.winnerInfo.length > 0">
|
|
|
+ <i class="l-d-item-label">中标单位:</i>
|
|
|
+ <em
|
|
|
+ v-for="(w, i) in article.winnerInfo"
|
|
|
+ :key="w.winnerId"
|
|
|
+ @click="goPortrayal('entDesc', w.winnerId)"
|
|
|
+ class="highlight-text pointer"
|
|
|
+ >
|
|
|
+ {{ w.winner }}
|
|
|
+ <em v-if="i != article.winnerInfo.length - 1" :key="i + '_1'"
|
|
|
+ >、</em
|
|
|
+ >
|
|
|
+ </em>
|
|
|
+ </span>
|
|
|
+ <span v-if="article.winnerTel">
|
|
|
+ <i class="l-d-item-label">中标单位联系方式:</i>
|
|
|
+ {{ article.winnerPerson }}
|
|
|
+ <em v-if="article.winnerPerson">,</em>
|
|
|
+ {{ article.winnerTel }}
|
|
|
+ <em
|
|
|
+ class="more-tel"
|
|
|
+ v-if="article.winnerInfo && article.winnerInfo.length === 1"
|
|
|
+ @click="
|
|
|
+ goPortrayal(
|
|
|
+ 'entDesc',
|
|
|
+ article.winnerInfo[0].winnerId,
|
|
|
+ 'contact'
|
|
|
+ )
|
|
|
+ "
|
|
|
+ >获取更多</em
|
|
|
+ >
|
|
|
+ </span>
|
|
|
+ <span v-if="article.bidAmount">
|
|
|
+ <i class="l-d-item-label">中标金额:</i>
|
|
|
+ {{ moneyUnit(article.bidAmount) }}
|
|
|
+ </span>
|
|
|
+ </p>
|
|
|
+ <p
|
|
|
+ class="l-d-item"
|
|
|
+ v-if="
|
|
|
+ article.signendTime ||
|
|
|
+ article.bidendTime ||
|
|
|
+ article.bidEndTime ||
|
|
|
+ article.bidOpenTime
|
|
|
+ "
|
|
|
+ >
|
|
|
+ <span v-if="article.signendTime">
|
|
|
+ <i class="l-d-item-label">报名截止日期:</i>
|
|
|
+ {{ dateFromNow(article.signendTime * 1000) }}
|
|
|
+ </span>
|
|
|
+ <span v-if="article.bidendTime || article.bidEndTime">
|
|
|
+ <i class="l-d-item-label">投标截止日期:</i>
|
|
|
+ {{
|
|
|
+ dateFromNow(article.bidendTime * 1000) ||
|
|
|
+ dateFromNow(article.bidEndTime * 1000)
|
|
|
+ }}
|
|
|
+ </span>
|
|
|
+ <span v-if="article.bidOpenTime">
|
|
|
+ <i class="l-d-item-label">开标日期:</i>
|
|
|
+ {{ dateFromNow(article.bidOpenTime * 1000) }}
|
|
|
+ </span>
|
|
|
+ </p>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="list-item-right">
|
|
|
+ <slot name="suffix"></slot>
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -346,6 +383,10 @@ export default {
|
|
|
tagClickList: {
|
|
|
type: Array,
|
|
|
default: () => []
|
|
|
+ },
|
|
|
+ forceShowDetail: {
|
|
|
+ type: Boolean,
|
|
|
+ default: false
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
@@ -365,14 +406,20 @@ export default {
|
|
|
calcBudget() {
|
|
|
// 先展示中标金额
|
|
|
if (this.article.bidAmount) {
|
|
|
- if(isNaN(this.article.bidAmount) && this.article.bidAmount.indexOf('登录') > -1) {
|
|
|
+ if (
|
|
|
+ isNaN(this.article.bidAmount) &&
|
|
|
+ this.article.bidAmount.indexOf('登录') > -1
|
|
|
+ ) {
|
|
|
return this.article.bidAmount
|
|
|
} else {
|
|
|
return moneyUnit(this.article.bidAmount)
|
|
|
}
|
|
|
} else if (this.article.budget) {
|
|
|
// 无中标金额展示预算金额
|
|
|
- if(isNaN(this.article.budget) && this.article.budget.indexOf('登录') > -1) {
|
|
|
+ if (
|
|
|
+ isNaN(this.article.budget) &&
|
|
|
+ this.article.budget.indexOf('登录') > -1
|
|
|
+ ) {
|
|
|
return this.article.budget
|
|
|
} else {
|
|
|
return moneyUnit(this.article.budget)
|
|
@@ -400,7 +447,7 @@ export default {
|
|
|
calcDetail() {
|
|
|
const extractDetail = extractKeywords(
|
|
|
this.article.detail,
|
|
|
- this.getMatchKeys,
|
|
|
+ this.getMatchKeys
|
|
|
)
|
|
|
if (extractDetail) {
|
|
|
return replaceKeyword(extractDetail, this.getMatchKeys, [
|
|
@@ -421,7 +468,10 @@ export default {
|
|
|
if (inFile) {
|
|
|
const keyword = keywords[0]
|
|
|
if (keyword?.length > 3) {
|
|
|
- return `(<span class="highlight-text">${keyword.substring(0, 3)}</span>...在附件中)`
|
|
|
+ return `(<span class="highlight-text">${keyword.substring(
|
|
|
+ 0,
|
|
|
+ 3
|
|
|
+ )}</span>...在附件中)`
|
|
|
} else {
|
|
|
return `(<span class="highlight-text">${keyword}</span>在附件中)`
|
|
|
}
|
|
@@ -442,6 +492,9 @@ export default {
|
|
|
},
|
|
|
// 处理关键词在附件中
|
|
|
showDetailModel() {
|
|
|
+ if (this.forceShowDetail) {
|
|
|
+ return true
|
|
|
+ }
|
|
|
const isOldVip = this.isVipBefore
|
|
|
const isMember = this.bigmember
|
|
|
const entNiche = this.entniche
|
|
@@ -456,20 +509,22 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
// 处理采购单位类型是否展示
|
|
|
- calcBuyerclass () {
|
|
|
+ calcBuyerclass() {
|
|
|
const buyerClass = this.article.buyerclass || this.article.buyerClass
|
|
|
- return buyerClass && buyerClass !== '其它' && buyerClass.indexOf("登录")<0
|
|
|
+ return (
|
|
|
+ buyerClass && buyerClass !== '其它' && buyerClass.indexOf('登录') < 0
|
|
|
+ )
|
|
|
},
|
|
|
calcArea() {
|
|
|
const v = this.article
|
|
|
const region = []
|
|
|
- if(v.area && (v.city && v.city.indexOf(v.area) === -1)) {
|
|
|
+ if (v.area && v.city && v.city.indexOf(v.area) === -1) {
|
|
|
region.push(v.area)
|
|
|
}
|
|
|
- if(v.city) {
|
|
|
+ if (v.city) {
|
|
|
region.push(v.city)
|
|
|
}
|
|
|
- if(v.district) {
|
|
|
+ if (v.district) {
|
|
|
region.push(v.district)
|
|
|
}
|
|
|
v.region = region.join('-')
|
|
@@ -519,7 +574,7 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
// 参标
|
|
|
- joinBidChange () {
|
|
|
+ joinBidChange() {
|
|
|
this.$emit('onJoinBid', this.article)
|
|
|
},
|
|
|
setShow() {
|
|
@@ -537,8 +592,8 @@ export default {
|
|
|
return arr
|
|
|
},
|
|
|
// 标签点击事件
|
|
|
- tagClick (label) {
|
|
|
- if(this.tagClickList?.includes(label)) {
|
|
|
+ tagClick(label) {
|
|
|
+ if (this.tagClickList?.includes(label)) {
|
|
|
this.$emit('tag-click', label)
|
|
|
}
|
|
|
}
|
|
@@ -600,11 +655,15 @@ export default {
|
|
|
$border-color: #ececec;
|
|
|
@include diy-icon('time', 20, 20);
|
|
|
.article-item {
|
|
|
- // display: flex;
|
|
|
- // align-items: center;
|
|
|
- // justify-content: space-between;
|
|
|
- padding: 16px;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: space-between;
|
|
|
border-bottom: 1px solid $border-color;
|
|
|
+ .list-item-content {
|
|
|
+ flex: 1;
|
|
|
+ padding: 16px;
|
|
|
+ max-width: 100%;
|
|
|
+ }
|
|
|
|
|
|
&:first-of-type,
|
|
|
&:border-top {
|
|
@@ -722,6 +781,7 @@ $border-color: #ececec;
|
|
|
}
|
|
|
.a-i-detail {
|
|
|
width: calc(100% - 84px);
|
|
|
+ max-width: 920px;
|
|
|
padding: 6px 40px 0 30px;
|
|
|
font-size: 14px;
|
|
|
line-height: 22px;
|
|
@@ -794,18 +854,18 @@ $border-color: #ececec;
|
|
|
align-items: unset;
|
|
|
}
|
|
|
}
|
|
|
- &.style-for-bidding{
|
|
|
+ &.style-for-bidding {
|
|
|
.a-i-right {
|
|
|
- padding-left:0;
|
|
|
+ padding-left: 0;
|
|
|
}
|
|
|
.tag-handle {
|
|
|
cursor: pointer;
|
|
|
- &:hover{
|
|
|
+ &:hover {
|
|
|
text-decoration: underline;
|
|
|
}
|
|
|
}
|
|
|
- .list-detail{
|
|
|
- padding-left:0;
|
|
|
+ .list-detail {
|
|
|
+ padding-left: 0;
|
|
|
}
|
|
|
}
|
|
|
}
|