From cce5e625e8870248081302513b9cb38e676a04e5 Mon Sep 17 00:00:00 2001
From: zhangzengfei <zhangzengfei@iotlink.com>
Date: 星期五, 25 六月 2021 15:34:37 +0800
Subject: [PATCH] 调整全景跟踪目标选择的样式

---
 src/pages/systemSettings/views/generalSettings.vue |    5 -----
 src/pages/panoramicView/components/History.vue     |    4 ++--
 src/pages/panoramicView/components/TracePlot.vue   |    8 +++++---
 3 files changed, 7 insertions(+), 10 deletions(-)

diff --git a/src/pages/panoramicView/components/History.vue b/src/pages/panoramicView/components/History.vue
index 4b9656c..f04dcb3 100644
--- a/src/pages/panoramicView/components/History.vue
+++ b/src/pages/panoramicView/components/History.vue
@@ -25,7 +25,7 @@
           class="list-item"
           v-for="item in personList"
           :key="item.id"
-          :style="item.selected ? 'border-color:#3D68E1': ''"
+          :style="searching ? '' : item.selected ? '': 'opacity: 0.3;'"
           @click="checkTarget(item)"
         >
           <!-- <img src alt :style="{backgroundColor:item.color}"/> -->
@@ -33,7 +33,7 @@
           <el-image
             style="width: 70px; height: 70px;border-radius: 50%;"
             :src="item.humanImg"
-            fit="cover"
+            fit="contain"
           ></el-image>
         </div>
       </div>
diff --git a/src/pages/panoramicView/components/TracePlot.vue b/src/pages/panoramicView/components/TracePlot.vue
index b17498b..a4e5aca 100644
--- a/src/pages/panoramicView/components/TracePlot.vue
+++ b/src/pages/panoramicView/components/TracePlot.vue
@@ -175,7 +175,7 @@
           })
         });
         for (var i = 0; i < _this.actObjs.length; i++) {
-          _this.actObjs[i].color = _this.colorArr[i % 10];
+          this.$set(_this.actObjs[i], 'color', _this.colorArr[i % 10]);
           this.$set(_this.actObjs[i], 'isHide', _this.actObjs[i].isHide);
         }
         _this.drawTracePath();
@@ -337,11 +337,13 @@
           if (!_this.actObjs[i].posInfo.length) {
             _this.actObjs.splice(i, 1);
           }
-          _this.actObjs[i].color = _this.colorArr[i % 10];
+
+          this.$set(_this.actObjs[i], 'color', _this.colorArr[i % 10]);
           this.$set(_this.actObjs[i], 'isHide', _this.actObjs[i].isHide);
         }
 
-        console.log(_this.actObjs)
+        // console.log(_this.actObjs)
+
         _this.drawTracePath();
         _this.timeMark = new Date();
         _this.timer = setTimeout(() => {
diff --git a/src/pages/systemSettings/views/generalSettings.vue b/src/pages/systemSettings/views/generalSettings.vue
index b76422c..b584c9d 100644
--- a/src/pages/systemSettings/views/generalSettings.vue
+++ b/src/pages/systemSettings/views/generalSettings.vue
@@ -172,11 +172,6 @@
       value: "",
     };
   },
-  components: {
-    cloudNode,
-    ipInput,
-    switchBar,
-  },
   mounted() {
     this.getSounds()
 

--
Gitblit v1.8.0