From b4a24a2950aa5a1b8bce200f2fd39a294cf911ac Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Fri, 07 May 2021 16:14:16 +0800
Subject: [PATCH] 设备管理图例样式修改,排序修改
---
src/views/dataL/dataL.vue | 49 ++++++++++++++++++++++++-------------------------
1 files changed, 24 insertions(+), 25 deletions(-)
diff --git a/src/views/dataL/dataL.vue b/src/views/dataL/dataL.vue
index 00e6aea..01d2b7a 100644
--- a/src/views/dataL/dataL.vue
+++ b/src/views/dataL/dataL.vue
@@ -1015,31 +1015,30 @@
// jtype != 2
// ]
var states,
- o = this.a.onlineStatus,
- s = this.a.state,
- j = this.a.jtype;
- // if (o == 0) {
- // states = "掉线";
- // } else if (o == 1) {
- // states = "在线";
- // } else if (s != "") {
- // states = "故障";
- // } else if (j != 2) {
- // states = "预警";
- // }
- if (s != "") {
+ d = this.a.dtype;
+ if (d == 0) {
+ states = "掉线";
+ } else if (d == 1) {
+ states = "正常";
+ } else if (d == 3) {
states = "故障";
- } else {
- if (j != 1) {
- if (o == 1) {
- states = "正常";
- } else {
- states = "掉线";
- }
- } else {
- states = "预警";
- }
+ } else if (d == 2) {
+ states = "预警";
}
+
+ // if (s != "") {
+ // states = "故障";
+ // } else {
+ // if (j != 1) {
+ // if (o == 1) {
+ // states = "正常";
+ // } else {
+ // states = "掉线";
+ // }
+ // } else {
+ // states = "预警";
+ // }
+ // }
// console.log(o, 1000);
// console.log(s, 1000);
// console.log(j, 1000);
@@ -1250,7 +1249,7 @@
dom.play();
});
that.hls.on(Hls.Events.ERROR, function (event, data) {
- console.log(data, 4566824159, "视频播放有问题!!!");
+ // console.log(data, 4566824159, "视频播放有问题!!!");
if (data.fatal) {
switch (data.type) {
case Hls.ErrorTypes.NETWORK_ERROR:
@@ -1283,7 +1282,7 @@
this.a = this.$route.query;
this.$store.commit("SET_DATAL", this.a);//每次都缓存在vuex中,如果没有从正确路径进来,则使用缓存
}
- console.log(this.a);
+ // console.log(this.a);
this.baseUrl = `/map/index.html?ISinit=1&openid=DetailMap&jd=${this.a.jd}&wd=${this.a.wd}`;
this.myDeviceNumber = this.a.deviceNumber;
// console.log(this.a);
--
Gitblit v1.9.3