alarm center 模块history请求参数调整,日期必选

This commit is contained in:
renpy 2023-08-28 15:57:36 +08:00
parent fb2f8c9f11
commit ba76a0a50a

View File

@ -13,9 +13,7 @@
:list="dataSource"
:loading="loading"
:canSelect="false"
>
<!-- @change="handleTableChange" -->
<!-- :pagination="ipagination" -->
>
<template slot="info" slot-scope="{ record}">
<div class="info-alarm">{{ record.alarmValue }}{{ JSON.parse(record.operator).units }}</div>
<div>{{ JSON.parse(record.operator).name }} {{ JSON.parse(record.operator).operator }} {{ JSON.parse(record.operator).threshold }}{{ JSON.parse(record.operator).units }}</div>
@ -140,15 +138,19 @@ export default {
return (Math.random()+new Date().getTime()).toString(32).slice(0,8)
},
handleSearch({ startDate, endDate, types }) {
this.paramsArg = {
startDate,
endDate,
types
if (startDate&&endDate) {
this.paramsArg = {
startDate,
endDate,
types
}
this.getAlarmLogBar({ startDate, endDate, types })
this.getTypeAlarmPie({ startDate, endDate })
this.getAlarmLogTable({ startDate, endDate, types })
this.getAlarmTop({ startDate, endDate, types })
} else {
this.$message.warning("The Start Time Or End Time Cannot Be Empty!")
}
this.getAlarmLogBar({ startDate, endDate, types })
this.getTypeAlarmPie({ startDate, endDate })
this.getAlarmLogTable({ startDate, endDate, types })
this.getAlarmTop({ startDate, endDate, types })
},
getAlarmLogBar(obj) {
let params = {