修改报表样式

This commit is contained in:
guanj
2025-12-09 13:58:37 +08:00
parent 4e0db29ab1
commit 4e6bd55089
13 changed files with 39 additions and 37 deletions

View File

@@ -22,7 +22,6 @@
<el-dialog v-model="isWaveCharts" v-if="isWaveCharts" draggable :title="dialogTitle" append-to-body width="70%">
<waveFormAnalysis
v-loading="loading"
ref="waveFormAnalysisRef"
@handleHideCharts="isWaveCharts = false"
:wp="wp"
@@ -447,7 +446,7 @@ const handleTolerableEventClick = async (row: any) => {
nextTick(() => {
if (waveFormAnalysisRef.value) {
//waveFormAnalysisRef.value.setHeight(false, 360)
waveFormAnalysisRef.value.setHeight(999, 130, 1.6666666)
// waveFormAnalysisRef.value.setHeight(999, 130, 1.6666666)
}
})
const messageInstance = ElMessage.info(`正在加载,请稍等...`)
@@ -475,6 +474,7 @@ const handleTolerableEventClick = async (row: any) => {
})
nextTick(() => {
waveFormAnalysisRef.value && waveFormAnalysisRef.value.setHeight(999, 130, 1.6666666)
waveFormAnalysisRef.value && waveFormAnalysisRef.value.getWpData(wp.value, boxoList.value, true)
})
}

View File

