Browse Source

vtest 1.1.16

organize
刘嘉炜 3 years ago
parent
commit
9c87427a23
  1. 7
      src/subpackage/device/pages/switch_manage/switch_manage.vue

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

@ -199,6 +199,7 @@ export default {
if(switchInfo.hardware_type === 'AccessControl'&&status == 1){
//->& 20201224 5
this.operateReq({data: this.getOperateReqData({ switchInfo, status: 0 }), isTip: false, isLoad: false});
}
@ -272,7 +273,7 @@ export default {
}
let _data = this.getSwitchStatusQuery(switchInfo);
_data = DEVICE_FUN.AC_filterCloudACData(data,switchInfo);
_data = DEVICE_FUN.AC_filterCloudACData(_data,switchInfo);
this.getStatusReq({
data: _data,
@ -292,10 +293,10 @@ export default {
util.hideLoad();
let _data = res.data || {};
console.log(this.changeLowerCase(_data.data))
if(_data.code == 504 || this.changeLowerCase(_data.data).indexOf('timeout')!=-1){
if(_data.code == 504 || this.changeLowerCase(_data.data).indexOf('timeout')!=-1){ // 线
_deviceList[index]['defineStatusCode'] = 0;
}else if(_data.code == 0&&this.changeLowerCase(_data.data).indexOf('timeout')==-1){
}else if(_data.code == 0&&this.changeLowerCase(_data.data).indexOf('timeout')==-1){ // 线
_deviceList[index]['defineStatusCode'] = 1;
}else{
util.showNone(_data.message || '操作失败!');

Loading…
Cancel
Save