同步电网一张图代码

This commit is contained in:
GGJ
2024-05-27 10:37:50 +08:00
parent 05d7200da9
commit e05717790d
16 changed files with 113 additions and 91 deletions

View File

@@ -6,28 +6,27 @@
<vxe-column field="deptName" title="地市" />
<vxe-column field="assessData" title="综合评估得分" :formatter="formatter" />
<vxe-column field="qualifyData" title="指标合格率(%)" :formatter="formatter" />
<vxe-colgroup title="电压偏差">
<vxe-column field="vdevAssessData" title="评估得分" :formatter="formatter" />
<vxe-column field="vdevQualifyData" title="指标合格率(%)" :formatter="formatter" />
</vxe-colgroup>
<vxe-colgroup title="频率偏差">
<vxe-column field="freqAssessData" title="评估得分" :formatter="formatter" />
<vxe-column field="freqQualifyData" title="指标合格率(%)" :formatter="formatter" />
</vxe-colgroup>
<vxe-colgroup title="电压总谐波畸变率">
<vxe-column field="harmAssessData" title="评估得分" :formatter="formatter" />
<vxe-column field="harmQualifyData" title="指标合格率(%)" :formatter="formatter" />
</vxe-colgroup>
<vxe-colgroup title="电压闪变">
<vxe-column field="flickerAssessData" title="评估得分" :formatter="formatter" />
<vxe-column field="flickerQualifyData" title="指标合格率(%)" :formatter="formatter" />
</vxe-colgroup>
<vxe-colgroup title="三相电压不平衡度">
<vxe-column field="unbalanceAssessData" title="评估得分" :formatter="formatter" />
<vxe-column field="unbalanceQualifyData" title="指标合格率(%)" :formatter="formatter" />
</vxe-colgroup>
<vxe-colgroup title="电压偏差">
<vxe-column field="vdevAssessData" title="评估得分" :formatter="formatter" />
<vxe-column field="vdevQualifyData" title="指标合格率(%)" :formatter="formatter" />
</vxe-colgroup>
<vxe-colgroup title="频率偏差">
<vxe-column field="freqAssessData" title="评估得分" :formatter="formatter" />
<vxe-column field="freqQualifyData" title="指标合格率(%)" :formatter="formatter" />
</vxe-colgroup>
<vxe-colgroup title="电压总谐波畸变率">
<vxe-column field="harmAssessData" title="评估得分" :formatter="formatter" />
<vxe-column field="harmQualifyData" title="指标合格率(%)" :formatter="formatter" />
</vxe-colgroup>
<vxe-colgroup title="电压闪变">
<vxe-column field="flickerAssessData" title="评估得分" :formatter="formatter" />
<vxe-column field="flickerQualifyData" title="指标合格率(%)" :formatter="formatter" />
</vxe-colgroup>
<vxe-colgroup title="三相电压不平衡度">
<vxe-column field="unbalanceAssessData" title="评估得分" :formatter="formatter" />
<vxe-column field="unbalanceQualifyData" title="指标合格率(%)" :formatter="formatter" />
</vxe-colgroup>
</vxe-table>
</div>
<div style="height: 300px; margin-top: 10px">
@@ -100,4 +99,8 @@ const formatter = (row: any) => {
defineExpose({ open })
</script>
<style lang="scss" scoped></style>
<style lang="scss" scoped>
:deep(.el-dialog__body) {
max-height: none !important;
}
</style>

View File

@@ -121,28 +121,16 @@ const contaminateC = () => {
}
for (let i = 0; i < data.length; i++) {
if (data[i] >= 2) {
a5++
++a5
} else if (data[i] >= 1.6 && data[i] < 2) {
a4++
++a4
} else if (data[i] >= 1.2 && data[i] < 1.6) {
a3++
++a3
} else if (data[i] >= 1 && data[i] < 1.2) {
a4++
++a2
} else if (data[i] >= 0 && data[i] < 1) {
a1++
++a1
}
// if (data[i] >= 0 || data[i] < 1) {
// a1++
// } else if (data[i] >= 1 || data[i] < 1.2) {
// a2++
// } else if (data[i] >= 1.2 || data[i] < 1.6) {
// a3++
// } else if (data[i] >= 1.6 || data[i] < 2) {
// a4++
// } else if (data[i] >= 2) {
// a5++
// }
}
// console.log('🚀 ~ getPollutionAlarmData ~ a1 / data.length:', a1 / data.length)
@@ -275,7 +263,7 @@ const contaminateC = () => {
num2: item[3],
num3: item[4],
num4: item[5],
num5: item[5]
num5: item[6]
}
})
})
@@ -369,4 +357,7 @@ defineExpose({ open })
margin-right: 3%;
}
}
:deep(.el-dialog__body) {
max-height: none !important;
}
</style>

View File

@@ -313,4 +313,7 @@ defineExpose({ open })
// color: var(--el-color-primary) !important;
// }
}
:deep(.el-dialog__body) {
max-height: none !important;
}
</style>

View File

@@ -90,4 +90,7 @@ const open = async (row: any) => {
defineExpose({ open })
</script>
<style lang="scss" scoped></style>
<style lang="scss" scoped>
:deep(.el-dialog__body) {
max-height: none !important;
}</style>

View File

@@ -16,7 +16,7 @@
</vxe-colgroup>
</vxe-table>
</div>
<div style="height: 250px; margin-top: 10px; display: flex">
<div style="margin-top: 10px; display: flex">
<!--
-->
<div class="statistics-main">
@@ -135,16 +135,19 @@ defineExpose({ open })
</script>
<style lang="scss" scoped>
.statistics-main {
height: 300px;
// height: 300px;
display: grid;
width: 100%;
grid-template-columns: 1fr 1fr;
.statistics-box {
height: 300px;
// height: 300px;
// display: flex;
display: grid;
grid-template-columns: 2fr 1fr;
}
}
:deep(.el-dialog__body) {
max-height: none !important;
}
</style>

View File

@@ -252,4 +252,7 @@ defineExpose({ open })
:deep(.el-table thead) {
color: #000;
}
:deep(.el-dialog__body) {
max-height: none !important;
}
</style>