Browse Source

去除解除管控

wzl
wangzhonglu 1 day ago
parent
commit
ec63bb60bd

+ 3
- 3
public/config.js View File

@@ -23,12 +23,12 @@ window._config = window.isTest
23 23
       showImageUrl: "https://mcapi.xhkjedu.com/",
24 24
       downLoadUrl: "https://mcapitest.xhkjedu.com/",
25 25
       wsUrl: "wss://mcws.xhkjedu.com/ws",
26
-      axiosApiTimeout: 20, // 接口超时时间 单位秒
27
-      axiosFileTimeout: 30, // 上传文件超时时间 单位秒
26
+      axiosApiTimeout: 60, // 接口超时时间 单位秒
27
+      axiosFileTimeout: 120, // 上传文件超时时间 单位秒
28 28
       // 开发者
29 29
       developer: "河南星火燎原软件科技有限公司",
30 30
       // 联系我们
31 31
       contactUs: "https://www.xhkjedu.com/",
32 32
       versionname: "正式 v1.0.3",
33
-      secret: true
33
+      secret: false
34 34
     };

+ 2
- 2
src/router/school.js View File

@@ -207,7 +207,7 @@ export default {
207 207
         title: "疑似脱管设备"
208 208
       }
209 209
     },
210
-    {
210
+    /* {
211 211
       path: "removeControlDevice",
212 212
       component: () =>
213 213
         import("@/views/schoolSection/deviceManage/removeControlDevice.vue"),
@@ -217,7 +217,7 @@ export default {
217 217
         isAuth: true,
218 218
         title: "解除管控设备"
219 219
       }
220
-    },
220
+    }, */
221 221
     {
222 222
       path: "inLineDevice",
223 223
       component: () =>

+ 2
- 2
src/utils/ControlWSMsg.js View File

@@ -50,9 +50,9 @@ class ControlWSMsg {
50 50
     this.code = 2006;
51 51
   }
52 52
   // 解除管控
53
-  removeControl() {
53
+  /* removeControl() {
54 54
     this.code = 2007;
55
-  }
55
+  } */
56 56
   // 解除绑定
57 57
   removeBind() {
58 58
     this.code = 2008;

+ 1
- 1
src/utils/index.js View File

@@ -741,6 +741,6 @@ export const pushTypeInfo = {
741 741
   4: "更新策略",
742 742
   5: "重启设备",
743 743
   6: "恢复出厂",
744
-  7: "解除管控",
744
+  // 7: "解除管控",
745 745
   8: "解除绑定"
746 746
 };

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

@@ -39,7 +39,7 @@
39 39
             <DropdownItem name="5">锁定</DropdownItem>
40 40
             <DropdownItem name="6">更新策略</DropdownItem>
41 41
             <DropdownItem name="7">重启设备</DropdownItem>
42
-            <DropdownItem name="9">解除管控</DropdownItem>
42
+            <!-- <DropdownItem name="9">解除管控</DropdownItem> -->
43 43
             <DropdownItem name="8">合规处理</DropdownItem>
44 44
           </DropdownMenu>
45 45
         </Dropdown>
@@ -586,7 +586,8 @@ export default {
586 586
           return;
587 587
         }
588 588
         this.toLogHandle(snList);
589
-      } else if (name === "9") {
589
+      }
590
+      /*  else if (name === "9") {
590 591
         // 解除管控
591 592
         if (snList.length === 0) {
592 593
           this.$Message.error("请勾选至少一个设备。");
@@ -600,7 +601,7 @@ export default {
600 601
           },
601 602
           onCancel: () => {}
602 603
         });
603
-      }
604
+      } */
604 605
     },
605 606
     // 恢复出厂设置
606 607
     controlRestoreFactory(snList, useridList) {
@@ -755,7 +756,7 @@ export default {
755 756
       this.addPushLog(form);
756 757
     },
757 758
     // 解除管控
758
-    controlRemoveDevice(snList, useridList) {
759
+    /* controlRemoveDevice(snList, useridList) {
759 760
       let controlWSMsg = new ControlWSMsg(
760 761
         controlWs.ws,
761 762
         this.userInfo.adminid,
@@ -776,7 +777,7 @@ export default {
776 777
       };
777 778
       form.userids = useridList;
778 779
       this.addPushLog(form);
779
-    },
780
+    }, */
780 781
     // 添加推送日志
781 782
     addPushLog(form) {
782 783
       if (form.userids && form.userids.length === 0) {

+ 13
- 12
src/views/schoolSection/deviceManage/deviceManage.vue View File

@@ -79,7 +79,7 @@
79 79
               <DropdownItem name="5">锁定</DropdownItem>
80 80
               <DropdownItem name="6">更新策略</DropdownItem>
81 81
               <DropdownItem name="7">重启设备</DropdownItem>
82
-              <DropdownItem name="9">解除管控</DropdownItem>
82
+              <!-- <DropdownItem name="9">解除管控</DropdownItem> -->
83 83
               <DropdownItem name="10">解除绑定</DropdownItem>
84 84
             </DropdownMenu>
85 85
           </Dropdown>
@@ -1421,35 +1421,36 @@ export default {
1421 1421
           },
1422 1422
           onCancel: () => {}
1423 1423
         });
1424
-      } else if (name === "9") {
1425
-        // 解除管控
1424
+      } else if (name === "10") {
1425
+        // 解除绑定
1426 1426
         if (snList.length === 0) {
1427 1427
           this.$Message.error("请勾选至少一个设备。");
1428 1428
           return;
1429 1429
         }
1430 1430
         this.$Modal.confirm({
1431 1431
           title: "提示",
1432
-          content: "确定对所选设备进行解除管控操作吗?",
1432
+          content: "确定对所选设备进行解除绑定操作吗?",
1433 1433
           onOk: () => {
1434
-            this.controlRemoveDevice(snList, useridList);
1434
+            this.controlRemoveBind(snList, useridList);
1435 1435
           },
1436 1436
           onCancel: () => {}
1437 1437
         });
1438
-      } else if (name === "10") {
1439
-        // 解除绑定
1438
+      }
1439
+      /*  else if (name === "9") {
1440
+        // 解除管控
1440 1441
         if (snList.length === 0) {
1441 1442
           this.$Message.error("请勾选至少一个设备。");
1442 1443
           return;
1443 1444
         }
1444 1445
         this.$Modal.confirm({
1445 1446
           title: "提示",
1446
-          content: "确定对所选设备进行解除绑定操作吗?",
1447
+          content: "确定对所选设备进行解除管控操作吗?",
1447 1448
           onOk: () => {
1448
-            this.controlRemoveBind(snList, useridList);
1449
+            this.controlRemoveDevice(snList, useridList);
1449 1450
           },
1450 1451
           onCancel: () => {}
1451 1452
         });
1452
-      }
1453
+      } */
1453 1454
     },
1454 1455
     // 延时刷新
1455 1456
     delayedRefresh() {
@@ -1623,7 +1624,7 @@ export default {
1623 1624
       this.delayedRefresh();
1624 1625
     },
1625 1626
     // 解除管控
1626
-    controlRemoveDevice(snList, useridList) {
1627
+    /* controlRemoveDevice(snList, useridList) {
1627 1628
       let controlWSMsg = new ControlWSMsg(
1628 1629
         controlWs.ws,
1629 1630
         this.userInfo.adminid,
@@ -1645,7 +1646,7 @@ export default {
1645 1646
       form.userids = useridList;
1646 1647
       this.addPushLog(form);
1647 1648
       this.delayedRefresh();
1648
-    },
1649
+    }, */
1649 1650
     // 解除绑定
1650 1651
     controlRemoveBind(snList, useridList) {
1651 1652
       this.$refs.deviceTable.selectAll(false);

+ 3
- 3
src/views/schoolSection/index.vue View File

@@ -120,13 +120,13 @@
120 120
               class="drop_down_list_item"
121 121
               >疑似脱管设备</router-link
122 122
             >
123
-            <router-link
123
+            <!-- <router-link
124 124
               @click.native="routeDropdownChange()"
125 125
               tag="div"
126 126
               to="/school/removeControlDevice"
127 127
               class="drop_down_list_item"
128 128
               >解除管控设备</router-link
129
-            >
129
+            > -->
130 130
             <router-link
131 131
               @click.native="routeDropdownChange()"
132 132
               tag="div"
@@ -314,7 +314,7 @@ export default {
314 314
         this.$route.path.includes("/school/deviceManage") ||
315 315
         this.$route.path.includes("/school/breakRuleDevice") ||
316 316
         this.$route.path.includes("/school/outControlDevice") ||
317
-        this.$route.path.includes("/school/removeControlDevice") ||
317
+        // this.$route.path.includes("/school/removeControlDevice") ||
318 318
         this.$route.path.includes("/school/inLineDevice")
319 319
       );
320 320
     },

+ 2
- 2
src/views/schoolSection/userManage/userManage.vue View File

@@ -63,7 +63,7 @@
63 63
               >{{ item.title }}</Option
64 64
             >
65 65
           </Select>
66
-          <Select
66
+          <!-- <Select
67 67
             :transfer="true"
68 68
             v-model="searchForm.control"
69 69
             style="width: 140px; margin-right: 10px"
@@ -75,7 +75,7 @@
75 75
               :key="item.id"
76 76
               >{{ item.title }}</Option
77 77
             >
78
-          </Select>
78
+          </Select> -->
79 79
           <Input
80 80
             v-model="searchForm.username"
81 81
             placeholder="请输入姓名"

Loading…
Cancel
Save