|
|
|
@ -3,7 +3,7 @@ import axios from "axios";
|
|
|
|
|
import { onMounted, ref } from "vue";
|
|
|
|
|
import dplayer from "@/components/VideoPlayer/MyPlayer.vue";
|
|
|
|
|
import OurPlayer from "@/components/VideoPlayer/OurPlayer.vue";
|
|
|
|
|
import { ElMessageBox } from "element-plus";
|
|
|
|
|
import { ElMessageBox, ElMessage } from "element-plus";
|
|
|
|
|
import { getConfig } from "@/config";
|
|
|
|
|
import { getToken, formatToken } from "@/utils/auth";
|
|
|
|
|
|
|
|
|
@ -90,7 +90,10 @@ function onSearch() {
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
.catch(error => {
|
|
|
|
|
// console.log("请求失败");
|
|
|
|
|
ElMessage({
|
|
|
|
|
message: "网络暂不通畅",
|
|
|
|
|
type: "warning"
|
|
|
|
|
})
|
|
|
|
|
console.log(error);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
@ -138,7 +141,10 @@ function getEvents() {
|
|
|
|
|
// console.log(eventMap.value);
|
|
|
|
|
})
|
|
|
|
|
.catch(error => {
|
|
|
|
|
// console.log("请求失败");
|
|
|
|
|
ElMessage({
|
|
|
|
|
message: "网络暂不通畅",
|
|
|
|
|
type: "warning"
|
|
|
|
|
})
|
|
|
|
|
console.log(error);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
@ -224,11 +230,11 @@ onMounted(() => {
|
|
|
|
|
<el-table-column prop="record_time" sortable label="记录仪日期时间" />
|
|
|
|
|
<el-table-column prop="police_id" label="警号" />
|
|
|
|
|
<el-table-column prop="event_type" label="违法行为">
|
|
|
|
|
<template v-slot="scope">
|
|
|
|
|
<span>
|
|
|
|
|
{{ scope.row.event_type || "未定义事件" }}
|
|
|
|
|
</span>
|
|
|
|
|
</template>
|
|
|
|
|
<!-- <template v-slot="scope">-->
|
|
|
|
|
<!-- <span>-->
|
|
|
|
|
<!-- {{ scope.row.event_type || "未定义事件" }}-->
|
|
|
|
|
<!-- </span>-->
|
|
|
|
|
<!-- </template>-->
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
|
<el-table-column prop="is_violation" label="是否违规">
|
|
|
|
|