修改用户台账管理接口
This commit is contained in:
@@ -745,7 +745,7 @@ const initEcharts = (color: string, key: number, name: string) => {
|
||||
//渲染echarts
|
||||
const init = () => {
|
||||
loading.value = true
|
||||
const url = localStorage.getItem('WebSocketUrl') || 'ws://192.168.1.67:10407/api/pushMessage/'
|
||||
const url = localStorage.getItem('WebSocketUrl') || 'ws://192.168.1.68:10407/api/pushMessage/'
|
||||
echartsDataV1.value = initEcharts('#DAA520', 0, 'A相')
|
||||
echartsDataV2.value = initEcharts('#2E8B57', 0, 'B相')
|
||||
echartsDataV3.value = initEcharts('#A52a2a', 0, 'C相')
|
||||
@@ -868,6 +868,22 @@ const setRealData = () => {
|
||||
// webMsgSend.value[0].vRmsB == 0 ? 1 : Math.ceil(webMsgSend.value[0].vRmsB)
|
||||
// echartsDataV3.value.options.series[0].max =
|
||||
// webMsgSend.value[0].vRmsC == 0 ? 1 : Math.ceil(webMsgSend.value[0].vRmsC)
|
||||
let numData =
|
||||
Math.ceil(
|
||||
(Math.max(
|
||||
...[
|
||||
Math.floor(webMsgSend.value[0].vRmsA * 100) / 100 || 10,
|
||||
Math.floor(webMsgSend.value[0].vRmsB * 100) / 100 || 10,
|
||||
Math.floor(webMsgSend.value[0].vRmsC * 100) / 100 || 10
|
||||
]
|
||||
) *
|
||||
1.2) /
|
||||
10
|
||||
) * 10
|
||||
|
||||
echartsDataV1.value.options.series[0].max = numData
|
||||
echartsDataV2.value.options.series[0].max = numData
|
||||
echartsDataV3.value.options.series[0].max = numData
|
||||
echartsDataV1.value.options.series[0].data = [
|
||||
{
|
||||
name: ptName.value == 'star' ? 'A相' : 'AB相', //A相
|
||||
@@ -920,14 +936,12 @@ const setRealData = () => {
|
||||
}
|
||||
defineExpose({ setRealData })
|
||||
onMounted(() => {
|
||||
|
||||
init()
|
||||
|
||||
|
||||
initRadioCharts()
|
||||
getLineDetail({ id: monitoringPoint.state.lineId }).then(res => {
|
||||
ptName.value = connection.filter(item => item.value == res.data.ptType)[0].code || ''
|
||||
})
|
||||
|
||||
})
|
||||
onBeforeUnmount(() => {
|
||||
dataSocket.socketServe?.closeWs()
|
||||
|
||||
Reference in New Issue
Block a user