瀏覽代碼

平板策略重置优化

gzb
guozhongbo 7 月之前
父節點
當前提交
91bb86c286
共有 1 個檔案被更改,包括 17 行新增0 行删除
  1. 17
    0
      src/views/schoolSection/strategy/publicStrategy.vue

+ 17
- 0
src/views/schoolSection/strategy/publicStrategy.vue 查看文件

@@ -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 {

Loading…
取消
儲存