完成 电压暂降热力图 严重度 页面迁移

This commit is contained in:
GGJ
2024-03-29 15:16:56 +08:00
parent e6b1613d91
commit fd71466b22
5 changed files with 214 additions and 187 deletions

View File

@@ -75,7 +75,7 @@
</el-tabs>
<div class="bottomBox">
<el-row v-if="showAssess">
<el-col :span="16" :style="`height: calc(${tabsHeight} / 2 - 107px)`">
<el-col :span="16" :style="`height: calc(${tabsHeight} / 2 - 57px)`">
<vxe-table
style="flex: 1.5"
v-bind="defaultAttribute"
@@ -112,7 +112,7 @@
</vxe-column>
</vxe-table>
</el-col>
<el-col :span="8" :style="`height: calc(${tabsHeight} / 2 - 100px)`">
<el-col :span="8" :style="`height: calc(${tabsHeight} / 2 - 107px)`">
<MyEChart style="flex: 1" :options="pieCharts" />
</el-col>
</el-row>
@@ -241,12 +241,7 @@ const info = () => {
}).then(res => {
userList.value = res.data.records
user.value = userList.value[0] || {}
console.log('🚀 ~ info ~ res.data.records:', res.data.records)
console.log('🚀 ~ info ~ user.value:', user.value)
userData.value = res.data.records[0] || {}
console.log('🚀 ~ info ~ userData.value:', userData.value)
})
}
@@ -326,7 +321,6 @@ const setEChart = (val: any, data: any, text: string, name: string) => {
xAxis: {
data: data.filter(item => item.phaseType == 'A').map(item => item.time),
name: '时间',
onZero: false,
position: 'bottom' // 设置 x 轴在底部
},
yAxis: {
@@ -454,7 +448,7 @@ const rendering = (data: any) => {
series: [
{
type: 'pie',
center: ['50%', '50%'],
center: ['50%', '60%'],
radius: ['35%', '48%'],
label: {
normal: {