同步现场代码

This commit is contained in:
GGJ
2024-06-05 17:01:09 +08:00
parent 471ce2a4b8
commit f5cadce4fe
5 changed files with 71 additions and 27 deletions

View File

@@ -6,8 +6,7 @@
<vxe-column field="deptName" title="地市" />
<vxe-column field="assessLevel" title="综合评估结论">
<template #default="scope">
<span
class="conclusion"
<!-- class="conclusion"
:class="
scope.row.assessLevel == '特质'
? 'background1'
@@ -16,15 +15,17 @@
: scope.row.assessLevel == '极差'
? 'background3'
: ''
"
" -->
<span
>
{{ scope.row.assessLevel }}
{{ scope.row.assessData }}
</span>
</template>
</vxe-column>
<vxe-column field="qualifyData" title="指标合格率(%)" />
<vxe-colgroup title="评估结论">
<!-- <vxe-colgroup title="评估结论">
<vxe-column field="vdevAssessLevel" title="电压偏差">
<template #default="scope">
<span
@@ -119,8 +120,7 @@
</span>
</template>
</vxe-column>
<!-- <vxe-column field="unbalanceQualifyData" title="指标合格率(%)" /> -->
</vxe-colgroup>
</vxe-colgroup> -->
</vxe-table>
</div>
<div style="height: 300px; margin-top: 10px; position: relative" v-loading="loading">
@@ -165,6 +165,50 @@ const analysis = (e: any) => {
title: {
text: '各地市综合评估趋势对比'
},
// tooltip: {
// formatter: function (params: any) {
// // console.log(123, params)
// var tips = ''
// for (var i = 0; i < params.length; i++) {
// console.log('🚀 ~ getAssessTrend ~ params[i].value:', params[i].value)
// tips +=
// params[i].seriesName +
// ':' +
// `<span style="color:${
// params[i].value > 4.5
// ? ''
// : params[i].value > 4
// ? ''
// : params[i].value > 3
// ? ''
// : params[i].value > 2
// ? '#97017e'
// : params[i].value > 0
// ? '#cc0000'
// : ''
// }">
// ${
// params[i].value > 4.5
// ? '优质'
// : params[i].value > 4
// ? '良好'
// : params[i].value > 3
// ? '一般'
// : params[i].value > 2
// ? '较差'
// : params[i].value > 0
// ? '极差'
// : ''
// }
// </span>` +
// '</br>'
// }
// return tips
// }
// },
xAxis: {
name: '时间',
data: res.data[0].children.map((item: any) => item.dataTime)
@@ -194,7 +238,6 @@ const analysis = (e: any) => {
list[num].push(val.score == 3.14159 ? null : val.score)
})
})
list.forEach((item: any, i: any) => {
picEChart.value.options.series.push({