|
|
@ -4,7 +4,7 @@ |
|
|
|
<div class="phase"> |
|
|
|
<span>当前阶段</span> |
|
|
|
<el-button type="success" size="mini">{{ |
|
|
|
projectStatusFormat |
|
|
|
projectStatusFormat ? projectStatusFormat : "无" |
|
|
|
}}</el-button> |
|
|
|
</div> |
|
|
|
<div class="processItem"> |
|
|
@ -17,15 +17,10 @@ |
|
|
|
></el-progress> |
|
|
|
<span class="valueBi"> |
|
|
|
<span style="color: #36b2ab">{{ gqMsg.finish }}</span> |
|
|
|
{{ "/" + gqMsg.total + "月" }} |
|
|
|
{{ gqMsg.total ? "/" + gqMsg.total + "月" : "无数据" }} |
|
|
|
</span> |
|
|
|
<span class="tip"> |
|
|
|
<el-tooltip |
|
|
|
class="item" |
|
|
|
effect="dark" |
|
|
|
content="提示文字" |
|
|
|
placement="top" |
|
|
|
> |
|
|
|
<el-tooltip class="item" effect="dark" content="工期" placement="top"> |
|
|
|
<i class="el-icon-info"></i> |
|
|
|
</el-tooltip> |
|
|
|
</span> |
|
|
@ -40,7 +35,7 @@ |
|
|
|
></el-progress> |
|
|
|
<span class="valueBi"> |
|
|
|
<span style="color: #36b2ab">{{ tzMsg.finish }}</span> |
|
|
|
{{ "/" + tzMsg.total + "万元" }} |
|
|
|
{{ tzMsg.total ? "/" + tzMsg.total + "万元" : "无数据" }} |
|
|
|
</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -175,21 +170,30 @@ export default { |
|
|
|
this.activities[2].timestamp = res.data.projectCompletedDate; |
|
|
|
this.activities[3].timestamp = res.data.completionAcceptanceDate; |
|
|
|
|
|
|
|
let cur = Number(res.data.currentStage); |
|
|
|
// let cur = 1; |
|
|
|
this.activities.forEach((item, index) => { |
|
|
|
if (index <= cur) { |
|
|
|
this.activities[index] = { |
|
|
|
...this.activities[index], |
|
|
|
...this.timelineStyle[1], |
|
|
|
}; |
|
|
|
} else { |
|
|
|
if (res.data.currentStage) { |
|
|
|
let cur = Number(res.data.currentStage); |
|
|
|
// let cur = 1; |
|
|
|
this.activities.forEach((item, index) => { |
|
|
|
if (index <= cur) { |
|
|
|
this.activities[index] = { |
|
|
|
...this.activities[index], |
|
|
|
...this.timelineStyle[1], |
|
|
|
}; |
|
|
|
} else { |
|
|
|
this.activities[index] = { |
|
|
|
...this.activities[index], |
|
|
|
...this.timelineStyle[0], |
|
|
|
}; |
|
|
|
} |
|
|
|
}); |
|
|
|
} else { |
|
|
|
this.activities.forEach((item, index) => { |
|
|
|
this.activities[index] = { |
|
|
|
...this.activities[index], |
|
|
|
...this.timelineStyle[0], |
|
|
|
}; |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
this.loading = false; |
|
|
|
}); |
|
|
|
}); |
|
|
|