事件展示-设备告警稳态越限告警暂态事件列表-数据来源deviceId参数传递条件修改
This commit is contained in:
@@ -80,7 +80,12 @@ const tableStore = new TableStore({
|
||||
{ title: '告警代码', field: 'code', align: 'center' },
|
||||
{ title: '事件描述', field: 'showName', align: 'center' },
|
||||
{ title: '发生时刻', field: 'startTime', align: 'center' }
|
||||
]
|
||||
],
|
||||
beforeSearchFun: () => {
|
||||
if (!tableStore.table.params.deviceId) {
|
||||
delete tableStore.table.params.deviceId
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
provide('tableStore', tableStore)
|
||||
@@ -98,7 +103,6 @@ tableStore.table.params.status = ''
|
||||
tableStore.table.params.target = []
|
||||
tableStore.table.params.userId = ''
|
||||
|
||||
|
||||
const sourceChange = (e: any) => {
|
||||
tableStore.table.params.engineeringid = e[1] || ''
|
||||
tableStore.table.params.projectId = e[2] || ''
|
||||
|
||||
@@ -79,7 +79,12 @@ const tableStore = new TableStore({
|
||||
{ title: '设备名称', field: 'equipmentName', align: 'center' },
|
||||
{ title: '事件描述', field: 'showName', align: 'center' },
|
||||
{ title: '发生时刻', field: 'startTime', align: 'center' }
|
||||
]
|
||||
],
|
||||
beforeSearchFun: () => {
|
||||
if (!tableStore.table.params.deviceId) {
|
||||
delete tableStore.table.params.deviceId
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
provide('tableStore', tableStore)
|
||||
|
||||
@@ -158,6 +158,11 @@ const tableStore = new TableStore({
|
||||
]
|
||||
}
|
||||
],
|
||||
beforeSearchFun: () => {
|
||||
if (!tableStore.table.params.deviceId) {
|
||||
delete tableStore.table.params.deviceId
|
||||
}
|
||||
},
|
||||
loadCallback: () => {
|
||||
tableStore.table.data.forEach((item: any) => {
|
||||
item.loading = false
|
||||
|
||||
Reference in New Issue
Block a user