|
@@ -4,7 +4,7 @@
|
|
|
<span class="sys-time">{{ sysTime }}</span>
|
|
|
<div class="top-right-style flex items-center">
|
|
|
<div class="top-badge">
|
|
|
- <el-badge :value="badgeValue.alarm" v-if="badgeValue.alarm !== 0">
|
|
|
+ <el-badge :value="allBadgeValue.alarm" v-if="allBadgeValue.alarm !== 0">
|
|
|
<img src="../../assets/images/svg/remind.svg" class="badge-img" @click="openAlarm()"/>
|
|
|
</el-badge>
|
|
|
<img src="../../assets/images/svg/remind.svg" class="badge-img" @click="openAlarm()" v-else/>
|
|
@@ -160,8 +160,23 @@
|
|
|
:visible.sync="innerVisible"
|
|
|
append-to-body>
|
|
|
<!-- TODO 移植v3 -->
|
|
|
- <div class="dark-el-dialog">
|
|
|
- <el-row :gutter="10" class="mb8">
|
|
|
+ <div class="dark-el-dialog" style="margin-top: -20px">
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="1.5">失效时间:</el-col>
|
|
|
+ <el-col :span="10">
|
|
|
+ <el-date-picker
|
|
|
+ :clearable="false"
|
|
|
+ v-model="expireTime"
|
|
|
+ type="datetime"
|
|
|
+ value-format="timestamp"
|
|
|
+ placeholder="选择失效时间"
|
|
|
+ popper-class="cpp-popper"
|
|
|
+ size="small"
|
|
|
+ @change="changeInfo">
|
|
|
+ </el-date-picker>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-row :gutter="10" class="mb8" style="margin-top: 5px">
|
|
|
<el-col :span="1.5">
|
|
|
<el-button
|
|
|
type="primary"
|
|
@@ -195,28 +210,19 @@
|
|
|
>删除
|
|
|
</el-button>
|
|
|
</el-col>
|
|
|
- <el-col :span="1.5">
|
|
|
- <el-button
|
|
|
- type="danger"
|
|
|
- plain
|
|
|
- icon="el-icon-select"
|
|
|
- size="mini"
|
|
|
- popper-class="cpp-popper"
|
|
|
- @click="getAlarmConfs"
|
|
|
- >查询
|
|
|
- </el-button>
|
|
|
- </el-col>
|
|
|
- <el-col :span="1.5">
|
|
|
- <el-date-picker
|
|
|
- :clearable="false"
|
|
|
- v-model="expireTime"
|
|
|
- type="datetime"
|
|
|
- value-format="timestamp"
|
|
|
- placeholder="选择失效时间"
|
|
|
- popper-class="cpp-popper">
|
|
|
- </el-date-picker>
|
|
|
- </el-col>
|
|
|
+<!-- <el-col :span="1.5">-->
|
|
|
+<!-- <el-button-->
|
|
|
+<!-- type="danger"-->
|
|
|
+<!-- plain-->
|
|
|
+<!-- icon="el-icon-select"-->
|
|
|
+<!-- size="mini"-->
|
|
|
+<!-- popper-class="cpp-popper"-->
|
|
|
+<!-- @click="getAlarmConfs"-->
|
|
|
+<!-- >查询-->
|
|
|
+<!-- </el-button>-->
|
|
|
+<!-- </el-col>-->
|
|
|
</el-row>
|
|
|
+
|
|
|
<div style="padding-top: 10px">
|
|
|
<vxe-table
|
|
|
ref="xTable"
|
|
@@ -232,7 +238,7 @@
|
|
|
:radio-config="{trigger: 'row',checkMethod: checkRadioMethod}"
|
|
|
>
|
|
|
<vxe-column type="radio" width="60"/>
|
|
|
- <vxe-table-column field="stationCode" title="场站编号"
|
|
|
+ <vxe-table-column field="stationCode" title="场站名称"
|
|
|
:formatter="alarmConfTypeStationFormat"></vxe-table-column>
|
|
|
<vxe-table-column field="keyword" title="关键词"></vxe-table-column>
|
|
|
<vxe-table-column field="type" title="类型" :formatter="alarmConfTypeFormat"></vxe-table-column>
|
|
@@ -386,6 +392,11 @@ export default {
|
|
|
radiance: 0,
|
|
|
},
|
|
|
// 告警统计值
|
|
|
+ allBadgeValue: {
|
|
|
+ alarm: 0,
|
|
|
+ confirm: 0
|
|
|
+ },
|
|
|
+ // 告警统计值
|
|
|
badgeValue: {
|
|
|
alarm: 0,
|
|
|
confirm: 0
|
|
@@ -572,11 +583,14 @@ export default {
|
|
|
},
|
|
|
getAlarmSize() {
|
|
|
this.$axios.get('/abnormalAlarm/alarmCountStatus1').then(response => {
|
|
|
- this.badgeValue.alarm = response.data
|
|
|
+ this.allBadgeValue.alarm = response.data
|
|
|
}).catch(() => {
|
|
|
|
|
|
})
|
|
|
},
|
|
|
+ changeInfo(){
|
|
|
+ this.getAlarmConfs()
|
|
|
+ },
|
|
|
getAlarmConfs() {
|
|
|
this.loadingAlarmConf = true
|
|
|
|
|
@@ -614,6 +628,7 @@ export default {
|
|
|
this.$axios.get('/abnormalAlarm/dashboard', {params: queryParams}).then(response => {
|
|
|
this.tableDataAlarm = response.data.records
|
|
|
this.alarmPage.total = response.data.total
|
|
|
+ this.badgeValue.alarm = response.data.total
|
|
|
this.loadingAlarm = false
|
|
|
}).catch(() => {
|
|
|
this.loadingAlarm = false
|
|
@@ -784,6 +799,8 @@ export default {
|
|
|
this.$message.success('修改成功')
|
|
|
this.open = false;
|
|
|
this.getAlarmConfs()
|
|
|
+ this.getAlarmSize()
|
|
|
+ this.filterInfo()
|
|
|
}).catch((error) => {
|
|
|
})
|
|
|
} else {
|
|
@@ -794,6 +811,8 @@ export default {
|
|
|
} else {
|
|
|
this.$message.success('新增成功')
|
|
|
this.getAlarmConfs()
|
|
|
+ this.getAlarmSize()
|
|
|
+ this.filterInfo()
|
|
|
this.open = false;
|
|
|
}
|
|
|
}).catch((error) => {
|