From 90390d0752e9a956247a2e63ab1b044311243772 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=A3=E4=B8=87=E4=BF=8A?= Date: Thu, 30 Oct 2025 08:54:33 +0800 Subject: [PATCH] =?UTF-8?q?fix/=E6=96=B0=E5=A2=9E=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=EF=BC=8C=E6=A0=B7=E5=BC=8F=E6=95=B4=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/styles/index.scss | 4 ++++ src/views/Device/deviceControl.vue | 4 ++-- src/views/areaManage/area.vue | 4 ++-- src/views/areaManage/cabin.vue | 4 ++-- src/views/components/roomPage.vue | 15 +++++++++++++++ src/views/index.vue | 11 ++++++++--- src/views/operationManage/patrol.vue | 3 ++- src/views/plan.vue | 20 ++++++++++++++++---- src/views/system/user/index.vue | 4 ++-- 9 files changed, 53 insertions(+), 16 deletions(-) create mode 100644 src/views/components/roomPage.vue diff --git a/src/assets/styles/index.scss b/src/assets/styles/index.scss index c9b8d2c..1c63068 100644 --- a/src/assets/styles/index.scss +++ b/src/assets/styles/index.scss @@ -193,3 +193,7 @@ aside { margin-bottom: 10px; } } + +.margin0 { + margin: 0 !important; +} diff --git a/src/views/Device/deviceControl.vue b/src/views/Device/deviceControl.vue index b6e68ff..be30657 100644 --- a/src/views/Device/deviceControl.vue +++ b/src/views/Device/deviceControl.vue @@ -23,11 +23,11 @@ - + 新增 - 导入 + 导入 diff --git a/src/views/areaManage/area.vue b/src/views/areaManage/area.vue index 19052b3..457881c 100644 --- a/src/views/areaManage/area.vue +++ b/src/views/areaManage/area.vue @@ -14,8 +14,8 @@ 查询 - - 新增 + + 新增 diff --git a/src/views/areaManage/cabin.vue b/src/views/areaManage/cabin.vue index 1c2936e..e024e88 100644 --- a/src/views/areaManage/cabin.vue +++ b/src/views/areaManage/cabin.vue @@ -28,8 +28,8 @@ 查询 - - 新增 + + 新增 diff --git a/src/views/components/roomPage.vue b/src/views/components/roomPage.vue new file mode 100644 index 0000000..ac6d31e --- /dev/null +++ b/src/views/components/roomPage.vue @@ -0,0 +1,15 @@ + + + + \ No newline at end of file diff --git a/src/views/index.vue b/src/views/index.vue index e7900e0..0cba4ad 100644 --- a/src/views/index.vue +++ b/src/views/index.vue @@ -88,7 +88,7 @@ -
+
@@ -118,7 +118,7 @@
-
+
@@ -599,7 +599,12 @@ onBeforeUnmount(() => { .video-monitor-card { height: calc(100% - 404px); } - +::v-deep .el-card__body { + height: calc(100% - 44px); +} +::v-deep .power-trend-card .el-card__body { + height: calc(100% - 80px); +} ::v-deep .video-monitor-card .el-card__body { height: calc(100% - 44px); } diff --git a/src/views/operationManage/patrol.vue b/src/views/operationManage/patrol.vue index 68e69e2..d2bfa0e 100644 --- a/src/views/operationManage/patrol.vue +++ b/src/views/operationManage/patrol.vue @@ -42,10 +42,11 @@ 导出 - + 新增巡检 diff --git a/src/views/plan.vue b/src/views/plan.vue index 6184b50..a1fc08d 100644 --- a/src/views/plan.vue +++ b/src/views/plan.vue @@ -138,6 +138,9 @@ :modelValue="tableModelValue" @update:modelValue="updateTableModelValue" > + + +
@@ -159,6 +162,7 @@ import typesDictionary from "../utils/equipmentType"; //设备类型字典 import videoEle from "./components/videoEle.vue"; import tableEle from "./components/tableEle.vue"; import * as echarts from "echarts"; +import roomPage from "./components/roomPage.vue"; const tableModelValue = ref(false); // 新增:底层背景Canvas引用 @@ -171,6 +175,8 @@ const bgCtx = ref(null); const ctx = ref(null); const img = new Image(); +const roomInfo = ref({}); + let _typesDictionary = reactive(typesDictionary); // 恢复points定义 - 点标记数据 设备数据 @@ -960,7 +966,6 @@ const animate = () => { // 鼠标移动处理(保持不变,只影响上层Canvas) let mouseMoveTimeout = null; -const MOUSE_MOVE_DELAY = 16; const onMouseMove = (e) => { if (!BL.value) return; if (dragging.value === null) { @@ -1121,15 +1126,22 @@ const startDrag = (e) => { }; const mouseUp = () => { - endDrag(); + console.log('mouseUp'); + endDrag(1); updateProgress(); }; const mouseLeave = () => { - endDrag(); + console.log('mouseLeave'); + endDrag(2); }; -const endDrag = () => { +const endDrag = (type) => { + + if(type == 1 && dragging.value == "point") { + // 拖拽图标结束时 可以调用接口上传坐标信息 + console.log(currentPoint,"=====> currentPoint"); + } dragging.value = null; handleMouseOut(); getCurrentArea(); diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue index 1aed07c..1bfc383 100644 --- a/src/views/system/user/index.vue +++ b/src/views/system/user/index.vue @@ -16,8 +16,8 @@ 查询 - - 新增 + + 新增