|
@@ -1,11 +1,283 @@
|
|
|
+<!--油机详情页面-->
|
|
|
+<template>
|
|
|
+ <div class="layout-pd">
|
|
|
+ <el-row>
|
|
|
+ <el-col :xs="24">
|
|
|
+ <el-card class="mt8" header="基础信息" shadow="hover">
|
|
|
+ <div class="basicInformation" v-loading="basicInfo.loading">
|
|
|
+ <div class="basicInformation-left">
|
|
|
+ <div class="item ">
|
|
|
+ <el-popover
|
|
|
+ placement="top-start"
|
|
|
+ :width="200"
|
|
|
+ title="油机号"
|
|
|
+ trigger="hover"
|
|
|
+ :content="basicInfo.info.oilEngineNumber"
|
|
|
+ >
|
|
|
+ <template #reference>
|
|
|
+ <span class="m-2"> 油机号: {{basicInfo.info.oilEngineNumber}}</span>
|
|
|
+ </template>
|
|
|
+ </el-popover>
|
|
|
+ </div>
|
|
|
+ <div class="item">
|
|
|
+ <el-popover
|
|
|
+ placement="top-start"
|
|
|
+ :width="200"
|
|
|
+ title="序列号"
|
|
|
+ trigger="hover"
|
|
|
+ :content="basicInfo.info.serialNumber"
|
|
|
+ >
|
|
|
+ <template #reference>
|
|
|
+ <span class="m-2"> 序列号: {{basicInfo.info.serialNumber}}</span>
|
|
|
+ </template>
|
|
|
+ </el-popover>
|
|
|
+ </div>
|
|
|
+ <div class="item">
|
|
|
+ <el-popover
|
|
|
+ placement="top-start"
|
|
|
+ :width="200"
|
|
|
+ title="石油公司"
|
|
|
+ trigger="hover"
|
|
|
+ :content="basicInfo.info.oilCompanies"
|
|
|
+ >
|
|
|
+ <template #reference>
|
|
|
+ <span class="m-2"> 石油公司: {{basicInfo.info.oilCompanies}}</span>
|
|
|
+ </template>
|
|
|
+ </el-popover>
|
|
|
+ </div>
|
|
|
+ <div class="item">
|
|
|
+ <el-popover
|
|
|
+ placement="top-start"
|
|
|
+ :width="200"
|
|
|
+ title="加油机厂商"
|
|
|
+ trigger="hover"
|
|
|
+ :content="basicInfo.info.fuelDispenserManufacturer"
|
|
|
+ >
|
|
|
+ <template #reference>
|
|
|
+ <span class="m-2"> 加油机厂商: {{basicInfo.info.fuelDispenserManufacturer}}</span>
|
|
|
+ </template>
|
|
|
+ </el-popover>
|
|
|
+ </div>
|
|
|
+ <div class="item">
|
|
|
+ <el-popover
|
|
|
+ placement="top-start"
|
|
|
+ :width="200"
|
|
|
+ title="加油站"
|
|
|
+ trigger="hover"
|
|
|
+ :content="basicInfo.info.gasStation"
|
|
|
+ >
|
|
|
+ <template #reference>
|
|
|
+ <span class="m-2 ">
|
|
|
+ 加油站:
|
|
|
+ {{basicInfo.info.gasStation}}
|
|
|
+ </span>
|
|
|
+ </template>
|
|
|
+ </el-popover>
|
|
|
+ </div>
|
|
|
+ <div class="item">
|
|
|
+ <el-popover
|
|
|
+ placement="top-start"
|
|
|
+ :width="200"
|
|
|
+ title="规格参数"
|
|
|
+ trigger="hover"
|
|
|
+ :content="basicInfo.info.specifications"
|
|
|
+ >
|
|
|
+ <template #reference>
|
|
|
+ <span class="m-2">
|
|
|
+ 密钥状态:
|
|
|
+ {{ basicInfo.info.specifications }}
|
|
|
+ </span>
|
|
|
+ </template>
|
|
|
+ </el-popover>
|
|
|
+ </div>
|
|
|
+ <div class="item">
|
|
|
+ <el-popover
|
|
|
+ placement="top-start"
|
|
|
+ :width="200"
|
|
|
+ title="测量范围"
|
|
|
+ trigger="hover"
|
|
|
+ :content="basicInfo.info.measuringRange"
|
|
|
+ >
|
|
|
+ <template #reference>
|
|
|
+ <span class="m-2 ">
|
|
|
+ 测量范围:
|
|
|
+ {{ basicInfo.info.measuringRange }}
|
|
|
+ </span>
|
|
|
+ </template>
|
|
|
+ </el-popover>
|
|
|
+ </div>
|
|
|
+ <div class="item">
|
|
|
+ <el-popover
|
|
|
+ placement="top-start"
|
|
|
+ :width="200"
|
|
|
+ title="准确度等级"
|
|
|
+ trigger="hover"
|
|
|
+ :content="basicInfo.info.accuracyLevel"
|
|
|
+ >
|
|
|
+ <template #reference>
|
|
|
+ <span class="m-2"> 准确度等级: {{basicInfo.info.accuracyLevel}}</span>
|
|
|
+ </template>
|
|
|
+ </el-popover>
|
|
|
+ </div>
|
|
|
+ <div class="item">
|
|
|
+ <el-popover
|
|
|
+ placement="top-start"
|
|
|
+ :width="200"
|
|
|
+ trigger="hover"
|
|
|
+ title="出厂编码"
|
|
|
+ :content="basicInfo.info.factoryCode"
|
|
|
+ >
|
|
|
+ <template #reference>
|
|
|
+ <span class="m-2"> 出厂编码: {{basicInfo.info.factoryCode}}</span>
|
|
|
+ </template>
|
|
|
+ </el-popover>
|
|
|
+ </div>
|
|
|
+ <div class="item">
|
|
|
+ <el-popover
|
|
|
+ placement="top-start"
|
|
|
+ :width="200"
|
|
|
+ title="在线状态"
|
|
|
+ trigger="hover"
|
|
|
+ :content="basicInfo.info.onlineStatus"
|
|
|
+ >
|
|
|
+ <template #reference>
|
|
|
+ <span class="m-2"> 在线状态: {{basicInfo.info.onlineStatus}}</span>
|
|
|
+ </template>
|
|
|
+ </el-popover>
|
|
|
+ </div>
|
|
|
+ <div class="item">
|
|
|
+ <el-popover
|
|
|
+ placement="top-start"
|
|
|
+ :width="200"
|
|
|
+ title="报警状态"
|
|
|
+ trigger="hover"
|
|
|
+ :content="basicInfo.info.alarmStatus"
|
|
|
+ >
|
|
|
+ <template #reference>
|
|
|
+ <span class="m-2"> 报警状态: {{basicInfo.info.alarmStatus}}</span>
|
|
|
+ </template>
|
|
|
+ </el-popover>
|
|
|
+ </div>
|
|
|
+ <div class="item">
|
|
|
+ <el-link
|
|
|
+ class="my-el-link mr12 ml12"
|
|
|
+ @click="alert('开发中')"
|
|
|
+ type="primary"
|
|
|
+ size="small"
|
|
|
+ :underline="false"
|
|
|
+ target="_blank"
|
|
|
+ >查看更多>></el-link>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="basicInformation-right" >
|
|
|
+ <div style="width: 100%;height: 100% ;background-color: #16cfd0">
|
|
|
+ 2
|
|
|
+ </div>
|
|
|
+<!-- <div @click="showBigPic(goods.basicInformation.img)">-->
|
|
|
+<!-- <el-image loading="lazy"-->
|
|
|
+<!-- alt="fgg"-->
|
|
|
+<!-- class="img"-->
|
|
|
+<!-- fit="contain"-->
|
|
|
+<!-- :src="baseUrl + '/' + goods.basicInformation.img" >-->
|
|
|
+<!-- <template #error>-->
|
|
|
+<!-- <div class="image-slot">-->
|
|
|
+<!-- <el-icon><icon-picture /></el-icon>-->
|
|
|
+<!-- </div>-->
|
|
|
+<!-- </template>-->
|
|
|
+<!-- </el-image>-->
|
|
|
+<!-- </div>-->
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </el-card>
|
|
|
+ </el-col>
|
|
|
+ <el-col :xs="24">
|
|
|
+ <el-card class="mt8" shadow="hover">
|
|
|
+ 22
|
|
|
+ </el-card>
|
|
|
+ </el-col>
|
|
|
+ <el-col :xs="24">
|
|
|
+ <el-card class="mt8" shadow="hover">
|
|
|
+ 22
|
|
|
+ </el-card>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
<script setup lang="ts">
|
|
|
+import {reactive} from "vue";
|
|
|
|
|
|
+const basicInfo = reactive({
|
|
|
+ loading:false,
|
|
|
+ info:{
|
|
|
+ oilEngineNumber:"4",
|
|
|
+ serialNumber:"1904344P",
|
|
|
+ oilCompanies:"中石化安徽宣城石油分公司",
|
|
|
+ fuelDispenserManufacturer:"托肯恒山科技(广州)有限公司",
|
|
|
+ gasStation:"中石化安徽宣城金陵加油站",
|
|
|
+ specifications:"THD2244B2",
|
|
|
+ measuringRange:"2L-50L",
|
|
|
+ accuracyLevel:"0.3",
|
|
|
+ factoryCode:"1904344P",
|
|
|
+ onlineStatus:"离线",
|
|
|
+ alarmStatus:"严重报警"
|
|
|
+ }
|
|
|
+})
|
|
|
</script>
|
|
|
|
|
|
-<template>
|
|
|
- $END$
|
|
|
-</template>
|
|
|
-
|
|
|
<style scoped lang="scss">
|
|
|
+.basicInformation{
|
|
|
+ display: flex;
|
|
|
+ display: -webkit-flex; /* Safari */
|
|
|
+ justify-content: space-around;
|
|
|
+ align-items:center;
|
|
|
+ align-content:space-around;
|
|
|
+ flex-wrap: wrap-reverse;
|
|
|
+ .basicInformation-left{
|
|
|
+ display: flex;
|
|
|
+ display: -webkit-flex; /* Safari */
|
|
|
+ justify-content: space-around;
|
|
|
+ flex-wrap: wrap;
|
|
|
+ height: 100%;
|
|
|
+ max-width: 65%;
|
|
|
+ min-width: 300px;
|
|
|
+ .item{
|
|
|
+ cursor: pointer;
|
|
|
+ width: 240px;/*设置显示的最大宽度*/
|
|
|
+ height:40px;
|
|
|
+ overflow:hidden;/*超出部分隐藏*/
|
|
|
+ white-space:nowrap;/*强制单行显示*/
|
|
|
+ text-overflow: ellipsis;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+
|
|
|
+ }
|
|
|
|
|
|
+ }
|
|
|
+ .basicInformation-right{
|
|
|
+ width: 50%;
|
|
|
+ height: 100%;
|
|
|
+ max-width: 300px;
|
|
|
+ min-width: 200px;
|
|
|
+ padding: 0 10px;
|
|
|
+ .img {
|
|
|
+ width: 220px;
|
|
|
+ height: 140px;
|
|
|
+ cursor: pointer;
|
|
|
+ }
|
|
|
+ .image-slot {
|
|
|
+ display: flex;
|
|
|
+ justify-content: center;
|
|
|
+ align-items: center;
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+ background: var(--el-fill-color-light);
|
|
|
+ color: var(--el-text-color-secondary);
|
|
|
+ font-size: 30px;
|
|
|
+ }
|
|
|
+ .image-slot .el-icon {
|
|
|
+ font-size: 30px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
</style>
|