bug修改
This commit is contained in:
@@ -3,7 +3,17 @@
|
|||||||
<TableHeader area ref='TableHeaderRef'>
|
<TableHeader area ref='TableHeaderRef'>
|
||||||
<template #select>
|
<template #select>
|
||||||
<el-form-item label='信息查询'>
|
<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>
|
</el-form-item>
|
||||||
</template>
|
</template>
|
||||||
<template #operation>
|
<template #operation>
|
||||||
@@ -45,25 +55,29 @@ const tableStore = new TableStore({
|
|||||||
title: '市公司',
|
title: '市公司',
|
||||||
minWidth: 150
|
minWidth: 150
|
||||||
},
|
},
|
||||||
{ field: 'bdName', title: '所属变电站', minWidth: 80 },
|
{ field: 'bdName', title: '所属变电站', minWidth: 120 },
|
||||||
{ field: 'devName', title: '终端编号', minWidth: 170 },
|
{ field: 'devName', title: '终端编号', minWidth: 110 },
|
||||||
{ field: 'loginTime', title: '投运时间', minWidth: 130 },
|
{ field: 'loginTime', title: '投运时间', minWidth: 100 },
|
||||||
{
|
{
|
||||||
field: 'manufacturer',
|
field: 'manufacturer',
|
||||||
title: '厂家',
|
title: '厂家',
|
||||||
minWidth: 100
|
minWidth: 80
|
||||||
},
|
},
|
||||||
{ field: 'devType', title: '终端型号', minWidth: 100 },
|
{ field: 'devType', title: '终端型号', minWidth: 100 },
|
||||||
|
|
||||||
{ field: 'ip', title: '装置网络参数', minWidth: 100 },
|
{ field: 'ip', title: '装置网络参数', minWidth: 100 },
|
||||||
{ field: 'port', title: '端口号', minWidth: 100 },
|
{ field: 'port', title: '端口号', minWidth: 40 },
|
||||||
{
|
{
|
||||||
field: 'createBy',
|
field: 'runFlag',
|
||||||
title: '填报人',
|
title: '运行状态',
|
||||||
minWidth: 80,
|
minWidth: 80,
|
||||||
formatter: (row: any) => {
|
render: 'tag',
|
||||||
return dictData.state.userList.filter(item => item.id == row.cellValue)[0]?.name
|
custom: {
|
||||||
}
|
'投运': 'success',
|
||||||
|
'停运': 'danger',
|
||||||
|
'检修': 'warning',
|
||||||
|
|
||||||
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
/* {
|
/* {
|
||||||
@@ -92,11 +106,16 @@ const tableStore = new TableStore({
|
|||||||
name: '电网拓扑',
|
name: '电网拓扑',
|
||||||
code: 'Power_Network'
|
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)
|
provide('tableStore', tableStore)
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
@@ -104,4 +123,7 @@ onMounted(() => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user