Commit 1c4bb0e6 by 前端

修复bug

1 parent 456d6d01
...@@ -108,14 +108,14 @@ ...@@ -108,14 +108,14 @@
<!-- 最近3条基站记录 end --> <!-- 最近3条基站记录 end -->
<!-- 最近3条断电报警记录 开始 --> <!-- 最近3条断电报警记录 开始 -->
<div class="cell_list red_color" v-if="source == 1"> <div class="cell_list red_color" v-if="source == 1 || source == null">
<h2 class="h2">————最近3条断电报警记录————</h2> <h2 class="h2">————最近3条断电报警记录————</h2>
<template <template
v-if="lastThreePowerOffRecord && lastThreePowerOffRecord.length" v-if="lastThreeTearDownRecord && lastThreeTearDownRecord.length"
> >
<div <div
class="cell" class="cell"
v-for="(item, index) in lastThreePowerOffRecord" v-for="(item, index) in lastThreeTearDownRecord"
:key="`last_power_${index}`" :key="`last_power_${index}`"
> >
<span>接收时间:{{ item.receiveTime || "--" }};</span> <span>接收时间:{{ item.receiveTime || "--" }};</span>
...@@ -129,14 +129,14 @@ ...@@ -129,14 +129,14 @@
<!-- 最近3条断电报警记录 end --> <!-- 最近3条断电报警记录 end -->
<!-- 最近3条光感报警记录 开始 --> <!-- 最近3条光感报警记录 开始 -->
<div class="cell_list red_color" v-if="source == 0"> <div class="cell_list red_color" v-if="source == 0 || source == null">
<h2 class="h2">————最近3条光感报警记录————</h2> <h2 class="h2">————最近3条光感报警记录————</h2>
<template <template
v-if="lastThreeTearDownRecord && lastThreeTearDownRecord.length" v-if="lastThreePowerOffRecord && lastThreePowerOffRecord.length"
> >
<div <div
class="cell" class="cell"
v-for="(item, index) in lastThreeTearDownRecord" v-for="(item, index) in lastThreePowerOffRecord"
:key="`last_tear_${index}`" :key="`last_tear_${index}`"
> >
<span>接收时间:{{ item.receiveTime || "--" }};</span> <span>接收时间:{{ item.receiveTime || "--" }};</span>
...@@ -192,13 +192,13 @@ const lastThreeGPSRecord = ref([]); ...@@ -192,13 +192,13 @@ const lastThreeGPSRecord = ref([]);
const lastThreeBSRecord = ref([]); const lastThreeBSRecord = ref([]);
// 最近3条断电报警记录 // 最近3条断电报警记录
const lastThreePowerOffRecord = ref([]); const lastThreeTearDownRecord = ref([]);
// 最近3条光感报警记录 // 最近3条光感报警记录
const lastThreeTearDownRecord = ref([]); const lastThreePowerOffRecord = ref([]);
// 设备类型 0:无线设备 1:有线设备 // 设备类型 0:无线设备 1:有线设备 null:默认初始,展示全部报警
const source = ref(0); const source = ref(null);
// 查询设备信息 // 查询设备信息
const getList = () => { const getList = () => {
...@@ -234,6 +234,7 @@ const onClear = () => { ...@@ -234,6 +234,7 @@ const onClear = () => {
lastThreePowerOffRecord.value = []; lastThreePowerOffRecord.value = [];
lastThreeTearDownRecord.value = []; lastThreeTearDownRecord.value = [];
searchText.value = ""; searchText.value = "";
source.value = null;
}; };
// 监听输入 // 监听输入
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!