|
@@ -64,12 +64,12 @@
|
|
|
<a-descriptions-item label="摄像头名称">{{eventState?.Data.CameraDescribe}}</a-descriptions-item>
|
|
<a-descriptions-item label="摄像头名称">{{eventState?.Data.CameraDescribe}}</a-descriptions-item>
|
|
|
<a-descriptions-item label="任务名称">{{eventState?.Data.TaskName}}</a-descriptions-item>
|
|
<a-descriptions-item label="任务名称">{{eventState?.Data.TaskName}}</a-descriptions-item>
|
|
|
<a-descriptions-item :span="2" label="记录类型">{{eventState?.Data.RecordType}}</a-descriptions-item>
|
|
<a-descriptions-item :span="2" label="记录类型">{{eventState?.Data.RecordType}}</a-descriptions-item>
|
|
|
- <a-descriptions-item label="进入数量">{{eventState?.Data.warnIN}}</a-descriptions-item>
|
|
|
|
|
- <a-descriptions-item label="离开数量">{{eventState?.Data.warnOUT}}</a-descriptions-item>
|
|
|
|
|
|
|
+ <a-descriptions-item label="进入数量">{{eventState?.Data.WarnIN}}</a-descriptions-item>
|
|
|
|
|
+ <a-descriptions-item label="离开数量">{{eventState?.Data.WarnOUT}}</a-descriptions-item>
|
|
|
<a-descriptions-item label="触发时间">{{eventState?.Data.TriggerTime}}</a-descriptions-item>
|
|
<a-descriptions-item label="触发时间">{{eventState?.Data.TriggerTime}}</a-descriptions-item>
|
|
|
<a-descriptions-item label="保存时间">{{dayjs(eventState?.saveTs).format('YYYY/MM/DD HH:MM:ss')}}</a-descriptions-item>
|
|
<a-descriptions-item label="保存时间">{{dayjs(eventState?.saveTs).format('YYYY/MM/DD HH:MM:ss')}}</a-descriptions-item>
|
|
|
- <a-descriptions-item label="告警图片"><a-image style="width: 100px;" :src="eventState?.Data.WarnPic" ></a-image></a-descriptions-item>
|
|
|
|
|
- <a-descriptions-item label="bkg图片"><a-image style="width: 100px;" :src="eventState?.Data.BkgPic" ></a-image></a-descriptions-item>
|
|
|
|
|
|
|
+ <a-descriptions-item label="告警图片"><a-image style="width: 100px;" :src="warnOssUrl+eventState?.Data.imgAddr" ></a-image></a-descriptions-item>
|
|
|
|
|
+ <a-descriptions-item label="告警视频"><video controls style="width: 100px;" :src="warnOssUrl+eventState?.Data.videoAddr" ></video></a-descriptions-item>
|
|
|
</a-descriptions>
|
|
</a-descriptions>
|
|
|
</modal-pro>
|
|
</modal-pro>
|
|
|
|
|
|
|
@@ -78,7 +78,7 @@
|
|
|
import { AiboxController, SpaceController } from '@/controller'
|
|
import { AiboxController, SpaceController } from '@/controller'
|
|
|
import { SelectTsx, InputTsx } from '@/components/MicroComponents'
|
|
import { SelectTsx, InputTsx } from '@/components/MicroComponents'
|
|
|
import dayjs from 'dayjs'
|
|
import dayjs from 'dayjs'
|
|
|
-import { ref, watch } from 'vue'
|
|
|
|
|
|
|
+import { onMounted, ref, watch } from 'vue'
|
|
|
|
|
|
|
|
const columns = [
|
|
const columns = [
|
|
|
{
|
|
{
|
|
@@ -123,6 +123,8 @@ const serviceParams = ref({
|
|
|
|
|
|
|
|
const eventState = ref<CVS.AiBox.Event>()
|
|
const eventState = ref<CVS.AiBox.Event>()
|
|
|
|
|
|
|
|
|
|
+const warnOssUrl = ref<String>('')
|
|
|
|
|
+
|
|
|
watch(
|
|
watch(
|
|
|
() => times.value,
|
|
() => times.value,
|
|
|
() => {
|
|
() => {
|
|
@@ -140,6 +142,14 @@ const search = () => {
|
|
|
tableProDom.value.reload()
|
|
tableProDom.value.reload()
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+onMounted(() => {
|
|
|
|
|
+ initWarnOssUrl()
|
|
|
|
|
+})
|
|
|
|
|
+
|
|
|
|
|
+const initWarnOssUrl = async () => {
|
|
|
|
|
+ warnOssUrl.value = await AiboxController.warnOssUrl()
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
</script>
|
|
</script>
|
|
|
<style lang='less' scoped >
|
|
<style lang='less' scoped >
|
|
|
</style>
|
|
</style>
|