Browse Source

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

gzb
wangzhonglu 9 months ago
parent
commit
846428213e

+ 25
- 0
src/utils/index.js View File

598
     endtime: _endtime
598
     endtime: _endtime
599
   };
599
   };
600
 };
600
 };
601
+/**
602
+ * 所有设备事件日志
603
+ */
601
 export const doEventInfo = {
604
 export const doEventInfo = {
602
   101: "更换SIM卡",
605
   101: "更换SIM卡",
603
   102: "违规开启蓝牙",
606
   102: "违规开启蓝牙",
612
   212: "卸载应用(卸载强制安装应用违规)",
615
   212: "卸载应用(卸载强制安装应用违规)",
613
   213: "启动应用"
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
 export const pushTypeInfo = {
634
 export const pushTypeInfo = {
616
   1: "发送消息",
635
   1: "发送消息",
617
   2: "解除限制",
636
   2: "解除限制",
620
   5: "重启设备",
639
   5: "重启设备",
621
   6: "恢复出厂"
640
   6: "恢复出厂"
622
 };
641
 };
642
+/**
643
+ * 所有设备功能
644
+ */
623
 export const padDeviceIcon = [
645
 export const padDeviceIcon = [
624
   {
646
   {
625
     pdtype: "摄像头",
647
     pdtype: "摄像头",
662
     icon: "ivu-icon iconfont icon-icon-OTG"
684
     icon: "ivu-icon iconfont icon-icon-OTG"
663
   }
685
   }
664
 ];
686
 ];
687
+/**
688
+ * 违规处理-违规事件
689
+ */
665
 export const padViolatesInfo = [
690
 export const padViolatesInfo = [
666
   {
691
   {
667
     title: "已ROOT",
692
     title: "已ROOT",

+ 3
- 3
src/views/regionSection/log/violatingDevice.vue View File

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

+ 3
- 3
src/views/schoolSection/log/violatingDevice.vue View File

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

Loading…
Cancel
Save