|
@@ -4,9 +4,9 @@
|
|
|
<div class="project-header">
|
|
|
<div class="p-h-top">
|
|
|
<div class="p-h-title">{{ projectInfo.projectname }}</div>
|
|
|
- <div class="p-h-actions" v-if="!isOver">
|
|
|
- <el-button class="action-button" type="primary" icon="el-icon-jy-ai" @click="$router.push('/bidforecast')">中标企业预测</el-button>
|
|
|
- <el-button class="action-button" type="primary" icon="el-icon-jy-analysis" @click="$router.push('/bidpolicy')">投标决策分析</el-button>
|
|
|
+ <div class="p-h-actions" v-if="showAction">
|
|
|
+ <el-button class="action-button" type="primary" icon="el-icon-jy-ai" @click="toForecast">中标企业预测</el-button>
|
|
|
+ <el-button class="action-button" type="primary" icon="el-icon-jy-analysis" @click="toPolicy">投标决策分析</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="p-h-bottom">
|
|
@@ -73,6 +73,7 @@ export default {
|
|
|
},
|
|
|
data () {
|
|
|
return {
|
|
|
+ showAction: false,
|
|
|
sid: '', // 信息id
|
|
|
fid: '', // 关注id
|
|
|
projectContent: {
|
|
@@ -106,9 +107,6 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
|
- isOver () {
|
|
|
- return this.projectContent.bidopentime * 1000 < +new Date()
|
|
|
- },
|
|
|
timeLineList () {
|
|
|
return this.projectInfo.list.map(item => {
|
|
|
const s = {
|
|
@@ -124,7 +122,7 @@ export default {
|
|
|
if (item.s_subtype) {
|
|
|
s.tags.push(item.s_subtype)
|
|
|
}
|
|
|
- if (item.s_toptype) {
|
|
|
+ if (!item.s_subtype && item.s_toptype) {
|
|
|
s.tags.push(item.s_toptype)
|
|
|
}
|
|
|
s.tags = Array.from(new Set(s.tags)) // 去重
|
|
@@ -146,6 +144,7 @@ export default {
|
|
|
Object.assign(this.projectContent, data)
|
|
|
Object.assign(this.projectInfo, data.projectInfo)
|
|
|
this.filterData()
|
|
|
+ this.isShowAction()
|
|
|
}
|
|
|
},
|
|
|
async clickFollowButton () {
|
|
@@ -172,7 +171,23 @@ export default {
|
|
|
} else {
|
|
|
this.projectInfo.area = `${this.projectInfo.area}省`
|
|
|
}
|
|
|
- console.log(this.timeLineList)
|
|
|
+
|
|
|
+ if (Array.isArray(this.projectInfo.list)) {
|
|
|
+ this.projectInfo.list = this.projectInfo.list.reverse()
|
|
|
+ }
|
|
|
+ },
|
|
|
+ isShowAction () {
|
|
|
+ const r = ['成交', '中标'].includes(this.projectInfo.bidstatus)
|
|
|
+ this.showAction = !r
|
|
|
+ },
|
|
|
+ toForecast () {
|
|
|
+ const { sid, fid } = this
|
|
|
+ this.$router.push(`/bidforlimit/${fid}/${sid}`)
|
|
|
+
|
|
|
+ },
|
|
|
+ toPolicy () {
|
|
|
+ const { sid, fid } = this
|
|
|
+ this.$router.push(`/analysis/result/${fid}/${sid}`)
|
|
|
}
|
|
|
}
|
|
|
}
|