修改问题

This commit is contained in:
guanj
2026-03-17 08:43:51 +08:00
parent 9202da17f1
commit 7d2ce51510
6 changed files with 127 additions and 61 deletions

View File

@@ -12,6 +12,16 @@
></el-option>
</el-select>
</el-form-item>
<el-form-item label="通讯状态">
<el-select v-model="tableStore.table.params.comF" clearable placeholder="请选择通讯状态">
<el-option
v-for="item in comFlagList"
:key="item.id"
:label="item.name"
:value="item.id"
></el-option>
</el-select>
</el-form-item>
<el-form-item label="数据筛选">
<el-input
style="width: 200px"
@@ -19,7 +29,7 @@
v-model="tableStore.table.params.searchValue"
clearable
maxlength="32"
show-word-limit
show-word-limit
></el-input>
</el-form-item>
</template>
@@ -71,6 +81,7 @@ const tableStore = new TableStore({
{ field: 'bdName', title: '所属变电站', minWidth: 120 },
{ field: 'devName', title: '终端名称', minWidth: 110 },
{ field: 'loginTime', title: '投运时间', minWidth: 100 },
{ field: 'updateTime', title: '最新数据时间', minWidth: 150 },
{
field: 'manufacturer',
title: '厂家',
@@ -79,7 +90,18 @@ const tableStore = new TableStore({
{ field: 'devType', title: '终端型号', minWidth: 100 },
{ field: 'ip', title: '终端网络参数', width: '120px' },
{ field: 'port', title: '端口号', minWidth: 40 },
{ field: 'port', title: '端口号', minWidth: 70 },
{
field: 'comFlag',
title: '通讯状态',
minWidth: 80,
render: 'tag',
custom: {
正常: 'success',
中断: 'danger',
'/': 'primary'
}
},
{
field: 'runFlag',
title: '运行状态',
@@ -125,10 +147,15 @@ const tableStore = new TableStore({
if (tableStore.table.params.runF != null) {
tableStore.table.params.runFlag = [tableStore.table.params.runF]
}
tableStore.table.params.comFlag = []
if (tableStore.table.params.comF != null) {
tableStore.table.params.comFlag = [tableStore.table.params.comF]
}
}
})
tableStore.table.params.runF = 0
tableStore.table.params.comF = ''
tableStore.table.params.runFlag = []
tableStore.table.params.searchValue = ''
@@ -139,6 +166,10 @@ const runFlagList = [
{ id: 3, name: '调试' },
{ id: 4, name: '退运' }
]
const comFlagList = [
{ name: '正常', id: 1 },
{ name: '中断', id: 0 }
]
provide('tableStore', tableStore)
onMounted(() => {