From 8f86d0a825962a17634cb5a4fcdab1ceecea1a5a Mon Sep 17 00:00:00 2001 From: hanbaoshan <hanbaoshan@aiotlink.com> Date: 星期五, 21 五月 2021 14:27:48 +0800 Subject: [PATCH] 事件声音列表获取字段由data.list改为data --- 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