@@ -258,7 +258,7 @@ self.onmessage = function (e) {
boxoList.measurementPointName +
' 发生时刻:' +
boxoList.startTime +
' 残余电压' +
' 暂降(骤升)幅值' +
(boxoList.featureAmplitude * 100).toFixed(2) +
'% 持续时间:' +
boxoList.duration +
@@ -269,7 +269,7 @@ self.onmessage = function (e) {
boxoList.equipmentName +
' 发生时刻:' +
boxoList.startTime +
' 残余电压' +
' 暂降(骤升)幅值' +
boxoList.evtParamVVaDepth +
' 持续时间:' +
boxoList.evtParamTm +
@@ -280,7 +280,7 @@ self.onmessage = function (e) {
boxoList.lineName +
' 发生时刻:' +
boxoList.startTime +
' 残余电压' +
' 暂降(骤升)幅值' +
(boxoList.featureAmplitude * 100).toFixed(2) +
'% 持续时间:' +
boxoList.persistTime +
@@ -293,7 +293,7 @@ self.onmessage = function (e) {
boxoList.lineName +
' 发生时刻:' +
boxoList.startTime +
' 残余电压' +
' 暂降(骤升)幅值' +
(boxoList.featureAmplitude * 100).toFixed(2) +
'% 持续时间:' +
boxoList.duration +

View File

@@ -109,7 +109,7 @@ const myChartess5 = ref<echarts.ECharts | null>(null)
const vh = computed(() => {
if (props.parentHeight == 999) {
return '310px'
return `calc((60vh - 150px) / 2 )`
} else if (props.parentHeight != 0) {
return mainHeight(props.parentHeight, 2).height
}
@@ -600,7 +600,7 @@ const initWave = (
$(`#${rmsId}`).css('height', picHeight).css('width', vw.value)
}
} else {
titleText = `变电站名称:${subName.value} 监测点名称:${lineName.value} 发生时刻:${time} 残余电压${(
titleText = `变电站名称:${subName.value} 监测点名称:${lineName.value} 发生时刻:${time} 暂降(骤升)幅值${(
Number(eventValue.value) * 1
).toFixed(0)}% 持续时间:${persistTime.value}s`
}
@@ -837,7 +837,7 @@ const initWave = (
data: rmscu
},
{
name: '最小残余电压',
name: '最小暂降(骤升)幅值',
type: 'scatter',
symbol: 'image://' + url2,
itemStyle: { width: 45, height: 45 },

View File

@@ -131,7 +131,7 @@ self.addEventListener('message', function (e) {
boxoList.measurementPointName +
' 发生时刻:' +
boxoList.startTime +
' 残余电压' +
' 暂降(骤升)幅值' +
(boxoList.featureAmplitude * 100).toFixed(2) +
'% 持续时间:' +
boxoList.duration +
@@ -142,7 +142,7 @@ self.addEventListener('message', function (e) {
boxoList.equipmentName +
' 发生时刻:' +
boxoList.startTime +
' 残余电压' +
' 暂降(骤升)幅值' +
boxoList.evtParamVVaDepth +
' 持续时间:' +
boxoList.evtParamTm +
@@ -153,7 +153,7 @@ self.addEventListener('message', function (e) {
boxoList.lineName +
' 发生时刻:' +
boxoList.startTime +
' 残余电压' +
' 暂降(骤升)幅值' +
(boxoList.featureAmplitude * 100).toFixed(2) +
'% 持续时间:' +
boxoList.persistTime +
@@ -166,7 +166,7 @@ self.addEventListener('message', function (e) {
boxoList.lineName +
' 发生时刻:' +
boxoList.startTime +
' 残余电压' +
' 暂降(骤升)幅值' +
(boxoList.featureAmplitude * 100).toFixed(2) +
'% 持续时间:' +
boxoList.duration +

View File

@@ -88,7 +88,7 @@ const myChartess5 = ref<echarts.ECharts | null>(null)
const vh = computed(() => {
if (props.parentHeight == 999) {
return '310px'
return `calc((60vh - 150px) / 2 )`
} else if (props.parentHeight != 0) {
return mainHeight(props.parentHeight, 2).height
}
@@ -334,7 +334,7 @@ const initWave = (
$(`#${waveId}`).css('height', picHeight).css('width', vw.value)
}
} else {
titleText = `变电站名称:${subName.value} 监测点名称:${lineName.value} 发生时刻:${time} 残余电压${(
titleText = `变电站名称:${subName.value} 监测点名称:${lineName.value} 发生时刻:${time} 暂降(骤升)幅值${(
Number(eventValue.value) * 1
).toFixed(0)}% 持续时间:${persistTime.value}s`
}

View File

@@ -1,5 +1,5 @@
<template>
<Tree ref="treRef" :width="width" :data="tree" default-expand-all @changePointType="changePointType" @onAdd="onAdd"/>
<Tree ref="treRef" :width="width" :showPush="props.showPush" :data="tree" default-expand-all @changePointType="changePointType" @onAdd="onAdd"/>
</template>
<script lang="ts" setup>
@@ -12,9 +12,11 @@ import { useDictData } from '@/stores/dictData'
interface Props {
template?: boolean
showPush?: boolean
}
const props = withDefaults(defineProps<Props>(), {
template: false
template: false,
showPush: false
})
defineOptions({
name: 'govern/deviceTree'
@@ -95,13 +97,16 @@ const info = (selectedNodeId?: string) => {
tree.value = []
}
nextTick(() => {
if (arr1.length) {
// 安全检查 treRef 和 treeRef1 是否存在
if (treRef.value && treRef.value.treeRef1 && treRef.value.treeRef1.setCurrentKey) {
// 安全检查 treRef 和 treeRef 是否存在
console.log("🚀 ~ info ~ treRef.value && treRef.value.treeRef && treRef.value.treeRef.setCurrentKey:", treRef.value && treRef.value.treeRef1 && treRef.value.treeRef1.setCurrentKey)
if (treRef.value && treRef.value.treeRef && treRef.value.treeRef.setCurrentKey) {
// 如果传入了要选中的节点ID则选中该节点否则选中第一个节点
console.log('selectedNodeId:', selectedNodeId);
if (selectedNodeId) {
treRef.value.treeRef1.setCurrentKey(selectedNodeId);
treRef.value.treeRef.setCurrentKey(selectedNodeId);
// 查找对应的节点数据并触发事件
let selectedNode = null;
const findNode = (nodes: any[]) => {
@@ -127,7 +132,7 @@ const info = (selectedNodeId?: string) => {
}
} else {
// 初始化选中第一个节点
treRef.value.treeRef1.setCurrentKey(arr1[0].id);
treRef.value.treeRef.setCurrentKey(arr1[0].id);
emit('init', {
level: 2,
...arr1[0]

View File

@@ -124,9 +124,7 @@ getDeviceTree().then(res => {
})
return
}
console.log("🚀 ~ file: deviceTree.vue ~ line 33 ~ getDeviceTree ~ tree:", arr3.length)
if (arr3.length) {
console.log("🚀 ~ file: deviceTree.vue ~ line 33 ~ getDeviceTree ~ tree:", arr3)
treRef.value.treeRef3.setCurrentKey(arr3[0].id)
// 注册父组件事件
emit('init', {

View File

@@ -10,7 +10,7 @@
<Icon name='el-icon-Search' style='font-size: 16px' />
</template>
</el-input>
<el-tooltip placement="bottom" :hide-after="0">
<el-tooltip placement="bottom" :hide-after="0" v-if="props.showPush">
<template #content>
<span>台账推送</span>
</template>
@@ -23,7 +23,7 @@
:style="{ color: config.getColorVal('elementUiPrimary') }"
@click="onAdd" />
</el-tooltip>
<!-- <Icon @click='onMenuCollapse' :name="menuCollapse ? 'el-icon-Expand' : 'el-icon-Fold'"
<!-- <Icon @click='onMenuCollapse' :name="menuCollapse ? 'el-icon-Expand' : 'el-icon-Fold'" v-else
:class="menuCollapse ? 'unfold' : ''" size='18' class='fold ml10 menu-collapse'
style='cursor: pointer' v-if='props.canExpand' /> -->
</div>
@@ -58,11 +58,13 @@ defineOptions({
interface Props {
width?: string
canExpand?: boolean
showPush?: boolean
}
const props = withDefaults(defineProps<Props>(), {
width: '280px',
canExpand: true
canExpand: true,
showPush: false
})
const config = useConfig()
const { proxy } = useCurrentInstance()