Browse Source

违规设备、设备管理其他操作推送日志

gzb
wangzhonglu 9 months ago
parent
commit
6535463067

+ 44
- 44
src/views/schoolSection/deviceManage/breakRuleDevice.vue View File

241
           align: "center"
241
           align: "center"
242
         },
242
         },
243
         {
243
         {
244
-          title: "违规详情",
244
+          title: "违规数量",
245
           key: "num",
245
           key: "num",
246
           align: "center"
246
           align: "center"
247
         },
247
         },
539
           title: "提示",
539
           title: "提示",
540
           content: "确定对所选设备进行解除管控操作吗?",
540
           content: "确定对所选设备进行解除管控操作吗?",
541
           onOk: () => {
541
           onOk: () => {
542
-            this.controlRemovetDevice(snList, useridList);
542
+            this.controlRemoveDevice(snList, useridList);
543
           },
543
           },
544
           onCancel: () => {}
544
           onCancel: () => {}
545
         });
545
         });
546
       }
546
       }
547
     },
547
     },
548
     // 恢复出厂设置
548
     // 恢复出厂设置
549
-    controlRestoreFactory(snList) {
549
+    controlRestoreFactory(snList, useridList) {
550
       let controlWSMsg = new ControlWSMsg(
550
       let controlWSMsg = new ControlWSMsg(
551
         controlWs.ws,
551
         controlWs.ws,
552
         this.userInfo.adminid,
552
         this.userInfo.adminid,
561
         }
561
         }
562
       });
562
       });
563
       this.$refs.deviceTable.selectAll(false);
563
       this.$refs.deviceTable.selectAll(false);
564
-      // let form = {
565
-      //   pushType: 6,
566
-      //   pushObj: 1
567
-      // };
568
-      // form.userids = useridList;
569
-      // this.addPushLog(form);
564
+      let form = {
565
+        pushType: 6,
566
+        pushObj: 1
567
+      };
568
+      form.userids = useridList;
569
+      this.addPushLog(form);
570
     },
570
     },
571
     // 发送消息
571
     // 发送消息
572
     controlSendMessage() {
572
     controlSendMessage() {
606
       });
606
       });
607
     },
607
     },
608
     // 解除锁定
608
     // 解除锁定
609
-    controlRemoveLimit(snList) {
609
+    controlRemoveLimit(snList, useridList) {
610
       let controlWSMsg = new ControlWSMsg(
610
       let controlWSMsg = new ControlWSMsg(
611
         controlWs.ws,
611
         controlWs.ws,
612
         this.userInfo.adminid,
612
         this.userInfo.adminid,
621
         }
621
         }
622
       });
622
       });
623
       this.$refs.deviceTable.selectAll(false);
623
       this.$refs.deviceTable.selectAll(false);
624
-      // let form = {
625
-      //   pushType: 2,
626
-      //   pushObj: 1
627
-      // };
628
-      // form.userids = useridList;
629
-      // this.addPushLog(form);
624
+      let form = {
625
+        pushType: 2,
626
+        pushObj: 1
627
+      };
628
+      form.userids = useridList;
629
+      this.addPushLog(form);
630
     },
630
     },
631
     // 锁定
631
     // 锁定
632
-    controlLimitedUse(snList) {
632
+    controlLimitedUse(snList, useridList) {
633
       let controlWSMsg = new ControlWSMsg(
633
       let controlWSMsg = new ControlWSMsg(
634
         controlWs.ws,
634
         controlWs.ws,
635
         this.userInfo.adminid,
635
         this.userInfo.adminid,
644
         }
644
         }
645
       });
645
       });
646
       this.$refs.deviceTable.selectAll(false);
646
       this.$refs.deviceTable.selectAll(false);
647
-      // let form = {
648
-      //   pushType: 3,
649
-      //   pushObj: 1
650
-      // };
651
-      // form.userids = useridList;
652
-      // this.addPushLog(form);
647
+      let form = {
648
+        pushType: 3,
649
+        pushObj: 1
650
+      };
651
+      form.userids = useridList;
652
+      this.addPushLog(form);
653
     },
653
     },
654
     // 更新策略
654
     // 更新策略
655
-    controlUpdateStrategy(snList) {
655
+    controlUpdateStrategy(snList, useridList) {
656
       let controlWSMsg = new ControlWSMsg(
656
       let controlWSMsg = new ControlWSMsg(
657
         controlWs.ws,
657
         controlWs.ws,
658
         this.userInfo.adminid,
658
         this.userInfo.adminid,
667
         }
667
         }
668
       });
668
       });
669
       this.$refs.deviceTable.selectAll(false);
