修改主题

This commit is contained in:
GGJ
2024-12-17 11:05:04 +08:00
parent 8c4cc891e5
commit e10ca83ec5
11 changed files with 464 additions and 31 deletions

View File

@@ -825,12 +825,12 @@ const getRealDataMqttMsg = async () => {
...obj,
// 电压有效值
vRmsA: ((obj.vRmsA * obj.pt)) / 1000,
vRmsB: ((obj.vRmsA * obj.pt)) / 1000,
vRmsC: ((obj.vRmsA * obj.pt)) / 1000,
vRmsB: ((obj.vRmsB * obj.pt)) / 1000,
vRmsC: ((obj.vRmsC * obj.pt)) / 1000,
// 电流有效值
iRmsA: (obj.iRmsA * obj.ct),
iRmsB: (obj.iRmsA * obj.ct),
iRmsC: (obj.iRmsA * obj.ct),
iRmsB: (obj.iRmsB * obj.ct),
iRmsC: (obj.iRmsC * obj.ct),
//基波电压幅值
v1A: ((obj.v1A * obj.pt)) / 1000,
v1B: ((obj.v1B * obj.pt)) / 1000,
@@ -862,12 +862,12 @@ const getRealDataMqttMsg = async () => {
...obj,
// 电压有效值
vRmsA: (obj.vRmsA / obj.pt) * 1000,
vRmsB: (obj.vRmsA / obj.pt) * 1000,
vRmsC: (obj.vRmsA / obj.pt) * 1000,
vRmsB: (obj.vRmsB / obj.pt) * 1000,
vRmsC: (obj.vRmsC / obj.pt) * 1000,
// 电流有效值
iRmsA: obj.iRmsA / obj.ct,
iRmsB: obj.iRmsA / obj.ct,
iRmsC: obj.iRmsA / obj.ct,
iRmsB: obj.iRmsB / obj.ct,
iRmsC: obj.iRmsC / obj.ct,
//基波电压幅值
v1A: (obj.v1A / obj.pt) * 1000,
v1B: (obj.v1B / obj.pt) * 1000,

View File

@@ -33,18 +33,22 @@ const column: any = ref([
{ field: 'startTime', title: '数据起始时间', width: '140px', sortable: true },
{ field: 'endTime', title: '数据结束时间', width: '140px', sortable: true },
{ field: 'itemName', title: '数据来源', width: '100px' },
{ field: 'statisticalInterval', title: '统计间隔', width: '100px', },
{ field: '', title: '时间间隔', width: '140px', },
{ field: 'voltageLevel', title: '电压等级', width: '100px',sortable: true },
{ field: 'volConType', title: ' 电压接线方式', width: '100px', sortable: true },
{ field: 'statisticalInterval', title: '时间间隔(分钟)', width: '120px', },
{ field: 'voltageLevel', title: '电压等级', width: '100px', sortable: true },
{ field: 'volConType', title: ' 电压接线方式', width: '120px', sortable: true },
{
field: 'pt', title: 'PT变比', width: '100px',
},
{ field: 'ct', title: 'CT变比', width: '100px', },
{ field: 'capacitySi', title: '用户协议容量(MVA)', width: '140px', },
{ field: 'capacitySt', title: '供电设备容量(MVA)', width: '140px', },
{ field: 'capacitySscb', title: '基准短路容量(MVA)', width: '140px', },
{ field: 'capacitySscmin', title: '最小短路容量(MVA)', width: '140px', },
{ field: 'capacitySt', title: '供电设备容量(MVA)', width: '140px', },
{ field: 'location', title: ' 测试位置', width: '100px', },
{ field: 'ct', title: 'CT', width: '70px', },
{ field: 'pt', title: 'PT', width: '70px', },
])
const setData = (data: any) => {
@@ -54,6 +58,10 @@ const setData = (data: any) => {
const formatter = (row: any) => {
if (row.column.field == 'voltageLevel') {
return row.cellValue == null ? '/' : voltageLevelList.filter((item: any) => item.id == row.cellValue)[0]?.name
} else if (row.column.field == 'pt') {
return row.row.pt == null ? '/' : (row.row.pt + '/' + row.row.pt1)
} else if (row.column.field == 'ct') {
return row.row.ct == null ? '/' : (row.row.ct + '/' + row.row.ct1)
} else if (row.column.field == 'volConType') {
return row.cellValue == null ? '/' : volConTypeList.filter((item: any) => item.id == row.cellValue)[0]?.name
} else {