代码提交

This commit is contained in:
lixiaobang 2023-03-23 09:47:47 +08:00
parent d2e1cb4541
commit fb7b38ff66
1 changed files with 69 additions and 46 deletions

View File

@ -92,12 +92,18 @@
{{ item.c4 }} {{ item.c4 }}
</div> </div>
</div> </div>
<div class="lineBox"> <div class="lineBox" :style="'width:' + jinduList * 20 + '%;'">
<!-- <el-progress :text-inside="true" status="success" :stroke-width="9" :percentage="70" style="z-index:10"></el-progress> --> <el-progress
:text-inside="true"
status="success"
:show-text="false"
:stroke-width="9"
:percentage="progress"
style="z-index: 10"
></el-progress>
</div> </div>
</div> </div>
</el-scrollbar> </el-scrollbar>
</div> </div>
<!-- 左侧模块1 --> <!-- 左侧模块1 -->
@ -357,6 +363,8 @@ export default {
}, },
data() { data() {
return { return {
jinduList:0, //
progress:0, //
securityCheck: [], // securityCheck: [], //
introduction: "", // introduction: "", //
projectId: "", //Id projectId: "", //Id
@ -667,6 +675,20 @@ export default {
getProjectStatus({ getProjectStatus({
projectId: this.projectId, projectId: this.projectId,
}).then((res) => { }).then((res) => {
console.log(res.data.data,'==================');
this.jinduList = res.data.data.length
for(var i = 0; i < res.data.data.length; i++){
if (res.data.data[i].completionStatusValue == '正常完成') {
if (i==0) {
this.progress = (i + 1) * 5
}else if (i+1 >= this.jinduList) {
this.progress = 95
}else{
this.progress = (i + 1) * 12.5
}
}
}
console.log(this.progress,'----------------');
this.boxList = Object.keys(res.data.data).map((item, index) => { this.boxList = Object.keys(res.data.data).map((item, index) => {
if (res.data.data[item].planEndTime != null) { if (res.data.data[item].planEndTime != null) {
res.data.data[item].planEndTime = res.data.data[ res.data.data[item].planEndTime = res.data.data[
@ -939,32 +961,33 @@ export default {
bottom: 164px; bottom: 164px;
} }
} }
.centerBottom3{ .centerBottom3 {
width: 100%; width: 100%;
height: 100%; height: 100%;
// display: flex; // display: flex;
z-index: 999; z-index: 999;
position: relative;
display: -webkit-box; display: -webkit-box;
::-webkit-scrollbar { ::-webkit-scrollbar {
display: none; display: none;
} }
} }
.lineBox { .lineBox {
width: 810px; // width: 100%;
height: 9px; height: 9px;
// background: #ffffff; // background: #ffffff;
// border-radius: 5px; // border-radius: 5px;
// opacity: 0.5; // opacity: 0.5;
position: absolute; position: absolute;
top: 80px; top: 80px;
left: 20px; // left: 20px;
z-index: 10 !important; z-index: 10 !important;
} }
.boxChild { .boxChild {
// margin-left: 70px; // margin-left: 70px;
text-align: center; text-align: center;
width: 140px !important; width: 20% !important;
height: 100%; height: 100%;
z-index: 999 !important; z-index: 999 !important;
// display: inline; // display: inline;
@ -1689,10 +1712,10 @@ export default {
/* element滚动条组件 隐藏水平滚动条 */ /* element滚动条组件 隐藏水平滚动条 */
/deep/.el-scrollbar__thumb { /deep/.el-scrollbar__thumb {
// //
background: greenyellow;//, background: rgb(55,142,136); //,
} }
/deep/ .el-scrollbar__wrap{ /deep/ .el-scrollbar__wrap {
margin-bottom:10px !important margin-bottom: 10px !important;
} }
</style> </style>
<style> <style>