修改触发类型

This commit is contained in:
guanj
2026-01-23 08:51:03 +08:00
parent 8b356c87a3
commit 6aeac753ef
15 changed files with 625 additions and 621 deletions

BIN
src/assets/logo/海南.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

BIN
src/assets/logo/灿能.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

BIN
src/assets/logo/电网.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 249 KiB

BIN
src/assets/logo/电网1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

View File

@@ -110,7 +110,7 @@ export const useConfig = defineStore(
}
const getColorVal = function (name: keyof Layout): string {
const colors = layout[name] as string[]
const colors = layout[name] as string[] || ['#082E6C', '#0e8780']
if (layout.isDark) {
return colors[1]
} else {

View File

@@ -52,10 +52,11 @@ class MQTT {
}
try {
const mqttUrl =
localStorage.getItem('MqttUrl') == 'null'
? 'ws://192.168.1.68:8083/mqtt'
: localStorage.getItem('MqttUrl')
// const mqttUrl =
// localStorage.getItem('MqttUrl') == 'null'
// ? 'ws://192.168.1.68:8083/mqtt'
// : localStorage.getItem('MqttUrl')
const mqttUrl = localStorage.getItem('MqttUrl')
if (mqttUrl == 'null' || mqttUrl == null) return
this.client = mqtt.connect(mqttUrl, this.defaultOptions as IClientOptions)
this.setupEventListeners()

View File

@@ -744,7 +744,8 @@ const initEcharts = (color: string, key: number, name: string) => {
}
//渲染echarts
const init = () => {
const url = localStorage.getItem('WebSocketUrl') || 'ws://192.168.1.68:10407/api/pushMessage/'
loading.value = true
const url = localStorage.getItem('WebSocketUrl') || 'ws://192.168.1.67:10407/api/pushMessage/'
echartsDataV1.value = initEcharts('#DAA520', 0, 'A相')
echartsDataV2.value = initEcharts('#2E8B57', 0, 'B相')
echartsDataV3.value = initEcharts('#A52a2a', 0, 'C相')
@@ -758,6 +759,7 @@ const init = () => {
return
}
if (monitoringPoint.state.comFlag == 0) {
loading.value = false
return ElMessage({
message: '所选监测点离线!',
type: 'warning'
@@ -826,7 +828,7 @@ const init = () => {
]
spectrumRef.value?.init(data)
trendRef.value?.init(data)
loading.value = false
// console.log('🚀 ~ dataSocket.socketServe.registerCallBack ~ webMsgSend.value:', data)
setRealData()
})

View File

@@ -92,9 +92,10 @@ const tabsList: any = ref([
thdDataTdVODatas: null,
unit: '%',
title: [
0.5, 1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5, 9.5, 10.5, 11.5, 12.5, 13.5, 14.5, 15.5, 16.5, 17.5, 18.5,
19.5, 20.5, 21.5, 22.5, 23.5, 24.5, 25.5, 26.5, 27.5, 28.5, 29.5, 30.5, 31.5, 32.5, 33.5, 34.5, 35.5, 36.5,
37.5, 38.5, 39.5, 40.5, 41.5, 42.5, 43.5, 44.5, 45.5, 46.5, 47.5, 48.5, 49.5
0.5, 1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5, 9.5, 10.5, 11.5, 12.5, 13.5, 14.5, 15.5,
// 16.5, 17.5, 18.5,
// 19.5, 20.5, 21.5, 22.5, 23.5, 24.5, 25.5, 26.5, 27.5, 28.5, 29.5, 30.5, 31.5, 32.5, 33.5, 34.5, 35.5, 36.5,
// 37.5, 38.5, 39.5, 40.5, 41.5, 42.5, 43.5, 44.5, 45.5, 46.5, 47.5, 48.5, 49.5
],
data: {},
echartsData: {}

View File

@@ -32,7 +32,7 @@
<div class="statistics-box">
<MyEChart style="height: 250px" :options="picEChart1" />
<el-table size="small" height="250px" :data="resembleData">
<el-table-column prop="name" label="触发类型" width="80px" align="center" />
<el-table-column prop="name" label="暂降类型" width="80px" align="center" />
<el-table-column prop="value" label="暂降次数" width="80px" align="center" />
</el-table>
</div>

View File

@@ -1,5 +1,5 @@
<template>
<span style="color: red; font-size: 12px">:触发类型仅统计暂降原因为短路故障事件</span>
<span style="color: red; font-size: 12px">:暂降类型仅统计暂降原因为短路故障事件</span>
<div class="statistics-main">
<template v-if="flag">
@@ -17,7 +17,7 @@
</div>
<div>
<vxe-table height="auto" auto-resize :data="resembleData" v-bind="defaultAttribute">
<vxe-column field="name" title="触发类型"></vxe-column>
<vxe-column field="name" title="暂降类型"></vxe-column>
<vxe-column field="value" title="暂降次数"></vxe-column>
</vxe-table>
</div>
@@ -86,7 +86,7 @@ const info = (res: any) => {
}
resemble.value = {
title: {
text: '触发类型'
text: '暂降类型'
},
legend: {
type: 'scroll',
@@ -109,7 +109,7 @@ const info = (res: any) => {
options: {
series: [
{
name: '触发类型',
name: '暂降类型',
type: 'pie',
center: ['50%', '50%'],
selectedOffset: 30,

View File

@@ -249,7 +249,7 @@ const initThird = () => {
backgroundColor: '#fff', //背景色,
animation: false,
title: {
text: '触发类型',
text: '暂降类型',
x: 'center'
},
@@ -277,7 +277,7 @@ const initThird = () => {
},
series: [
{
name: '触发类型',
name: '暂降类型',
type: 'pie',
radius: '65%',
center: ['50%', '60%'],

View File

@@ -109,7 +109,7 @@
<el-row>
<el-col :span="12" class="mTop">
<div class="grid-content">
<div class="divBox">触发类型</div>
<div class="divBox">暂降类型</div>
</div>
</el-col>
<el-col :span="12" class="mTop">

View File

@@ -117,7 +117,7 @@
<el-row>
<el-col :span="12" class="mTop">
<div class="grid-content">
<div class="divBox">触发类型</div>
<div class="divBox">暂降类型</div>
</div>
</el-col>
<el-col :span="12" class="mTop">

View File

@@ -124,7 +124,7 @@
<el-row>
<el-col :span="12">
<div class="grid-content">
<div class="divBox">触发类型</div>
<div class="divBox">暂降类型</div>
</div>
</el-col>
<el-col :span="12">

View File

@@ -108,7 +108,7 @@ const list = ref([
}
},
{ field: 'duration', title: '持续时间(s)', width: '120' },
{ field: 'advanceType', title: '触发类型(机器判断)', width: '150' }
{ field: 'advanceType', title: '暂降类型(机器判断)', width: '150' }
]
},
{