Compare commits

..

No commits in common. "17fb41850da55fbcd1921ecbb1d6ebb3f085438a" and "135a2b60aa3c938738f77c6b47e20966cc10c5fb" have entirely different histories.

1 changed files with 55 additions and 75 deletions

View File

@ -39,7 +39,6 @@
<div
class="glr-login-number-max analyse-num-max"
v-for="(item, idx) in warningType"
v-if="type != 'detail' || (type == 'detail' && item.name != '劳资预警')"
style="height: unset"
:key="idx"
>
@ -47,14 +46,14 @@
<div class="glr-login-number analyse-login-numbe">
<div><img src="images/text_red_spot.png" />{{ item.name }}</div>
<div class="glr-rate-value glr-rate-red-value">
<template v-if="idx == 0">
<template v-if="idx==0">
<span style="color: #c0dafb">{{ item.total }}</span>
</template>
<template v-else>
<span>{{ item.data }}</span
>/
<span style="color: #c0dafb">{{ item.total }}</span>
<span>{{ item.data }}</span>/
<span style="color: #c0dafb">{{item.total }}</span>
</template>
</div>
</div>
</div>
@ -95,11 +94,6 @@ export default {
data: 0,
total: 0,
},
{
name: "劳资预警",
data: 0,
total: 0,
},
],
};
},
@ -134,9 +128,7 @@ export default {
if (this.type == "detail") {
prjId = this.prjInfo.id;
}
this.$api.problemmodify
.getMonitAndWarning(this.deptInfo.id || 0, prjId)
.then((d) => {
this.$api.problemmodify.getMonitAndWarning(this.deptInfo.id||0, prjId).then((d) => {
let tmps = d.data?.today || [];
let sum = 0;
tmps.forEach((it) => {
@ -185,18 +177,6 @@ export default {
});
this.warningType[0].data = data;
this.warningType[0].total = sum;
data = 0;
sum = 0;
tmps = d.data?.group || [];
objs = tmps.filter((it) => it.infotype == "97");
objs.forEach((it) => {
sum += it.total;
if (it.checkState != "100") {
data += it.total;
}
});
this.warningType[3].data = data;
this.warningType[3].total = sum;
this.elKey++;
});
},