事件展示-设备告警稳态越限告警暂态事件列表-数据来源deviceId参数传递条件修改
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
<template v-slot:select>
|
||||
<el-form-item label="数据来源">
|
||||
<el-cascader
|
||||
v-model="tableStore.table.params.cascader"
|
||||
v-model="tableStore.table.params.cascader"
|
||||
placeholder="请选择数据来源"
|
||||
@change="sourceChange"
|
||||
:options="props.deviceTree"
|
||||
@@ -26,7 +26,7 @@
|
||||
</template>
|
||||
</TableHeader>
|
||||
<!-- <div style="height: 300px;"> -->
|
||||
<Table ref="tableRef" :isGroup="true"/>
|
||||
<Table ref="tableRef" :isGroup="true" />
|
||||
<!-- </div> -->
|
||||
</template>
|
||||
<script setup lang="ts">
|
||||
@@ -72,7 +72,7 @@ const rankOptions = ref([
|
||||
const tableStore = new TableStore({
|
||||
url: '/cs-harmonic-boot/eventUser/queryEventpage',
|
||||
method: 'POST',
|
||||
publicHeight:65,
|
||||
publicHeight: 65,
|
||||
column: [
|
||||
{ title: '工程名称', field: 'engineeringName', align: 'center' },
|
||||
{ title: '项目名称', field: 'projectName', align: 'center' },
|
||||
@@ -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)
|
||||
@@ -88,7 +93,7 @@ provide('tableStore', tableStore)
|
||||
// "type": "",
|
||||
// "userId": ""
|
||||
tableStore.table.params.cascader = ''
|
||||
tableStore.table.params.level=''
|
||||
tableStore.table.params.level = ''
|
||||
tableStore.table.params.engineeringid = ''
|
||||
tableStore.table.params.projectId = ''
|
||||
tableStore.table.params.deviceId = ''
|
||||
@@ -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