From bf683fda7b902086920e635ca3566755229e86aa Mon Sep 17 00:00:00 2001 From: lhy <1424913779@qq.com> Date: Thu, 26 Jun 2025 11:00:14 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=9A=82=E5=81=9C?= =?UTF-8?q?=E8=BD=A6=E8=BE=86=E5=8A=9F=E8=83=BD=EF=BC=8C=E7=BC=96=E8=BE=91?= =?UTF-8?q?=E8=B7=AF=E7=BA=BF=E4=BF=AE=E6=94=B9=EF=BC=8C=E8=BD=A6=E8=BE=86?= =?UTF-8?q?=E7=8A=B6=E6=80=81=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/car/index.ts | 4 + src/views/board/carBoard/createEditDialog.vue | 12 +- src/views/board/carBoard/index.vue | 119 ++++++++++++++---- .../components-tool/editMapRouteDialog.vue | 32 +++-- 4 files changed, 134 insertions(+), 33 deletions(-) diff --git a/src/api/car/index.ts b/src/api/car/index.ts index a1100d59..1a7cfc45 100644 --- a/src/api/car/index.ts +++ b/src/api/car/index.ts @@ -70,3 +70,7 @@ export const cleanTrafficManagement = async (data) => { export const doTaskContinue = async (data) => { return await request.post({ url: `/system/robot/information/doTaskContinue?robotNo=${data.robotNo}`, data }) } +// 暂停车辆 +export const stopCar = async (data) => { + return await request.post({ url: `/system/robot/information/stopRobot?robotNo=${data.robotNo}`, data }) +} diff --git a/src/views/board/carBoard/createEditDialog.vue b/src/views/board/carBoard/createEditDialog.vue index 5c64638f..626f0c04 100644 --- a/src/views/board/carBoard/createEditDialog.vue +++ b/src/views/board/carBoard/createEditDialog.vue @@ -48,8 +48,8 @@ - - + + @@ -463,6 +463,7 @@ const resetForm = () => { ::v-deep .el-dialog { padding: 0 !important; } + ::v-deep .el-dialog__header { border-bottom: 1px solid #e8e8e8 !important; } @@ -487,6 +488,7 @@ const resetForm = () => { width: 30px; animation: loading-rotate 2s linear infinite; } + .path { animation: loading-dash 1.5s ease-in-out infinite; stroke-dasharray: 90, 150; @@ -501,20 +503,24 @@ const resetForm = () => { transform: rotate(360deg); } } + @keyframes loading-dash { 0% { stroke-dasharray: 1, 200; stroke-dashoffset: 0; } + 50% { stroke-dasharray: 90, 150; stroke-dashoffset: -40px; } + 100% { stroke-dasharray: 90, 150; stroke-dashoffset: -120px; } } + @keyframes custom-spin-move { to { opacity: 1; @@ -522,7 +528,7 @@ const resetForm = () => { } .camera-item { - box-shadow: rgba(0, 0, 0, 0.03) 0px 0px 0px 1px; + box-shadow: rgb(0 0 0 / 3%) 0 0 0 1px; padding: 16px 8px 0 0; border-radius: 6px; margin-bottom: 20px; diff --git a/src/views/board/carBoard/index.vue b/src/views/board/carBoard/index.vue index 3deb30db..cf448a80 100644 --- a/src/views/board/carBoard/index.vue +++ b/src/views/board/carBoard/index.vue @@ -68,7 +68,7 @@
离线
@@ -152,10 +152,17 @@ >清除交管 恢复任务 + 暂停车辆 @@ -173,7 +180,7 @@ v-if="item.robotCodeLevel == 1" >