Pārlūkot izejas kodu

设备事件、违规设备日志搜索事件优化

gzb
wangzhonglu pirms 9 mēnešiem
vecāks
revīzija
846428213e

+ 25
- 0
src/utils/index.js Parādīt failu

@@ -598,6 +598,9 @@ export const dateRangeToSecond = ([beginDate, endDate]) => {
598 598
     endtime: _endtime
599 599
   };
600 600
 };
601
+/**
602
+ * 所有设备事件日志
603
+ */
601 604
 export const doEventInfo = {
602 605
   101: "更换SIM卡",
603 606
   102: "违规开启蓝牙",
@@ -612,6 +615,22 @@ export const doEventInfo = {
612 615
   212: "卸载应用(卸载强制安装应用违规)",
613 616
   213: "启动应用"
614 617
 };
618
+/**
619
+ * 所有违规设备事件日志
620
+ */
621
+export const breakRuleDoEvent = {
622
+  101: "更换SIM卡",
623
+  102: "违规开启蓝牙",
624
+  103: "USB连接电脑",
625
+  104: "USB拔出电脑",
626
+  105: "插入SD卡",
627
+  106: "拔出SD卡",
628
+  211: "安装应用(安装了非应用商店应用违规)",
629
+  212: "卸载应用(卸载强制安装应用违规)"
630
+};
631
+/**
632
+ * 所有设备推送类型
633
+ */
615 634
 export const pushTypeInfo = {
616 635
   1: "发送消息",
617 636
   2: "解除限制",
@@ -620,6 +639,9 @@ export const pushTypeInfo = {
620 639
   5: "重启设备",
621 640
   6: "恢复出厂"
622 641
 };
642
+/**
643
+ * 所有设备功能
644
+ */
623 645
 export const padDeviceIcon = [
624 646
   {
625 647
     pdtype: "摄像头",
@@ -662,6 +684,9 @@ export const padDeviceIcon = [
662 684
     icon: "ivu-icon iconfont icon-icon-OTG"
663 685
   }
664 686
 ];
687
+/**
688
+ * 违规处理-违规事件
689
+ */
665 690
 export const padViolatesInfo = [
666 691
   {
667 692
     title: "已ROOT",

+ 3
- 3
src/views/regionSection/log/violatingDevice.vue Parādīt failu

@@ -21,7 +21,7 @@
21 21
         >
22 22
           <Option :value="0">所有事件</Option>
23 23
           <Option
24
-            v-for="(eventName, eventVal) in doEventInfo"
24
+            v-for="(eventName, eventVal) in breakRuleDoEvent"
25 25
             :value="Number(eventVal)"
26 26
             :key="eventVal"
27 27
             >{{ eventName }}</Option
@@ -42,7 +42,6 @@
42 42
     <div class="table_wrap">
43 43
       <Table :columns="columns" :data="searchForm.list">
44 44
         <template slot-scope="{ row }" slot="doEventSlot">
45
-          <!-- 1发送消息 2解除限制 3限制使用 4更新策略 5重启设备 6恢复出厂 -->
46 45
           <div>{{ doEventInfo[row.doEvent] }}</div>
47 46
         </template>
48 47
         <template slot-scope="{ row }" slot="noticedSlot">
@@ -103,7 +102,7 @@
103 102
 </template>
104 103
 
105 104
 <script>
106
-import { dateFormat, doEventInfo } from "@/utils";
105
+import { dateFormat, doEventInfo, breakRuleDoEvent } from "@/utils";
107 106
 import {
108 107
   logdoperate_list_violate,
109 108
   logdoperate_list_violate_all
@@ -114,6 +113,7 @@ export default {
114 113
     return {
115 114
       showLoading: false,
116 115
       doEventInfo,
116
+      breakRuleDoEvent,
117 117
       searchForm: {
118 118
         dataRange: [],
119 119
         doEvent: 0,

+ 3
- 3
src/views/schoolSection/log/violatingDevice.vue Parādīt failu

@@ -21,7 +21,7 @@
21 21
         >
22 22
           <Option :value="0">所有事件</Option>
23 23
           <Option
24
-            v-for="(eventName, eventVal) in doEventInfo"
24
+            v-for="(eventName, eventVal) in breakRuleDoEvent"
25 25
             :value="Number(eventVal)"
26 26
             :key="eventVal"
27 27
             >{{ eventName }}</Option
@@ -42,7 +42,6 @@
42 42
     <div class="table_wrap">
43 43
       <Table :columns="columns" :data="searchForm.list">
44 44
         <template slot-scope="{ row }" slot="doEventSlot">
45
-          <!-- 1发送消息 2解除限制 3限制使用 4更新策略 5重启设备 6恢复出厂 -->
46 45
           <div>{{ doEventInfo[row.doEvent] }}</div>
47 46
         </template>
48 47
         <template slot-scope="{ row }" slot="noticedSlot">
@@ -99,7 +98,7 @@
99 98
 </template>
100 99
 
101 100
 <script>
102
-import { dateFormat, doEventInfo } from "@/utils";
101
+import { dateFormat, doEventInfo, breakRuleDoEvent } from "@/utils";
103 102
 import { exportToExcel } from "@/utils/exportToExcel";
104 103
 import {
105 104
   logdoperate_list_violate,
@@ -109,6 +108,7 @@ export default {
109 108
   data() {
110 109
     return {
111 110
       doEventInfo,
111
+      breakRuleDoEvent,
112 112
       searchForm: {
113 113
         dataRange: [],
114 114
         doEvent: 0,

Notiek ielāde…
Atcelt
Saglabāt