修改冀北问题

This commit is contained in:
GGJ
2025-12-16 13:38:12 +08:00
parent 7b9f5302d0
commit 264f33302f
54 changed files with 602 additions and 475 deletions

View File

@@ -1,8 +1,8 @@
<template>
<div>
<TableHeader area ref="TableHeaderRef" showExport>
<TableHeader ref="TableHeaderRef" showExport>
<template #select>
<el-form-item label="数据类型">
<!-- <el-form-item label="数据类型">
<el-select v-model="tableStore.table.params.dataType" clearable placeholder="请选择运行状态">
<el-option label="主网" value="0"></el-option>
<el-option label="配网" value="1"></el-option>
@@ -17,11 +17,11 @@
:value="item.id"
></el-option>
</el-select>
</el-form-item>
</el-form-item> -->
<el-form-item label="筛选数据">
<el-input
style="width: 240px"
placeholder=""
placeholder="请输入台区名称/组织机构名称/监测线路名称"
v-model="tableStore.table.params.searchValue"
clearable
></el-input>
@@ -47,13 +47,15 @@ import { addUse, updateUse, removeUse } from '@/api/advance-boot/bearingCapacity
const dictData = useDictData()
const lineList = dictData.getBasicData('Line_Type')
const AreaList = dictData.getBasicData('Area')
const UseNatureList = dictData.getBasicData('Device_UseNature')
const StateList = dictData.getBasicData('Line_State')
const tableStore = new TableStore({
url: '/device-boot/distributionArea/getPowerDistributionAreaList',
publicHeight: 65,
isWebPaging: true,
method: 'POST',
filename: '监测点台账',
filename: '分布式光伏台区台账',
column: [
{
title: '序号',
@@ -63,91 +65,53 @@ const tableStore = new TableStore({
}
},
{ field: 'id', title: '台区编号', minWidth: 150 },
{ field: 'name', title: '台区名称', minWidth: 180 },
{
field: 'areaName',
title: '省公司',
minWidth: 100
},
{ field: 'gdName', title: '市公司', minWidth: 150 },
{
field: 'bdName',
title: '所属变电站',
field: 'orgName',
title: '组织机构名称',
minWidth: 150
},
{ field: 'lineName', title: '监测点名称', minWidth: 130 },
{ field: 'scale', title: '监测点电压等级', minWidth: 120 },
{ field: 'loadType', title: '干扰源类型', minWidth: 120 },
{ field: 'operationName', title: '运维单位', minWidth: 150 },
{ field: 'powerrName', title: '变电站名称', minWidth: 150 },
{ field: 'lineName', title: '监测线路名称', minWidth: 190 },
{ field: 'pcapacity', title: '配变容量(KVA)', minWidth: 80 },
{
field: 'objName',
title: '监测对象名称',
minWidth: 180,
field: 'regionalism',
title: '地区特征',
minWidth: 80,
formatter: (row: any) => {
return row.cellValue ? row.cellValue : '/'
return AreaList.filter(item => item.id == row.cellValue)[0]?.name || '/'
}
},
{
field: 'shortCapacity',
title: '最小短路容量(MVA)',
minWidth: 150
field: 'ifRuralPowerGrid',
title: '是否农网',
minWidth: 80,
formatter: (row: any) => {
return row.row.ifRuralPowerGrid == 1 ? '是' : '否'
}
},
{
field: 'devCapacity',
title: '供电终端容量(MVA )',
minWidth: 160
field: 'natureOfUse',
title: '使用性质',
minWidth: 80,
formatter: (row: any) => {
return UseNatureList.filter(item => item.id == row.cellValue)[0]?.name || '/'
}
},
{ field: 'lineLength', title: '供电线路总长度(km)', minWidth: 100 },
{
field: 'dealCapacity',
title: '用户协议容量(MVA)',
minWidth: 150
},
/* { field: 'comFlag', title: '通讯状态 ', minWidth: 120 },*/
{ field: 'id', title: '监测点序号', minWidth: 90 },
{
field: 'runFlag',
field: 'state',
title: '运行状态',
minWidth: 80,
render: 'tag',
custom: {
投运: 'success',
停运: 'danger',
检修: 'warning',
调试: 'warning',
退运: 'danger'
formatter: (row: any) => {
return StateList.filter(item => item.id == row.cellValue)[0]?.name || '/'
}
},
{ field: 'devName', title: '监测终端编号 ', minWidth: 140 },
{ field: 'ptType', title: '监测终端接线方式', minWidth: 140 },
{
field: 'voltageDev',
title: '电压偏差上限(%)',
minWidth: 140
},
{
field: 'uvoltageDev',
title: '电压偏差下限(%)',
minWidth: 140
}
/* {
title: '操作',
minWidth: 150,
fixed: 'right',
render: 'buttons',
buttons: [
{
name: 'productSetting',
title: '流程详情',
type: 'primary',
icon: 'el-icon-EditPen',
render: 'basicButton',
click: row => {
}
}
]
}*/
{ field: 'distributedPhotovoltaicNum', title: '用户数', minWidth: 90 },
{ field: 'photovoltaicCapacity', title: '总装机容量(MW)', minWidth: 100 },
{ field: 'apLoadType', title: '接入负荷类型', minWidth: 130 }
],
beforeSearchFun: () => {
@@ -159,8 +123,6 @@ tableStore.table.params.searchValue = ''
tableStore.table.params.dataType = ''
tableStore.table.params.lineType = ''
provide('tableStore', tableStore)
onMounted(() => {
tableStore.index()