Browse Source

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

gzb
wangzhonglu 8 months ago
parent
commit
6535463067

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

@@ -241,7 +241,7 @@ export default {
241 241
           align: "center"
242 242
         },
243 243
         {
244
-          title: "违规详情",
244
+          title: "违规数量",
245 245
           key: "num",
246 246
           align: "center"
247 247
         },
@@ -539,14 +539,14 @@ export default {
539 539
           title: "提示",
540 540
           content: "确定对所选设备进行解除管控操作吗?",
541 541
           onOk: () => {
542
-            this.controlRemovetDevice(snList, useridList);
542
+            this.controlRemoveDevice(snList, useridList);
543 543
           },
544 544
           onCancel: () => {}
545 545
         });
546 546
       }
547 547
     },
548 548
     // 恢复出厂设置
549
-    controlRestoreFactory(snList) {
549
+    controlRestoreFactory(snList, useridList) {
550 550
       let controlWSMsg = new ControlWSMsg(
551 551
         controlWs.ws,
552 552
         this.userInfo.adminid,
@@ -561,12 +561,12 @@ export default {
561 561
         }
562 562
       });
563 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 572
     controlSendMessage() {
@@ -606,7 +606,7 @@ export default {
606 606
       });
607 607
     },
608 608
     // 解除锁定
609
-    controlRemoveLimit(snList) {
609
+    controlRemoveLimit(snList, useridList) {
610 610
       let controlWSMsg = new ControlWSMsg(
611 611
         controlWs.ws,
612 612
         this.userInfo.adminid,
@@ -621,15 +621,15 @@ export default {
621 621
         }
622 622
       });
623 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 633
       let controlWSMsg = new ControlWSMsg(
634 634
         controlWs.ws,
635 635
         this.userInfo.adminid,
@@ -644,15 +644,15 @@ export default {
644 644
         }
645 645
       });
646 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 656
       let controlWSMsg = new ControlWSMsg(
657 657
         controlWs.ws,
658 658
         this.userInfo.adminid,
@@ -667,15 +667,15 @@ export default {
667 667
         }
668 668
       });
669 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 679
       let controlWSMsg = new ControlWSMsg(
680 680
         controlWs.ws,
681 681
         this.userInfo.adminid,
@@ -690,15 +690,15 @@ export default {
690 690
         }
691 691
       });
692 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 702
       let controlWSMsg = new ControlWSMsg(
703 703
         controlWs.ws,
704 704
         this.userInfo.adminid,
@@ -713,12 +713,12 @@ export default {
713 713
         }
714 714
       });
715 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 724
     addPushLog(form) {

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

@@ -1379,7 +1379,7 @@ export default {
1379 1379
       }
1380 1380
     },
1381 1381
     // 恢复出厂设置
1382
-    controlRestoreFactory(snList) {
1382
+    controlRestoreFactory(snList, useridList) {
1383 1383
       let controlWSMsg = new ControlWSMsg(
1384 1384
         controlWs.ws,
1385 1385
         this.userInfo.adminid,
@@ -1394,12 +1394,12 @@ export default {
1394 1394
         }
1395 1395
       });
1396 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 1405
     controlSendMessage() {
@@ -1443,7 +1443,7 @@ export default {
1443 1443
       });
1444 1444
     },
1445 1445
     // 解除锁定
1446
-    controlRemoveLimit(snList) {
1446
+    controlRemoveLimit(snList, useridList) {
1447 1447
       let controlWSMsg = new ControlWSMsg(
1448 1448
         controlWs.ws,
1449 1449
         this.userInfo.adminid,
@@ -1458,15 +1458,15 @@ export default {
1458 1458
         }
1459 1459
       });
1460 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 1470
       let controlWSMsg = new ControlWSMsg(
1471 1471
         controlWs.ws,
1472 1472
         this.userInfo.adminid,
@@ -1481,15 +1481,15 @@ export default {
1481 1481
         }
1482 1482
       });
1483 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 1493
       let controlWSMsg = new ControlWSMsg(
1494 1494
         controlWs.ws,
1495 1495
         this.userInfo.adminid,
@@ -1504,15 +1504,15 @@ export default {
1504 1504
         }
1505 1505
       });
1506 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 1516
       let controlWSMsg = new ControlWSMsg(
1517 1517
         controlWs.ws,
1518 1518
         this.userInfo.adminid,
@@ -1527,15 +1527,15 @@ export default {
1527 1527
         }
1528 1528
       });
1529 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 1539
       let controlWSMsg = new ControlWSMsg(
1540 1540
         controlWs.ws,
1541 1541
         this.userInfo.adminid,
@@ -1550,12 +1550,12 @@ export default {
1550 1550
         }
1551 1551
       });
1552 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 1561
     addPushLog(form) {

Loading…
Cancel
Save