事件展示-设备告警稳态越限告警暂态事件列表-数据来源deviceId参数传递条件修改
This commit is contained in:
@@ -26,7 +26,7 @@
|
|||||||
</template>
|
</template>
|
||||||
</TableHeader>
|
</TableHeader>
|
||||||
<!-- <div style="height: 300px;"> -->
|
<!-- <div style="height: 300px;"> -->
|
||||||
<Table ref="tableRef" :isGroup="true"/>
|
<Table ref="tableRef" :isGroup="true" />
|
||||||
<!-- </div> -->
|
<!-- </div> -->
|
||||||
</template>
|
</template>
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
@@ -72,7 +72,7 @@ const rankOptions = ref([
|
|||||||
const tableStore = new TableStore({
|
const tableStore = new TableStore({
|
||||||
url: '/cs-harmonic-boot/eventUser/queryEventpage',
|
url: '/cs-harmonic-boot/eventUser/queryEventpage',
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
publicHeight:65,
|
publicHeight: 65,
|
||||||
column: [
|
column: [
|
||||||
{ title: '工程名称', field: 'engineeringName', align: 'center' },
|
{ title: '工程名称', field: 'engineeringName', align: 'center' },
|
||||||
{ title: '项目名称', field: 'projectName', align: 'center' },
|
{ title: '项目名称', field: 'projectName', align: 'center' },
|
||||||
@@ -80,7 +80,12 @@ const tableStore = new TableStore({
|
|||||||
{ title: '告警代码', field: 'code', align: 'center' },
|
{ title: '告警代码', field: 'code', align: 'center' },
|
||||||
{ title: '事件描述', field: 'showName', align: 'center' },
|
{ title: '事件描述', field: 'showName', align: 'center' },
|
||||||
{ title: '发生时刻', field: 'startTime', align: 'center' }
|
{ title: '发生时刻', field: 'startTime', align: 'center' }
|
||||||
]
|
],
|
||||||
|
beforeSearchFun: () => {
|
||||||
|
if (!tableStore.table.params.deviceId) {
|
||||||
|
delete tableStore.table.params.deviceId
|
||||||
|
}
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
provide('tableStore', tableStore)
|
provide('tableStore', tableStore)
|
||||||
@@ -88,7 +93,7 @@ provide('tableStore', tableStore)
|
|||||||
// "type": "",
|
// "type": "",
|
||||||
// "userId": ""
|
// "userId": ""
|
||||||
tableStore.table.params.cascader = ''
|
tableStore.table.params.cascader = ''
|
||||||
tableStore.table.params.level=''
|
tableStore.table.params.level = ''
|
||||||
tableStore.table.params.engineeringid = ''
|
tableStore.table.params.engineeringid = ''
|
||||||
tableStore.table.params.projectId = ''
|
tableStore.table.params.projectId = ''
|
||||||
tableStore.table.params.deviceId = ''
|
tableStore.table.params.deviceId = ''
|
||||||
@@ -98,7 +103,6 @@ tableStore.table.params.status = ''
|
|||||||
tableStore.table.params.target = []
|
tableStore.table.params.target = []
|
||||||
tableStore.table.params.userId = ''
|
tableStore.table.params.userId = ''
|
||||||
|
|
||||||
|
|
||||||
const sourceChange = (e: any) => {
|
const sourceChange = (e: any) => {
|
||||||
tableStore.table.params.engineeringid = e[1] || ''
|
tableStore.table.params.engineeringid = e[1] || ''
|
||||||
tableStore.table.params.projectId = e[2] || ''
|
tableStore.table.params.projectId = e[2] || ''
|
||||||
|
|||||||
@@ -79,7 +79,12 @@ const tableStore = new TableStore({
|
|||||||
{ title: '设备名称', field: 'equipmentName', align: 'center' },
|
{ title: '设备名称', field: 'equipmentName', align: 'center' },
|
||||||
{ title: '事件描述', field: 'showName', align: 'center' },
|
{ title: '事件描述', field: 'showName', align: 'center' },
|
||||||
{ title: '发生时刻', field: 'startTime', align: 'center' }
|
{ title: '发生时刻', field: 'startTime', align: 'center' }
|
||||||
]
|
],
|
||||||
|
beforeSearchFun: () => {
|
||||||
|
if (!tableStore.table.params.deviceId) {
|
||||||
|
delete tableStore.table.params.deviceId
|
||||||
|
}
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
provide('tableStore', tableStore)
|
provide('tableStore', tableStore)
|
||||||
|
|||||||
@@ -158,6 +158,11 @@ const tableStore = new TableStore({
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
beforeSearchFun: () => {
|
||||||
|
if (!tableStore.table.params.deviceId) {
|
||||||
|
delete tableStore.table.params.deviceId
|
||||||
|
}
|
||||||
|
},
|
||||||
loadCallback: () => {
|
loadCallback: () => {
|
||||||
tableStore.table.data.forEach((item: any) => {
|
tableStore.table.data.forEach((item: any) => {
|
||||||
item.loading = false
|
item.loading = false
|
||||||
|
|||||||
Reference in New Issue
Block a user