From ae2d855c89ca722ac7309fdf1aa6ceed370e3b95 Mon Sep 17 00:00:00 2001 From: heyujie <516346543@qq.com> Date: 星期一, 11 十月 2021 20:22:30 +0800 Subject: [PATCH] 监控ui --- src/pages/cameraAccess/components/SceneRule.vue | 16 +++++++++------- 1 files changed, 9 insertions(+), 7 deletions(-) diff --git a/src/pages/cameraAccess/components/SceneRule.vue b/src/pages/cameraAccess/components/SceneRule.vue index ecf6db6..3126c17 100644 --- a/src/pages/cameraAccess/components/SceneRule.vue +++ b/src/pages/cameraAccess/components/SceneRule.vue @@ -156,7 +156,6 @@ <script> import { saveCameraScene, - getCameraSceneRule, deleteCameraScene } from '@/api/scene' import RuleEditor from "@/components/subComponents/RuleEditor"; @@ -242,18 +241,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) @@ -275,6 +276,7 @@ }) return false; } + debugger this.eventAudio.src = this.soundPath; if (this.togglePlay) { this.eventAudio.play(); @@ -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