From 8b92f8cb5763eaf8a8a5d93a4690c923c2de1a85 Mon Sep 17 00:00:00 2001
From: chenyao <1219716595@qq.com>
Date: Thu, 03 Apr 2025 14:34:31 +0800
Subject: [PATCH] feat: 任务管理功能
---
src/views/SignMachineNest/components/MachineLeft/MachineLeft.vue | 22 +++++++++++++++++++++-
1 files changed, 21 insertions(+), 1 deletions(-)
diff --git a/src/views/SignMachineNest/components/MachineLeft/MachineLeft.vue b/src/views/SignMachineNest/components/MachineLeft/MachineLeft.vue
index 52adde4..9083755 100644
--- a/src/views/SignMachineNest/components/MachineLeft/MachineLeft.vue
+++ b/src/views/SignMachineNest/components/MachineLeft/MachineLeft.vue
@@ -3,7 +3,10 @@
<!--时间 天气-->
<common-weather></common-weather>
<!-- 机巢数据 -->
- <MachineData></MachineData>
+ <MachineData></MachineData>
+ <div class="do-return" @click="goBack">
+ <img src="@/assets/images/signMachineNest/return.png" alt="" />
+ </div>
<!--巡检任务详情-->
<InspectionRaskDetails></InspectionRaskDetails>
</div>
@@ -13,6 +16,13 @@
import CommonWeather from '@/components/CommonWeather.vue';
import MachineData from './MachineData.vue';
import InspectionRaskDetails from './InspectionRaskDetails.vue';
+import { useRouter } from 'vue-router';
+
+const router = useRouter();
+
+const goBack = () => {
+ router.push('/index');
+};
</script>
<style scoped lang="scss">
@@ -20,5 +30,15 @@
position: absolute;
top: 88px;
color: #e7f5ff;
+ .do-return {
+ position: absolute;
+ top: 56px;
+ right: -50px;
+ cursor: pointer;
+ img {
+ width: 40px;
+ height: 40px;
+ }
+ }
}
</style>
\ No newline at end of file
--
Gitblit v1.9.3