From 3a5d29e6dffa18e5e44579360e4c278acc3b8423 Mon Sep 17 00:00:00 2001
From: zhangzengfei <zhangzengfei@iotlink.com>
Date: 星期五, 21 五月 2021 14:30:14 +0800
Subject: [PATCH] 完善bhomebus 的 api 接口

---
 src/pages/cameraAccess/components/SceneRule.vue |   14 ++++++++------
 1 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/src/pages/cameraAccess/components/SceneRule.vue b/src/pages/cameraAccess/components/SceneRule.vue
index ecf6db6..ba4bc75 100644
--- a/src/pages/cameraAccess/components/SceneRule.vue
+++ b/src/pages/cameraAccess/components/SceneRule.vue
@@ -242,18 +242,20 @@
     }
   },
   methods: {
-    getSoundById(id){
-      if(id){
-        let sound = this.soundList.find(item=>item.id == id);
+    getSoundById(id) {
+      if (id) {
+        let sound = this.soundList.find(item => item.id == id);
         return sound.name
-      }else{
+      } else {
         return ''
       }
     },
     getSounds() {
+      let _this = this;
       getSoundList().then(res => {
         if (res.success) {
-          this.soundList = [{ id: "", name: "绌�", path: "" }].concat(res.data.list)
+          //_this.soundList = [{ id: "", name: "绌�", path: "" }].concat(res.data.list)
+          _this.soundList = [{ id: "", name: "绌�", path: "" }].concat(res.data)
         }
       }).catch(
         e => console.log(e)
@@ -439,7 +441,7 @@
         .catch(() => { });
     },
     cellStyle(obj) {
-      if (obj.column.label == '绛栫暐'||obj.column.label == '浜嬩欢澹伴煶') {
+      if (obj.column.label == '绛栫暐' || obj.column.label == '浜嬩欢澹伴煶') {
         return 'text-align:left;padding-left:8px;'
       }
     }

--
Gitblit v1.8.0