From bb9b31d8abc6578fa451cc545658115d0da4ff50 Mon Sep 17 00:00:00 2001
From: 张含笑 <zhx18749296735@163.com>
Date: Sat, 12 Apr 2025 13:36:09 +0800
Subject: [PATCH] feat: 更换返回按钮
---
src/views/SignMachineNest/MachineLeft/MachineLeft.vue | 6 +++---
src/components/CommonTitle.vue | 15 ++++++++++++++-
2 files changed, 17 insertions(+), 4 deletions(-)
diff --git a/src/components/CommonTitle.vue b/src/components/CommonTitle.vue
index efe77c2..48993f5 100644
--- a/src/components/CommonTitle.vue
+++ b/src/components/CommonTitle.vue
@@ -3,7 +3,10 @@
<div class="left">
{{ title }}
</div>
- <div class="right" v-if="show" @click="attrs.onDetails()">{{ text }} ></div>
+ <div class="right" v-if="show && text!=='返回'" @click="attrs.onDetails()">{{ text }} ></div>
+ <div v-if="title=='机巢概况' && text=='返回'" class="do-return" @click="attrs.onDetails()">
+ <img src="@/assets/images/return.png" alt="" />
+ </div>
</div>
</template>
<script setup>
@@ -62,5 +65,15 @@
right: 11px;
cursor: pointer;
}
+ .do-return {
+ position: absolute;
+ top: 50px;
+ right: -50px;
+ cursor: pointer;
+ img {
+ width: 60px;
+ height: 33px;
+ }
+ }
}
</style>
diff --git a/src/views/SignMachineNest/MachineLeft/MachineLeft.vue b/src/views/SignMachineNest/MachineLeft/MachineLeft.vue
index 1b6e110..08fa7b8 100644
--- a/src/views/SignMachineNest/MachineLeft/MachineLeft.vue
+++ b/src/views/SignMachineNest/MachineLeft/MachineLeft.vue
@@ -5,7 +5,7 @@
<!-- 机巢数据 -->
<MachineData></MachineData>
<div class="do-return" @click="goBack">
- <img src="../../../assets/images/signMachineNest/return.png" alt="" />
+ <img src="../../../assets/images/return.png" alt="" />
</div>
<!--巡检任务详情-->
<InspectionRaskDetails></InspectionRaskDetails>
@@ -39,8 +39,8 @@
right: -50px;
cursor: pointer;
img {
- width: 40px;
- height: 40px;
+ width: 60px;
+ height: 33px;
}
}
}
--
Gitblit v1.9.3