<!-- Description: 设备运维-保存成功 Author: 李亚光 Date: 2024-01-08 --> <script lang="ts" setup name="H5DeviceOperationSuccess"> const $route = useRoute() const detailInfo = ref<any>({}) detailInfo.value = JSON.parse($route.query.row as string) // 返回首页 const $router = useRouter() const backHome = () => { $router.replace({ name: 'Home' }) } </script> <template> <div class="container"> <div class="header"> <div class="icon"></div> <div class="tips">设备运维成功</div> </div> <div class="info-container"> <!-- 基本信息 --> <div id="base-info" class="search-info"> <div class="cell"> <div class="title">运维类型</div> <div class="value">{{ detailInfo.repairTypeName }}</div> </div> <div class="cell"> <div class="title">设备编号</div> <div class="value">{{ detailInfo.devcode }}</div> </div> <div class="cell"> <div class="title">安装位置</div> <div class="value">{{ detailInfo.ledgerNumber }}</div> </div> <div class="cell"> <div class="title">详细位置</div> <!-- @click="viewLocation" --> <div class="value">{{ detailInfo.position }} <!-- <span class="location"></span> --> </div> </div> <div class="cell"> <div class="title">运维日期</div> <div class="value">{{ detailInfo.repairTime }}</div> </div> <div class="cell"> <div class="title">运维人员</div> <div class="value">{{ detailInfo.repairPerson }}</div> </div> <div class="cell"> <div class="title">运维内容</div> <div class="value">{{ detailInfo.repairContent }}</div> </div> </div> </div> <div class="export-btn"> <el-button type="primary" style="width: 96%;" @click="backHome">返回首页</el-button> </div> </div> </template> <style lang="scss" scoped> .header { display: flex; justify-content: center; align-items: center; margin-top: 10px; .icon { background: url("@/assets/images/success.png") no-repeat center center / cover; width: 45px; height: 45px; } .tips { font-size: 20px; font-weight: 400; margin-left: 10px; } } .info-container { width: 100%; height: calc(100vh - 40px); overflow: hidden; color: #444; .search-info { background-color: #fff; width: 96%; margin: 0 auto; margin-top: 1vh; border-radius: 6px; padding: 4px; padding-top: 0.8rem; padding-bottom: 0.8rem; padding-left: 0.8rem; font-size: 1.1rem; .cell { display: flex; justify-content: space-between; padding-top: 6px; padding-bottom: 6px; padding-right: 14px; align-items: center; .value { color: #888; width: 80%; text-align: right; font-size: 1rem; vertical-align: middle; // display: flex; // flex-direction: column; // justify-content: center; display: flex; align-items: center; justify-content: flex-end; .location { display: inline-block; width: 22px; height: 22px; background: url('@/assets/icons/icon-location.svg') no-repeat center center / cover; vertical-align: middle; margin-left: 8px; } } .title { width: 20%; white-space: nowrap; font-weight: 500; } // .title, // .value { // white-space: nowrap; // overflow: hidden; // text-overflow: ellipsis; // } } } .search-result { background-color: #fff; width: 96%; margin: 0 auto; margin-top: 1vh; border-radius: 6px; padding: 4px; padding-left: 0.6rem; .title { display: flex; font-size: 1.1rem; .symbol { width: 4px; height: 22px; background-color: #0d76d4; border-radius: 4px; margin-right: 8px; } } .top-border { border-top: 1px solid #e4e7ed; // margin-top: 8px; } .result-item { .cell { display: flex; justify-content: space-between; padding-top: 6px; padding-bottom: 6px; padding-right: 18px; align-items: center; .value { color: #888; width: 80%; text-align: right; font-size: 1rem; vertical-align: middle; // display: flex; // flex-direction: column; // justify-content: center; display: flex; align-items: center; justify-content: flex-end; } .title { width: 20%; white-space: nowrap; } } } } } .export-btn { width: 100%; position: fixed; bottom: 0; display: flex; justify-content: center; ::v-deep(.el-button) { font-size: 18px; } } </style>