修改冀北现场问题

This commit is contained in:
GGJ
2025-12-14 12:47:53 +08:00
parent ff2b9db7b8
commit 0b61c4b7ba
55 changed files with 2679 additions and 951 deletions

View File

@@ -2,7 +2,7 @@
<div>
<TableHeader area ref="TableHeaderRef" showExport>
<template #select>
<el-form-item label='运行状态'>
<el-form-item label="运行状态">
<el-select v-model="tableStore.table.params.runF" clearable placeholder="请选择运行状态">
<el-option
v-for="item in runFlagList"
@@ -13,9 +13,13 @@
</el-select>
</el-form-item>
<el-form-item label="信息查询">
<el-input style="width:240px;" placeholder="电站名称,终端编号,监测点名称" v-model="tableStore.table.params.searchValue" clearable></el-input>
<el-input
style="width: 240px"
placeholder="电站名称,终端编号,监测点名称"
v-model="tableStore.table.params.searchValue"
clearable
></el-input>
</el-form-item>
</template>
<template #operation>
@@ -26,7 +30,7 @@
</div>
</template>
<script setup lang="ts">
import { ref, onMounted, provide, nextTick } from 'vue'
import { ref, onMounted, provide, nextTick, watch } from 'vue'
import TableStore from '@/utils/tableStore'
import Table from '@/components/table/index.vue'
import TableHeader from '@/components/table/header/index.vue'
@@ -40,16 +44,21 @@ 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,
isWebPaging: true,
method: 'POST',
filename:'监测点台账',
filename: '监测点台账',
column: [
{ title: '序号', width: 80,formatter: (row: any) => {
return (tableStore.table.params.pageNum - 1) * tableStore.table.params.pageSize + row.rowIndex + 1
} },
{
title: '序号',
width: 80,
formatter: (row: any) => {
return (tableStore.table.params.pageNum - 1) * tableStore.table.params.pageSize + row.rowIndex + 1
}
},
{
field: 'areaName',
@@ -67,10 +76,13 @@ const tableStore = new TableStore({
{ field: 'scale', title: '监测点电压等级', minWidth: 120 },
{ field: 'loadType', title: '干扰源类型', minWidth: 120 },
{ field: 'objName', title: '监测对象名称', minWidth: 180 ,
{
field: 'objName',
title: '监测对象名称',
minWidth: 180,
formatter: (row: any) => {
return row.objName ? row.objName : '/'
}
return row.cellValue ? row.cellValue : '/'
}
},
{
field: 'shortCapacity',
@@ -95,13 +107,12 @@ const tableStore = new TableStore({
minWidth: 80,
render: 'tag',
custom: {
'投运': 'success',
'停运': 'danger',
'检修': 'warning',
'调试': 'warning',
'退运': 'danger',
},
投运: 'success',
停运: 'danger',
检修: 'warning',
调试: 'warning',
退运: 'danger'
}
},
{ field: 'devName', title: '监测终端编号 ', minWidth: 140 },
{ field: 'ptType', title: '监测终端接线方式', minWidth: 140 },
@@ -114,8 +125,7 @@ const tableStore = new TableStore({
field: 'uvoltageDev',
title: '电压偏差下限(%)',
minWidth: 140
},
}
/* {
title: '操作',
@@ -141,7 +151,7 @@ const tableStore = new TableStore({
tableStore.table.params.serverName = 'harmonic-boot'
tableStore.table.params.runFlag = []
if(tableStore.table.params.runF!=null){
if (tableStore.table.params.runF != null) {
tableStore.table.params.runFlag = [tableStore.table.params.runF]
}
tableStore.table.params.comFlag = [0, 1]
@@ -152,15 +162,28 @@ const tableStore = new TableStore({
}
})
tableStore.table.params.runF=null
tableStore.table.params.runFlag=[]
tableStore.table.params.searchValue=''
tableStore.table.params.runF = 0
tableStore.table.params.runFlag = []
tableStore.table.params.searchValue = ''
const runFlagList = [{id:0,name:'运行'},{id:1,name:'检修'},{id:2,name:'停运'},{id:3,name:'调试'},{id:4,name:'退运'}]
const runFlagList = [
{ id: 0, name: '运行' },
{ id: 1, name: '检修' },
{ id: 2, name: '停运' },
{ id: 3, name: '调试' },
{ id: 4, name: '退运' }
]
provide('tableStore', tableStore)
onMounted(() => {
tableStore.index()
})
const setSearchValue = (val:string) => {
tableStore.table.params.searchValue = val
tableStore.index()
}
defineExpose({
setSearchValue
})
</script>