bug修改

This commit is contained in:
cdf
2024-06-06 19:18:00 +08:00
parent 4f3691576b
commit 571ec626f2

View File

@@ -3,7 +3,17 @@
<TableHeader area ref='TableHeaderRef'>
<template #select>
<el-form-item label='信息查询'>
<el-input style="width:200px;" placeholder="请输入信息查询" v-model='tableStore.table.params.searchValue' clearable></el-input>
<el-input style="width:200px;" placeholder="电站信息,装置编号,型号" v-model='tableStore.table.params.searchValue' clearable></el-input>
</el-form-item>
<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>
</el-select>
</el-form-item>
</template>
<template #operation>
@@ -45,25 +55,29 @@ const tableStore = new TableStore({
title: '市公司',
minWidth: 150
},
{ field: 'bdName', title: '所属变电站', minWidth: 80 },
{ field: 'devName', title: '终端编号', minWidth: 170 },
{ field: 'loginTime', title: '投运时间', minWidth: 130 },
{ field: 'bdName', title: '所属变电站', minWidth: 120 },
{ field: 'devName', title: '终端编号', minWidth: 110 },
{ field: 'loginTime', title: '投运时间', minWidth: 100 },
{
field: 'manufacturer',
title: '厂家',
minWidth: 100
minWidth: 80
},
{ field: 'devType', title: '终端型号', minWidth: 100 },
{ field: 'ip', title: '装置网络参数', minWidth: 100 },
{ field: 'port', title: '端口号', minWidth: 100 },
{ field: 'port', title: '端口号', minWidth: 40 },
{
field: 'createBy',
title: '填报人',
field: 'runFlag',
title: '运行状态',
minWidth: 80,
formatter: (row: any) => {
return dictData.state.userList.filter(item => item.id == row.cellValue)[0]?.name
}
render: 'tag',
custom: {
'投运': 'success',
'停运': 'danger',
'检修': 'warning',
},
},
/* {
@@ -92,11 +106,16 @@ const tableStore = new TableStore({
name: '电网拓扑',
code: 'Power_Network'
}
if(tableStore.table.params.runF!=null){
tableStore.table.params.runFlag = [tableStore.table.params.runF]
}
}
})
const runFlagList = [{id:0,name:'投运'},{id:1,name:'检修'},{id:2,name:'停运'}]
provide('tableStore', tableStore)
onMounted(() => {
@@ -104,4 +123,7 @@ onMounted(() => {
})
</script>