src/pages/cameraAccess/components/SceneRule.vue
@@ -242,11 +242,11 @@ } }, 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 '' } }, @@ -439,7 +439,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;' } }