Commit f371f505 authored by 张牧越's avatar 张牧越

bugfix

parent 04fb8503
......@@ -111,7 +111,20 @@
<td>
<div class="table-label">勘察单位</div>
</td>
<td></td>
<td>
<div>
<div
v-for="(unit, index) in screenDetail.unitList.kcList"
:key="index"
class="table-unit"
>
<div class="unit-name">{{ unit.company_name }}</div>
<div class="unit-contact">
{{ unit.contact_person }}({{ unit.contact_mobile }})
</div>
</div>
</div>
</td>
</tr>
</table>
</div>
......@@ -123,14 +136,14 @@
<div class="checks">
<div class="title">管理人员/考勤率</div>
<div class="count" style="color: rgba(254, 186, 1, 1)">
98.2 <span>%</span>
{{ screenDetail.today_manage_attendance_rate }} <span>%</span>
</div>
<img src="@/assets/icon-person.png" alt="" />
</div>
<div class="checks">
<div class="title">普通工人/考勤率</div>
<div class="count" style="color: rgba(24, 215, 185, 1)">
98.2 <span>%</span>
{{ screenDetail.today_normal_attendance_rate }} <span>%</span>
</div>
<img src="@/assets/icon-person.png" alt="" />
</div>
......@@ -173,7 +186,7 @@
</div>
<div class="progress-day">
<div class="progress-count" style="color: #ff5151">
{{ progressDetail.sg_num }}
{{ progressDetail.current_progress_over_day }}
</div>
<div class="progress-text">距离当前工期结束(天)</div>
</div>
......@@ -184,7 +197,6 @@
<el-step
v-for="(progress, index) in progressDetail.progress_data"
:key="index"
status="error"
>
<template #title>
<div class="step-title">
......@@ -326,6 +338,7 @@ export default {
jsList: [],
jlList: [],
sjList: [],
kcList: [],
},
manageList: [],
plane_image_arr: [],
......@@ -335,6 +348,7 @@ export default {
sg_num: 0,
zgq_num: 0,
step: 0,
current_progress_over_day: 0,
},
aiwarningData: [],
};
......@@ -450,6 +464,16 @@ export default {
getProgressDetail().then((res) => {
if (res.status == 200) {
this.progressDetail = res.data;
this.$nextTick(() => {
const lines = document.getElementsByClassName(
"el-step__line-inner"
);
lines[this.progressDetail.step - 1].style.width =
res.data.current_progress_rate + "%";
lines[this.progressDetail.step - 1].style.borderWidth = "1px";
console.log(document.getElementsByClassName("el-step__line-inner"));
});
}
});
getAIWarningData().then((res) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment