1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
| import {onMounted, ref} from "vue";
|
| import cameraAlarm from "@/views/user/js/cameraAlarm";
|
| const dangerActModule = ()=>{
| const dangerList = ref([
| {
| name: '吸烟',
| time: '2023-09-30 23:55:00',
| icon: 'iconfont-xiyan',
| type: 'warning',
| },
| {
| name: '打电话',
| time: '2023-09-30 23:55:00',
| icon: 'iconfont-call',
| type: '',
| },
| {
| name: '疲劳驾驶',
| time: '2023-09-30 23:55:00',
| icon: 'iconfont-fatigue-driving',
| type: 'danger',
| },
| {
| name: '喝水',
| time: '2023-09-30 23:55:00',
| icon: 'iconfont-shipin',
| type: 'warning',
| },
| {
| name: '发语音',
| time: '2023-09-30 23:55:00',
| icon: 'iconfont-yuyin',
| type: '',
| },
| ]);
|
| const {
| searchLastAlarmList
| } = cameraAlarm();
|
| const setLastAlarm = async ()=> {
| dangerList.value = await searchLastAlarmList();
| console.log(dangerList.value)
| }
|
| return {
| dangerList,
| setLastAlarm
| };
| }
|
| export default dangerActModule;
|
|