Files
admin-sjzx/src/views/pqs/supervise/terminal/components/monitorLedgerTable.vue

167 lines
5.4 KiB
Vue
Raw Normal View History

2024-05-16 10:50:06 +08:00
<template>
<div>
<TableHeader area ref="TableHeaderRef" showExport>
2024-05-16 10:50:06 +08:00
<template #select>
2024-06-06 20:42:25 +08:00
<el-form-item label='运行状态'>
<el-select v-model="tableStore.table.params.runF" clearable placeholder="请选择运行状态">
<el-option
v-for="item in runFlagList"
:key="item.id"
:label="item.name"
:value="item.id"
></el-option>
2024-06-06 20:42:25 +08:00
</el-select>
</el-form-item>
2024-05-16 19:34:08 +08:00
<el-form-item label="信息查询">
<el-input style="width:240px;" placeholder="电站名称,终端编号,监测点名称" v-model="tableStore.table.params.searchValue" clearable></el-input>
2024-05-16 10:50:06 +08:00
</el-form-item>
2024-06-06 20:42:25 +08:00
2024-05-16 10:50:06 +08:00
</template>
2024-06-06 20:42:25 +08:00
2024-05-16 10:50:06 +08:00
<template #operation>
<!-- <el-button icon="el-icon-Download" type="primary">导出</el-button> -->
2024-05-16 10:50:06 +08:00
</template>
</TableHeader>
2024-05-16 19:34:08 +08:00
<Table ref="tableRef" />
2024-05-16 10:50:06 +08:00
</div>
</template>
2024-05-16 19:34:08 +08:00
<script setup lang="ts">
2024-05-16 10:50:06 +08:00
import { ref, onMounted, provide, nextTick } from 'vue'
import TableStore from '@/utils/tableStore'
import Table from '@/components/table/index.vue'
import TableHeader from '@/components/table/header/index.vue'
import { ElMessage, ElMessageBox } from 'element-plus'
import { mainHeight } from '@/utils/layout'
import { useDictData } from '@/stores/dictData'
import { addUse, updateUse, removeUse } from '@/api/advance-boot/bearingCapacity'
const dictData = useDictData()
const interferenceType = dictData.getBasicData('Interference_Source')
const istatusList = dictData.getBasicData('On-network_Status')
const TableHeaderRef = ref()
const areaOptionList = dictData.getBasicData('jibei_area')
const tableStore = new TableStore({
url: '/device-boot/runManage/getLineLedger',
publicHeight: 65,
2024-05-16 19:34:08 +08:00
isWebPaging: true,
2024-05-16 10:50:06 +08:00
method: 'POST',
filename:'监测点台账',
2024-05-16 10:50:06 +08:00
column: [
{ title: '序号', width: 80,formatter: (row: any) => {
return (tableStore.table.params.pageNum - 1) * tableStore.table.params.pageSize + row.rowIndex + 1
} },
2024-05-16 10:50:06 +08:00
{
field: 'areaName',
title: '省公司',
minWidth: 100
},
2024-05-16 13:23:01 +08:00
{ field: 'gdName', title: '市公司', minWidth: 150 },
2024-05-16 10:50:06 +08:00
{
field: 'bdName',
title: '所属变电站',
minWidth: 150
},
2024-05-16 13:23:01 +08:00
{ field: 'lineName', title: '监测点名称', minWidth: 130 },
{ field: 'scale', title: '监测点电压等级', minWidth: 120 },
2024-05-16 10:50:06 +08:00
{ field: 'loadType', title: '干扰源类型', minWidth: 120 },
2025-07-24 09:31:47 +08:00
{ field: 'objName', title: '监测对象名称', minWidth: 180 ,
formatter: (row: any) => {
return row.objName ? row.objName : '/'
}
},
2024-05-16 10:50:06 +08:00
{
field: 'shortCapacity',
title: '最小短路容量(MVA)',
2024-05-16 19:34:08 +08:00
minWidth: 150
2024-05-16 10:50:06 +08:00
},
{
field: 'devCapacity',
2024-06-13 13:32:50 +08:00
title: '供电终端容量(MVA )',
minWidth: 160
2024-05-16 10:50:06 +08:00
},
{
field: 'dealCapacity',
title: '用户协议容量(MVA)',
2024-05-16 19:34:08 +08:00
minWidth: 150
2024-05-16 10:50:06 +08:00
},
2024-05-16 19:34:08 +08:00
/* { field: 'comFlag', title: '通讯状态 ', minWidth: 120 },*/
2024-05-16 10:50:06 +08:00
{ field: 'id', title: '监测点序号', minWidth: 90 },
2024-06-06 20:42:25 +08:00
{
field: 'runFlag',
title: '运行状态',
minWidth: 80,
render: 'tag',
custom: {
'投运': 'success',
'停运': 'danger',
'检修': 'warning',
'调试': 'warning',
'退运': 'danger',
},
},
2024-05-16 10:50:06 +08:00
{ field: 'devName', title: '监测终端编号 ', minWidth: 140 },
{ field: 'ptType', title: '监测终端接线方式', minWidth: 140 },
{
field: 'voltageDev',
title: '电压偏差上限(%)',
minWidth: 140
2024-05-16 10:50:06 +08:00
},
{
field: 'uvoltageDev',
title: '电压偏差下限(%)',
minWidth: 140
2024-06-05 15:08:24 +08:00
},
2024-06-06 20:42:25 +08:00
2024-05-16 10:50:06 +08:00
/* {
title: '操作',
minWidth: 150,
fixed: 'right',
render: 'buttons',
buttons: [
{
name: 'productSetting',
title: '流程详情',
type: 'primary',
icon: 'el-icon-EditPen',
render: 'basicButton',
click: row => {
}
}
]
}*/
],
beforeSearchFun: () => {
tableStore.table.params.serverName = 'harmonic-boot'
2024-06-06 20:42:25 +08:00
tableStore.table.params.runFlag = []
if(tableStore.table.params.runF!=null){
2024-06-06 20:42:25 +08:00
tableStore.table.params.runFlag = [tableStore.table.params.runF]
}
2024-05-16 19:34:08 +08:00
tableStore.table.params.comFlag = [0, 1]
2024-05-16 10:50:06 +08:00
tableStore.table.params.statisticalType = {
name: '电网拓扑',
code: 'Power_Network'
}
}
})
2024-06-07 10:12:15 +08:00
tableStore.table.params.runF=null
tableStore.table.params.runFlag=[]
tableStore.table.params.searchValue=''
2024-05-16 10:50:06 +08:00
2024-06-07 10:12:15 +08:00
const runFlagList = [{id:0,name:'运行'},{id:1,name:'检修'},{id:2,name:'停运'},{id:3,name:'调试'},{id:4,name:'退运'}]
2024-06-06 20:42:25 +08:00
2024-05-16 10:50:06 +08:00
provide('tableStore', tableStore)
onMounted(() => {
tableStore.index()
})
</script>