forked from drone/command-center-dashboard

张含笑
2025-04-12 bb9b31d8abc6578fa451cc545658115d0da4ff50
feat: 更换返回按钮
2 files modified
21 ■■■■ changed files
src/components/CommonTitle.vue 15 ●●●●● patch | view | raw | blame | history
src/views/SignMachineNest/MachineLeft/MachineLeft.vue 6 ●●●● patch | view | raw | blame | history
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>
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;
    }
  }
}