修改云南测试用例

This commit is contained in:
guanj
2025-07-31 15:55:33 +08:00
parent ba1cee110a
commit 8d613f7a57
11 changed files with 77 additions and 69 deletions

View File

@@ -74,10 +74,10 @@
</el-form-item>
</template>
<template v-slot:operation>
<el-button :icon='Download' type='primary' @click='download'>下载波形</el-button>
<el-button :icon="Download" type="primary" @click="download">下载波形</el-button>
</template>
</TableHeader>
<Table ref="tableRef" :checkboxConfig='checkboxConfig'/>
<Table ref="tableRef" :checkboxConfig="checkboxConfig" />
</div>
<div :style="{ height: pageHeight.height }" style="padding: 10px; overflow: hidden" v-if="!view">
<waveForm ref="waveFormRef" senior :boxoList="boxoList" :wp="wp" @backbxlb="backbxlb" />
@@ -114,7 +114,7 @@ const tableStore = new TableStore({
url: '/event-boot/transient/getTransientValue',
method: 'POST',
column: [
{ width: '60', type: 'checkbox' },
{ width: '60', type: 'checkbox' },
{
field: 'index',
title: '序号',
@@ -268,7 +268,7 @@ const download = () => {
ElMessage.warning('暂无可下载的波形文件!')
return
}
ElMessage.success('下载中。。。!')
ElMessage.info('下载中......')
let blob = new Blob([res], { type: 'application/zip' }) // console.log(blob) // var href = window.URL.createObjectURL(blob); //创建下载的链接
const url = window.URL.createObjectURL(blob)
const link = document.createElement('a') // 创建a标签

View File

@@ -108,7 +108,7 @@ const info = async (list: any) => {
datalist.value = []
list.forEach((item: any) => {
// if (item.eventValue < 2 && item.eventValue > 0) {
datalist.value.push(item)
datalist.value.push(item)
// }
})
await gongfunction()
@@ -124,7 +124,8 @@ const info = async (list: any) => {
}
let relVal = ''
relVal = "<font style='color:" + "'>供电公司:" + '&nbsp' + '&nbsp' + a[0].value[3] + '</font><br/>'
relVal = "<font style='color:" + "'>监测点名称:" + '&nbsp' + '&nbsp' + a[0].value[7] + '</font><br/>'
relVal += "<font style='color:" + "'>供电公司:" + '&nbsp' + '&nbsp' + a[0].value[3] + '</font><br/>'
relVal += "<font style='color:" + "'>变电站:" + '&nbsp' + '&nbsp' + a[0].value[4] + '</font><br/>'
relVal += "<font style='color:" + "'>发生时刻:" + '&nbsp' + '&nbsp' + a[0].value[2] + '</font><br/>'
relVal +=
@@ -225,7 +226,8 @@ const info = async (list: any) => {
}
let relVal = ''
relVal = "<font style='color:" + "'>供电公司:" + '&nbsp' + '&nbsp' + a[0].value[3] + '</font><br/>'
relVal = "<font style='color:" + "'>监测点名称:" + '&nbsp' + '&nbsp' + a[0].value[7] + '</font><br/>'
relVal += "<font style='color:" + "'>供电公司:" + '&nbsp' + '&nbsp' + a[0].value[3] + '</font><br/>'
relVal += "<font style='color:" + "'>变电站:" + '&nbsp' + '&nbsp' + a[0].value[4] + '</font><br/>'
relVal += "<font style='color:" + "'>发生时刻:" + '&nbsp' + '&nbsp' + a[0].value[2] + '</font><br/>'
relVal +=
@@ -233,10 +235,15 @@ const info = async (list: any) => {
"'>持续时间:" +
'&nbsp' +
'&nbsp' +
a[0].value[0].toFixed(3) +
Math.floor(a[0].value[0] * 1000) / 1000 +
's</font><br/>'
relVal +=
"<font style='color:" + "'>特征幅值:" + '&nbsp' + '&nbsp' + a[0].value[1].toFixed(3) + '%</font>'
"<font style='color:" +
"'>特征幅值:" +
'&nbsp' +
'&nbsp' +
Math.floor(a[0].value[1] * 1000) / 1000 +
'%</font>'
return relVal
}
},
@@ -302,7 +309,6 @@ const info = async (list: any) => {
radioChange(radio.value)
}
const radioChange = (e: any) => {
if (e == 'ITIC') {
echartList.value = ITIC.value
TableData.value[0].totalEvents = pointI.value.length + pointIun.value.length
@@ -330,7 +336,6 @@ const gongfunction = () => {
if (total == 0) {
} else {
for (var i = 0; i < datalist.value.length; i++) {
var point = []
var xx = datalist.value[i].persistTime
var yy = datalist.value[i].eventValue * 100
@@ -339,7 +344,8 @@ const gongfunction = () => {
var substation = datalist.value[i].subName
var index = datalist.value[i].lineId
var eventId = datalist.value[i].eventId
point = [xx, yy, time, company, substation, index, eventId]
var lineName = datalist.value[i].lineName
point = [xx, yy, time, company, substation, index, eventId, lineName]
if (xx <= 0.003) {
var line = 0
@@ -415,8 +421,6 @@ const gongfunction = () => {
}
}
if (xx < 0.05) {
standF++
pointF.value.push({
@@ -438,7 +442,7 @@ const gongfunction = () => {
})
}
} else if (xx < 0.5) {
if (yy > 50) {
if (yy > 70) {
standF++
pointF.value.push({
value: point,

View File

@@ -337,7 +337,7 @@ const download = () => {
ElMessage.warning('暂无可下载的波形文件!')
return
}
ElMessage.success('下载中。。。!')
ElMessage.info('下载中......')
let blob = new Blob([res], { type: 'application/zip' }) // console.log(blob) // var href = window.URL.createObjectURL(blob); //创建下载的链接
const url = window.URL.createObjectURL(blob)
const link = document.createElement('a') // 创建a标签

View File

@@ -148,7 +148,7 @@ const download = () => {
ElMessage.warning('暂无可下载的波形文件!')
return
}
ElMessage.success('下载中。。。!')
ElMessage.info('下载中......')
let blob = new Blob([res], { type: 'application/zip' }) // console.log(blob) // var href = window.URL.createObjectURL(blob); //创建下载的链接
const url = window.URL.createObjectURL(blob)
const link = document.createElement('a') // 创建a标签

View File

@@ -7,8 +7,8 @@
</TableHeader>
<!-- <Table isGroup ref="tableRef" /> -->
<vxe-table height="200" ref="tableRef" auto-resize :data="tableStore.table.data" v-bind="defaultAttribute">
<vxe-table-colgroup title="暂原因统计表">
<vxe-table-column field="transientCause" title="暂原因"></vxe-table-column>
<vxe-table-colgroup title="暂原因统计表">
<vxe-table-column field="transientCause" title="暂原因"></vxe-table-column>
<vxe-table-column field="fault" title="短路故障"></vxe-table-column>
<vxe-table-column field="excitation" title="变压器激磁"></vxe-table-column>
<vxe-table-column field="disturbance" title="电压扰动"></vxe-table-column>
@@ -85,7 +85,7 @@ const tableStore = new TableStore({
tableStore.table.data = arr
options.value = {
title: {
text: '暂原因统计',
text: '暂原因统计',
top: '20'
},
legend: {
@@ -106,13 +106,13 @@ const tableStore = new TableStore({
dataZoom: { show: false },
tooltip: {
formatter: function (params) {
return `原因统计: <br/>${params.data.name}:${params.data.value}次 <br/>占比:${params.data.zb}%`
return `原因统计: <br/>${params.data.name}:${params.data.value}次 <br/>占比:${params.data.zb}%`
}
},
options: {
series: [
{
name: '暂原因统计',
name: '暂原因统计',
type: 'pie',
radius: '60%',
label: {
@@ -152,7 +152,7 @@ nextTick(() => {
// 导出
const exportEvent = () => {
tableRef.value.exportData({
filename: '暂原因统计', // 文件名字
filename: '暂原因统计', // 文件名字
sheetName: 'Sheet1',
type: 'xlsx', //导出文件类型 xlsx 和 csv
useStyle: true,

View File

@@ -11,7 +11,7 @@
</el-tab-pane>
</el-tabs>
</el-tab-pane>
<el-tab-pane label="暂原因统计" name="2"><CauseStatistics /></el-tab-pane>
<el-tab-pane label="暂原因统计" name="2"><CauseStatistics /></el-tab-pane>
<el-tab-pane v-for="item in list" :label="item.name" :name="item.id" :key="item.id">
<Table :info="item"></Table>
</el-tab-pane>
@@ -74,7 +74,7 @@ const list = ref([
// ]
// },
{
name: '详细事件列表',
name: '暂降事件列表',
id: '4',
url: '/event-boot/report/getContinueTime',
column: [
@@ -86,7 +86,7 @@ const list = ref([
return (tableStore.table.params.pageNum - 1) * tableStore.table.params.pageSize + row.rowIndex + 1
}
},
{ field: 'startTime', title: '暂事件发生时刻', width: '200' },
{ field: 'startTime', title: '暂事件发生时刻', width: '200' },
{ field: 'gdName', title: '供电公司', width: '150' },
{ field: 'subName', title: '变电站' },
{ field: 'lineName', title: '监测点' },
@@ -105,7 +105,7 @@ const list = ref([
formatter: ({ row }: any) => (row.featureAmplitude * 100).toFixed(2)
},
{ field: 'duration', title: '持续时间(s)', width: '120' },
{ field: 'advanceType', title: '暂类型(机器判断)', width: '150' }
{ field: 'advanceType', title: '暂类型(机器判断)', width: '150' }
]
},
{