|
@@ -730,11 +730,28 @@ export default {
|
730
|
730
|
this.strategyInfo.padWifis = res.obj.padWifis || [];
|
731
|
731
|
this.strategyInfo.padTimes = res.obj.padTimes || [];
|
732
|
732
|
} else {
|
|
733
|
+ //数据初始化
|
|
734
|
+ this.strategyInfo.sttype = null;
|
|
735
|
+ this.strategyInfo.padid = null;
|
|
736
|
+ this.strategyInfo.rversion = null;
|
733
|
737
|
this.strategyInfo.hastime = false;
|
734
|
738
|
this.strategyInfo.hasapp = false;
|
735
|
739
|
this.strategyInfo.hasdevice = false;
|
736
|
740
|
this.strategyInfo.haswifi = false;
|
737
|
741
|
this.strategyInfo.hasviolate = false;
|
|
742
|
+ this.padApps.forEach((item) => {
|
|
743
|
+ item.checked = false;
|
|
744
|
+ });
|
|
745
|
+ this.padDevices.forEach((item) => {
|
|
746
|
+ item.enabled = item.pdorder === 1 ? 1 : item.pdorder === 2 ? 1 : 2;
|
|
747
|
+ });
|
|
748
|
+ this.padViolates.forEach((item) => {
|
|
749
|
+ item.checked = false;
|
|
750
|
+ item.noticed = false;
|
|
751
|
+ item.handleMethod = "";
|
|
752
|
+ });
|
|
753
|
+ this.strategyInfo.padWifis = [];
|
|
754
|
+ this.strategyInfo.padTimes = [];
|
738
|
755
|
}
|
739
|
756
|
this.curState = 1; //查看状态
|
740
|
757
|
} else {
|