diff --git a/src/views/equipmentList/list.vue b/src/views/equipmentList/list.vue
index 8ff8c68..480563e 100644
--- a/src/views/equipmentList/list.vue
+++ b/src/views/equipmentList/list.vue
@@ -99,6 +99,18 @@
+
+
+
+
+ 实时监控-北门出入门监控
+ 绘制区域
+
+
+
+
+
+
@@ -125,6 +137,13 @@ const dialog = reactive({
visible: false,
title: ''
});
+const dialog1 = reactive({
+ visible: false,
+ title: ''
+});
+
+const monitorVideoUrl = 'http://192.168.0.214:8088/5a0db047943df198aff98b650ac9e001.mp4';
+const monitorVideoRef = ref();
const initFormData = {
id: undefined,
@@ -245,8 +264,18 @@ const handleActivate = async (row?: any) => {
};
/* 查看监控 */
-const handleSee = (row?: any) => {
- alert('查看监控');
+const handleSee = async (row?: any) => {
+ reset();
+ const _id = row?.id || ids.value[0];
+ const res = await getDeviceInfo(_id);
+ Object.assign(form.value, res.data);
+ dialog1.visible = true;
+ dialog1.title = '修改设备';
+};
+const handleMonitorDialogClose = (done: () => void) => {
+ monitorVideoRef.value?.pause();
+ monitorVideoRef.value && (monitorVideoRef.value.currentTime = 0);
+ done();
};
/** 删除按钮操作 */
@@ -273,3 +302,48 @@ onMounted(() => {
getList();
});
+
+