事件展示查询条件逻辑修改
This commit is contained in:
@@ -74,9 +74,9 @@ const tableStore = new TableStore({
|
||||
method: 'POST',
|
||||
publicHeight: 65,
|
||||
column: [
|
||||
{ title: '设备名称', field: 'equipmentName', align: 'center' },
|
||||
{ title: '工程名称', field: 'engineeringName', align: 'center' },
|
||||
{ title: '项目名称', field: 'projectName', align: 'center' },
|
||||
{ title: '设备名称', field: 'equipmentName', align: 'center' },
|
||||
{ title: '告警代码', field: 'code', align: 'center' },
|
||||
{ title: '事件描述', field: 'showName', align: 'center' },
|
||||
{ title: '发生时刻', field: 'startTime', align: 'center' }
|
||||
@@ -106,7 +106,20 @@ tableStore.table.params.userId = ''
|
||||
const sourceChange = (e: any) => {
|
||||
tableStore.table.params.engineeringid = e[1] || ''
|
||||
tableStore.table.params.projectId = e[2] || ''
|
||||
tableStore.table.params.deviceId = e[2] || ''
|
||||
const zlIndex = props.deviceTree.findIndex((item: any) => {
|
||||
return item.name == '治理设备'
|
||||
})
|
||||
const bxsIndex = props.deviceTree.findIndex((item: any) => {
|
||||
return item.name == '便携式设备'
|
||||
})
|
||||
//便携式设备特殊处理
|
||||
if (props.deviceTree[bxsIndex].id == e[0] && e.length == 2) {
|
||||
tableStore.table.params.deviceId = e[1]
|
||||
}
|
||||
//治理设备
|
||||
if (props.deviceTree[zlIndex].id == e[0]) {
|
||||
tableStore.table.params.deviceId = e[2] || ''
|
||||
}
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
|
||||
Reference in New Issue
Block a user