669
       this.$refs.deviceTable.selectAll(false);
670
-      // let form = {
671
-      //   pushType: 4,
672
-      //   pushObj: 1
673
-      // };
674
-      // form.userids = useridList;
675
-      // this.addPushLog(form);
670
+      let form = {
671
+        pushType: 4,
672
+        pushObj: 1
673
+      };
674
+      form.userids = useridList;
675
+      this.addPushLog(form);
676
     },
676
     },
677
     // 重启设备
677
     // 重启设备
678
-    controlRebootDevice(snList) {
678
+    controlRebootDevice(snList, useridList) {
679
       let controlWSMsg = new ControlWSMsg(
679
       let controlWSMsg = new ControlWSMsg(
680
         controlWs.ws,
680
         controlWs.ws,
681
         this.userInfo.adminid,
681
         this.userInfo.adminid,
690
         }
690
         }
691
       });
691
       });
692
       this.$refs.deviceTable.selectAll(false);
692
       this.$refs.deviceTable.selectAll(false);
693
-      // let form = {
694
-      //   pushType: 4,
695
-      //   pushObj: 1
696
-      // };
697
-      // form.userids = useridList;
698
-      // this.addPushLog(form);
693
+      let form = {
694
+        pushType: 4,
695
+        pushObj: 1
696
+      };
697
+      form.userids = useridList;
698
+      this.addPushLog(form);
699
     },
699
     },
700
     // 解除管控
700
     // 解除管控
701
-    controlRemovetDevice(snList) {
701
+    controlRemoveDevice(snList, useridList) {
702
       let controlWSMsg = new ControlWSMsg(
702
       let controlWSMsg = new ControlWSMsg(
703
         controlWs.ws,
703
         controlWs.ws,
704
         this.userInfo.adminid,
704
         this.userInfo.adminid,
713
         }
713
         }
714
       });
714
       });
715
       this.$refs.deviceTable.selectAll(false);
715
       this.$refs.deviceTable.selectAll(false);
716
-      // let form = {
717
-      //   pushType: 4,
718
-      //   pushObj: 1
719
-      // };
720
-      // form.userids = useridList;
721
-      // this.addPushLog(form);
716
+      let form = {
717
+        pushType: 4,
718
+        pushObj: 1
719
+      };
720
+      form.userids = useridList;
721
+      this.addPushLog(form);
722
     },
722
     },
723
     // 添加推送日志
723
     // 添加推送日志
724
     addPushLog(form) {
724
     addPushLog(form) {

+ 42
- 42
src/views/schoolSection/deviceManage/deviceManage.vue View File

1379
       }
1379
       }
1380
     },
1380
     },
1381
     // 恢复出厂设置
1381
     // 恢复出厂设置
1382
-    controlRestoreFactory(snList) {
1382
+    controlRestoreFactory(snList, useridList) {
1383
       let controlWSMsg = new ControlWSMsg(
1383
       let controlWSMsg = new ControlWSMsg(
1384
         controlWs.ws,
1384
         controlWs.ws,
1385
         this.userInfo.adminid,
1385
         this.userInfo.adminid,
1394
         }
1394
         }
1395
       });
1395
       });
1396
       this.$refs.deviceTable.selectAll(false);
1396
       this.$refs.deviceTable.selectAll(false);
1397
-      // let form = {
1398
-      //   pushType: 6,
1399
-      //   pushObj: 1
1400
-      // };
1401
-      // form.userids = useridList;
1402
-      // this.addPushLog(form);
1397
+      let form = {
1398
+        pushType: 6,
1399
+        pushObj: 1
1400
+      };
1401
+      form.userids = useridList;
1402
+      this.addPushLog(form);
1403
     },
1403
     },
1404
     // 发送消息
1404
     // 发送消息
1405
     controlSendMessage() {
1405
     controlSendMessage() {
1443
       });
1443
       });
1444
     },
1444
     },
1445
     // 解除锁定
1445
     // 解除锁定
1446
-    controlRemoveLimit(snList) {
1446
+    controlRemoveLimit(snList, useridList) {
1447
       let controlWSMsg = new ControlWSMsg(
1447
       let controlWSMsg = new ControlWSMsg(
1448
         controlWs.ws,
1448
         controlWs.ws,
1449
         this.userInfo.adminid,
1449
         this.userInfo.adminid,
1458
         }
1458
         }
1459
       });
1459
       });
1460
       this.$refs.deviceTable.selectAll(false);
1460
       this.$refs.deviceTable.selectAll(false);
