zhangzengfei
2021-01-28 0f70bb5e95342e1c88e16b4c12609cd45dd1b103
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;'
      }
    }