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" >