1461
-      // let form = {
1462
-      //   pushType: 2,
1463
-      //   pushObj: 1
1464
-      // };
1465
-      // form.userids = useridList;
1466
-      // this.addPushLog(form);
1461
+      let form = {
1462
+        pushType: 2,
1463
+        pushObj: 1
1464
+      };
1465
+      form.userids = useridList;
1466
+      this.addPushLog(form);
1467
     },
1467
     },
1468
     // 锁定
1468
     // 锁定
1469
-    controlLimitedUse(snList) {
1469
+    controlLimitedUse(snList, useridList) {
1470
       let controlWSMsg = new ControlWSMsg(
1470
       let controlWSMsg = new ControlWSMsg(
1471
         controlWs.ws,
1471
         controlWs.ws,
1472
         this.userInfo.adminid,
1472
         this.userInfo.adminid,
1481
         }
1481
         }
1482
       });
1482
       });
1483
       this.$refs.deviceTable.selectAll(false);
1483
       this.$refs.deviceTable.selectAll(false);
1484
-      // let form = {
1485
-      //   pushType: 3,
1486
-      //   pushObj: 1
1487
-      // };
1488
-      // form.userids = useridList;
1489
-      // this.addPushLog(form);
1484
+      let form = {
1485
+        pushType: 3,
1486
+        pushObj: 1
1487
+      };
1488
+      form.userids = useridList;
1489
+      this.addPushLog(form);
1490
     },
1490
     },
1491
     // 更新策略
1491
     // 更新策略
1492
-    controlUpdateStrategy(snList) {
1492
+    controlUpdateStrategy(snList, useridList) {
1493
       let controlWSMsg = new ControlWSMsg(
1493
       let controlWSMsg = new ControlWSMsg(
1494
         controlWs.ws,
1494
         controlWs.ws,
1495
         this.userInfo.adminid,
1495
         this.userInfo.adminid,
1504
         }
1504
         }
1505
       });
1505
       });
1506
       this.$refs.deviceTable.selectAll(false);
1506
       this.$refs.deviceTable.selectAll(false);
1507
-      // let form = {
1508
-      //   pushType: 4,
1509
-      //   pushObj: 1
1510
-      // };
1511
-      // form.userids = useridList;
1512
-      // this.addPushLog(form);
1507
+      let form = {
1508
+        pushType: 4,
1509
+        pushObj: 1
1510
+      };
1511
+      form.userids = useridList;
1512
+      this.addPushLog(form);
1513
     },
1513
     },
1514
     // 重启设备
1514
     // 重启设备
1515
-    controlRebootDevice(snList) {
1515
+    controlRebootDevice(snList, useridList) {
1516
       let controlWSMsg = new ControlWSMsg(
1516
       let controlWSMsg = new ControlWSMsg(
1517
         controlWs.ws,
1517
         controlWs.ws,
1518
         this.userInfo.adminid,
1518
         this.userInfo.adminid,
1527
         }
1527
         }
1528
       });
1528
       });
1529
       this.$refs.deviceTable.selectAll(false);
1529
       this.$refs.deviceTable.selectAll(false);
1530
-      // let form = {
1531
-      //   pushType: 4,
1532
-      //   pushObj: 1
1533
-      // };
1534
-      // form.userids = useridList;
1535
-      // this.addPushLog(form);
1530
+      let form = {
1531
+        pushType: 4,
1532
+        pushObj: 1
1533
+      };
1534
+      form.userids = useridList;
1535
+      this.addPushLog(form);
1536
     },
1536
     },
1537
     // 解除管控
1537
     // 解除管控
1538
-    controlRemovetDevice(snList) {
1538
+    controlRemovetDevice(snList, useridList) {
1539
       let controlWSMsg = new ControlWSMsg(
1539
       let controlWSMsg = new ControlWSMsg(
1540
         controlWs.ws,
1540
         controlWs.ws,
1541
         this.userInfo.adminid,
1541
         this.userInfo.adminid,
1550
         }
1550
         }
1551
       });
1551
       });
1552
       this.$refs.deviceTable.selectAll(false);
1552
       this.$refs.deviceTable.selectAll(false);
1553
-      // let form = {
1554
-      //   pushType: 4,
1555
-      //   pushObj: 1
1556
-      // };
1557
-      // form.userids = useridList;
1558
-      // this.addPushLog(form);
1553
+      let form = {
1554
+        pushType: 4,
1555
+        pushObj: 1
1556
+      };
1557
+      form.userids = useridList;
1558
+      this.addPushLog(form);
1559
     },
1559
     },
1560
     // 添加推送日志
1560
     // 添加推送日志
1561
     addPushLog(form) {
1561
     addPushLog(form) {

Loading…
Cancel
Save