Browse Source

fix statistics

organize
刘嘉炜 3 years ago
parent
commit
d0ba20db33
  1. 4
      src/pages/collection/info/info.vue
  2. 2
      src/subpackage/device/pages/switch_manage/switch_manage.vue

4
src/pages/collection/info/info.vue

@ -209,8 +209,12 @@ export default {
let _fiLs = _list.filter(e=> +e.val == stadium_id);
if(_fiLs.length)_cur = _fiLs[0];
}
if(_cur&&_cur.val){
this.curStadium = _cur;
}else if(optionsQuery.stadium_id == 0){
let _fLs = _list.filter(e=> +e.val == -1);
if(_fLs.length)this.curStadium = _fLs[0] || {};
}else{
this.curStadium = _list[0] || {};
}

2
src/subpackage/device/pages/switch_manage/switch_manage.vue

@ -224,7 +224,7 @@ export default {
if(switchInfo.hardware_type=="Light"&&status==2)_data.data.name = "set-rpio-lock"
//->& 20201224 5
if(switchInfo.hardware_type === 'AccessControl'&&status == 0)_data['delay'] = '5';
if(switchInfo.hardware_type === 'AccessControl'&&status == 0)_data['delay'] = '3';
return _data;
},

Loading…
Cancel
Save