|
@@ -8,237 +8,147 @@
|
|
|
<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.name"
|
|
|
- >
|
|
|
+ <el-popover placement="top-start" :width="200" title="油机号" trigger="hover"
|
|
|
+ :content="basicInfo.info.name">
|
|
|
<template #reference>
|
|
|
- <span class="m-2"> 油机号: {{basicInfo.info.name}}</span>
|
|
|
+ <span class="m-2"> 油机号: {{ basicInfo.info.name }}</span>
|
|
|
</template>
|
|
|
</el-popover>
|
|
|
</div>
|
|
|
<div class="item">
|
|
|
- <el-popover
|
|
|
- placement="top-start"
|
|
|
- :width="200"
|
|
|
- title="序列号"
|
|
|
- trigger="hover"
|
|
|
- :content="basicInfo.info.serialNumber"
|
|
|
- >
|
|
|
+ <el-popover placement="top-start" :width="200" title="序列号" trigger="hover"
|
|
|
+ :content="basicInfo.info.serialNumber">
|
|
|
<template #reference>
|
|
|
- <span class="m-2"> 序列号: {{basicInfo.info.serialNumber}}</span>
|
|
|
+ <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.oilCompany"
|
|
|
- >
|
|
|
+ <el-popover placement="top-start" :width="200" title="石油公司" trigger="hover"
|
|
|
+ :content="basicInfo.info.oilCompany">
|
|
|
<template #reference>
|
|
|
- <span class="m-2"> 石油公司: {{basicInfo.info.oilCompany}}</span>
|
|
|
+ <span class="m-2"> 石油公司: {{ basicInfo.info.oilCompany }}</span>
|
|
|
</template>
|
|
|
</el-popover>
|
|
|
</div>
|
|
|
<div class="item">
|
|
|
- <el-popover
|
|
|
- placement="top-start"
|
|
|
- :width="200"
|
|
|
- title="加油机厂商"
|
|
|
- trigger="hover"
|
|
|
- :content="basicInfo.info.manufacturer"
|
|
|
- >
|
|
|
+ <el-popover placement="top-start" :width="200" title="加油机厂商" trigger="hover"
|
|
|
+ :content="basicInfo.info.manufacturer">
|
|
|
<template #reference>
|
|
|
- <span class="m-2"> 加油机厂商: {{basicInfo.info.manufacturer}}</span>
|
|
|
+ <span class="m-2"> 加油机厂商: {{ basicInfo.info.manufacturer }}</span>
|
|
|
</template>
|
|
|
</el-popover>
|
|
|
</div>
|
|
|
<div class="item">
|
|
|
- <el-popover
|
|
|
- placement="top-start"
|
|
|
- :width="200"
|
|
|
- title="加油站"
|
|
|
- trigger="hover"
|
|
|
- :content="basicInfo.info.gasStation"
|
|
|
- >
|
|
|
+ <el-popover placement="top-start" :width="200" title="加油站" trigger="hover"
|
|
|
+ :content="basicInfo.info.gasStation">
|
|
|
<template #reference>
|
|
|
<span class="m-2 ">
|
|
|
加油站:
|
|
|
- {{basicInfo.info.gasStation}}
|
|
|
+ {{ basicInfo.info.gasStation }}
|
|
|
</span>
|
|
|
</template>
|
|
|
</el-popover>
|
|
|
</div>
|
|
|
<div class="item">
|
|
|
- <el-popover
|
|
|
- placement="top-start"
|
|
|
- :width="200"
|
|
|
- title="加油机机型"
|
|
|
- trigger="hover"
|
|
|
- :content="basicInfo.info.model"
|
|
|
- >
|
|
|
+ <el-popover placement="top-start" :width="200" title="加油机机型" trigger="hover"
|
|
|
+ :content="basicInfo.info.model">
|
|
|
<template #reference>
|
|
|
<span class="m-2">
|
|
|
加油机机型:
|
|
|
- {{ basicInfo.info.model }}
|
|
|
+ {{ basicInfo.info.model }}
|
|
|
</span>
|
|
|
</template>
|
|
|
</el-popover>
|
|
|
</div>
|
|
|
<div class="item">
|
|
|
- <el-popover
|
|
|
- placement="top-start"
|
|
|
- :width="200"
|
|
|
- title="加油机枪数量"
|
|
|
- trigger="hover"
|
|
|
- :content="basicInfo.info.gunCount"
|
|
|
- >
|
|
|
+ <el-popover placement="top-start" :width="200" title="加油机枪数量" trigger="hover"
|
|
|
+ :content="basicInfo.info.gunCount">
|
|
|
<template #reference>
|
|
|
- <span class="m-2"> 加油机枪数量: {{basicInfo.info.gunCount}}</span>
|
|
|
+ <span class="m-2"> 加油机枪数量: {{ basicInfo.info.gunCount }}</span>
|
|
|
</template>
|
|
|
</el-popover>
|
|
|
</div>
|
|
|
<div class="item">
|
|
|
- <el-popover
|
|
|
- placement="top-start"
|
|
|
- :width="200"
|
|
|
- trigger="hover"
|
|
|
- title="设备状态"
|
|
|
- :content="basicInfo.info.deviceStatus"
|
|
|
- >
|
|
|
+ <el-popover placement="top-start" :width="200" trigger="hover" title="设备状态"
|
|
|
+ :content="basicInfo.info.deviceStatus">
|
|
|
<template #reference>
|
|
|
- <span class="m-2"> 设备状态: {{basicInfo.info.deviceStatus}}</span>
|
|
|
+ <span class="m-2"> 设备状态: {{ basicInfo.info.deviceStatus }}</span>
|
|
|
</template>
|
|
|
</el-popover>
|
|
|
</div>
|
|
|
<div class="item">
|
|
|
- <el-popover
|
|
|
- placement="top-start"
|
|
|
- :width="200"
|
|
|
- title="在线状态"
|
|
|
- trigger="hover"
|
|
|
- :content="basicInfo.info.onlineStatus"
|
|
|
- >
|
|
|
+ <el-popover placement="top-start" :width="200" title="在线状态" trigger="hover"
|
|
|
+ :content="basicInfo.info.onlineStatus">
|
|
|
<template #reference>
|
|
|
- <span class="m-2"> 在线状态: {{basicInfo.info.onlineStatus}}</span>
|
|
|
+ <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.manufactureDate"
|
|
|
- >
|
|
|
+ <el-popover placement="top-start" :width="200" title="出厂时间" trigger="hover"
|
|
|
+ :content="basicInfo.info.manufactureDate">
|
|
|
<template #reference>
|
|
|
- <span class="m-2"> 出厂时间: {{basicInfo.info.manufactureDate}}</span>
|
|
|
+ <span class="m-2"> 出厂时间: {{ basicInfo.info.manufactureDate }}</span>
|
|
|
</template>
|
|
|
</el-popover>
|
|
|
</div>
|
|
|
<div class="item ">
|
|
|
- <el-popover
|
|
|
- placement="top-start"
|
|
|
- :width="200"
|
|
|
- title="启动时间"
|
|
|
- trigger="hover"
|
|
|
- :content="basicInfo.info.startupDate"
|
|
|
- >
|
|
|
+ <el-popover placement="top-start" :width="200" title="启动时间" trigger="hover"
|
|
|
+ :content="basicInfo.info.startupDate">
|
|
|
<template #reference>
|
|
|
- <span class="m-2"> 启动时间: {{basicInfo.info.startupDate}}</span>
|
|
|
+ <span class="m-2"> 启动时间: {{ basicInfo.info.startupDate }}</span>
|
|
|
</template>
|
|
|
</el-popover>
|
|
|
</div>
|
|
|
<div class="item ">
|
|
|
- <el-popover
|
|
|
- placement="top-start"
|
|
|
- :width="200"
|
|
|
- title="安装时间"
|
|
|
- trigger="hover"
|
|
|
- :content="basicInfo.info.installationDate"
|
|
|
- >
|
|
|
+ <el-popover placement="top-start" :width="200" title="安装时间" trigger="hover"
|
|
|
+ :content="basicInfo.info.installationDate">
|
|
|
<template #reference>
|
|
|
- <span class="m-2"> 安装时间: {{basicInfo.info.installationDate}}</span>
|
|
|
+ <span class="m-2"> 安装时间: {{ basicInfo.info.installationDate }}</span>
|
|
|
</template>
|
|
|
</el-popover>
|
|
|
</div>
|
|
|
<div class="item ">
|
|
|
- <el-popover
|
|
|
- placement="top-start"
|
|
|
- :width="200"
|
|
|
- title="创建者"
|
|
|
- trigger="hover"
|
|
|
- :content="basicInfo.info.createdUserName"
|
|
|
- >
|
|
|
+ <el-popover placement="top-start" :width="200" title="创建者" trigger="hover"
|
|
|
+ :content="basicInfo.info.createdUserName">
|
|
|
<template #reference>
|
|
|
- <span class="m-2"> 创建者: {{basicInfo.info.createdUserName}}</span>
|
|
|
+ <span class="m-2"> 创建者: {{ basicInfo.info.createdUserName }}</span>
|
|
|
</template>
|
|
|
</el-popover>
|
|
|
</div>
|
|
|
<div class="item ">
|
|
|
- <el-popover
|
|
|
- placement="top-start"
|
|
|
- :width="200"
|
|
|
- title="创建时间"
|
|
|
- trigger="hover"
|
|
|
- :content="basicInfo.info.createdTime"
|
|
|
- >
|
|
|
+ <el-popover placement="top-start" :width="200" title="创建时间" trigger="hover"
|
|
|
+ :content="basicInfo.info.createdTime">
|
|
|
<template #reference>
|
|
|
- <span class="m-2"> 创建时间: {{basicInfo.info.createdTime}}</span>
|
|
|
+ <span class="m-2"> 创建时间: {{ basicInfo.info.createdTime }}</span>
|
|
|
</template>
|
|
|
</el-popover>
|
|
|
</div>
|
|
|
<div class="item ">
|
|
|
- <el-popover
|
|
|
- placement="top-start"
|
|
|
- :width="200"
|
|
|
- title="修改者"
|
|
|
- trigger="hover"
|
|
|
- :content="basicInfo.info.modifiedUserName"
|
|
|
- >
|
|
|
+ <el-popover placement="top-start" :width="200" title="修改者" trigger="hover"
|
|
|
+ :content="basicInfo.info.modifiedUserName">
|
|
|
<template #reference>
|
|
|
- <span class="m-2"> 修改者: {{basicInfo.info.modifiedUserName}}</span>
|
|
|
+ <span class="m-2"> 修改者: {{ basicInfo.info.modifiedUserName }}</span>
|
|
|
</template>
|
|
|
</el-popover>
|
|
|
</div>
|
|
|
<div class="item ">
|
|
|
- <el-popover
|
|
|
- placement="top-start"
|
|
|
- :width="200"
|
|
|
- title="修改时间"
|
|
|
- trigger="hover"
|
|
|
- :content="basicInfo.info.modifiedTime"
|
|
|
- >
|
|
|
+ <el-popover placement="top-start" :width="200" title="修改时间" trigger="hover"
|
|
|
+ :content="basicInfo.info.modifiedTime">
|
|
|
<template #reference>
|
|
|
- <span class="m-2"> 修改时间: {{basicInfo.info.modifiedTime}}</span>
|
|
|
+ <span class="m-2"> 修改时间: {{ basicInfo.info.modifiedTime }}</span>
|
|
|
</template>
|
|
|
</el-popover>
|
|
|
</div>
|
|
|
<div class="item">
|
|
|
- <el-link
|
|
|
- class="my-el-link mr12 ml12"
|
|
|
- @click="toPage()"
|
|
|
- type="primary"
|
|
|
- size="small"
|
|
|
- :underline="false"
|
|
|
- target="_blank"
|
|
|
- >查看更多>></el-link>
|
|
|
+ <el-link class="my-el-link mr12 ml12" @click="toPage()" type="primary" size="small" :underline="false"
|
|
|
+ target="_blank">查看更多>></el-link>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="basicInformation-right" >
|
|
|
+ <div class="basicInformation-right">
|
|
|
<div @click="showBigPic(basicInfo.imgUrl)">
|
|
|
- <el-image loading="lazy"
|
|
|
- alt="fgg"
|
|
|
- class="img"
|
|
|
- fit="contain"
|
|
|
- :src="basicInfo.imgUrl" >
|
|
|
+ <el-image loading="lazy" alt="fgg" class="img" fit="contain" :src="basicInfo.imgUrl">
|
|
|
<template #error>
|
|
|
<div class="image-slot">
|
|
|
<el-icon><icon-picture /></el-icon>
|
|
@@ -254,40 +164,32 @@
|
|
|
<!--报警历史-->
|
|
|
<el-col :xs="24">
|
|
|
<el-card style="height: 40vh" class="mt8 my-fill" shadow="hover" header="报警历史">
|
|
|
- <el-table v-loading="alarmHistory.loading" stripe :data="alarmHistory.list" row-key="id" style="width: 100%">
|
|
|
- <el-table-column prop="createdDate" label="时间" />
|
|
|
- <el-table-column prop="gasStation" label="加油站" />
|
|
|
- <el-table-column prop="name" label="加油机" >
|
|
|
+ <el-table v-loading="alarmHistory.loading" stripe :data="alarmHistory.list" row-key="id" style="width: 100%">
|
|
|
+ <el-table-column prop="createdDate" label="时间" />
|
|
|
+ <el-table-column prop="gasStation" label="加油站" />
|
|
|
+ <el-table-column prop="name" label="加油机">
|
|
|
<template #default="{ row }">
|
|
|
- {{row.name}}
|
|
|
+ {{ row.name }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="serialNumber" label="加油机序号" >
|
|
|
+ <el-table-column prop="serialNumber" label="加油机序号">
|
|
|
<template #default="{ row }">
|
|
|
- {{row.serialNumber}}
|
|
|
+ {{ row.serialNumber }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="alarmSource" label="报警来源" >
|
|
|
+ <el-table-column prop="alarmSource" label="报警来源">
|
|
|
<template #default="{ row }">
|
|
|
- {{row.alarmSource}}
|
|
|
+ {{ row.alarmSource }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="alarmType" label="报警类型" />
|
|
|
- <el-table-column prop="alarmDescription" label="报警描述" />
|
|
|
+ <el-table-column prop="alarmType" label="报警类型" />
|
|
|
+ <el-table-column prop="alarmDescription" label="报警描述" />
|
|
|
</el-table>
|
|
|
- <div class="my-flex my-flex-end" style="margin-top: 20px">
|
|
|
- <el-pagination
|
|
|
- v-model:currentPage="alarmHistory.pageInput.currentPage"
|
|
|
- v-model:page-size="alarmHistory.pageInput.pageSize"
|
|
|
- :default-page-size="5"
|
|
|
- :total="alarmHistory.total"
|
|
|
- :page-sizes="[5, 10, 20, 50, 100]"
|
|
|
- small
|
|
|
- background
|
|
|
- @size-change="onAlarmHistorySizeChange"
|
|
|
- @current-change="onAlarmHistoryCurrentChange"
|
|
|
- layout="total, sizes, prev, pager, next, jumper"
|
|
|
- />
|
|
|
+ <div class="my-flex my-flex-end" style="margin-top: 20px">
|
|
|
+ <el-pagination v-model:currentPage="alarmHistory.pageInput.currentPage"
|
|
|
+ v-model:page-size="alarmHistory.pageInput.pageSize" :default-page-size="5" :total="alarmHistory.total"
|
|
|
+ :page-sizes="[5, 10, 20, 50, 100]" small background @size-change="onAlarmHistorySizeChange"
|
|
|
+ @current-change="onAlarmHistoryCurrentChange" layout="total, sizes, prev, pager, next, jumper" />
|
|
|
</div>
|
|
|
</el-card>
|
|
|
</el-col>
|
|
@@ -295,49 +197,33 @@
|
|
|
<!--生产日志-->
|
|
|
<el-col :xs="24">
|
|
|
<el-card style="height: 40vh" class="mt8 my-fill" shadow="hover" header="生命周期">
|
|
|
- <el-table v-loading="lifeCycle.loading" stripe :data="lifeCycle.list" row-key="id" style="width: 100%">
|
|
|
- <el-table-column prop="createdDate" label="时间" />
|
|
|
- <el-table-column prop="operator" label="操作人" />
|
|
|
- <el-table-column prop="operatorID" label="操作人ID" />
|
|
|
- <el-table-column prop="operation" label="操作" />
|
|
|
+ <el-table v-loading="lifeCycle.loading" stripe :data="lifeCycle.list" row-key="id" style="width: 100%">
|
|
|
+ <el-table-column prop="createdDate" label="时间" />
|
|
|
+ <el-table-column prop="operator" label="操作人" />
|
|
|
+ <el-table-column prop="operatorID" label="操作人ID" />
|
|
|
+ <el-table-column prop="operation" label="操作" />
|
|
|
</el-table>
|
|
|
- <div class="my-flex my-flex-end" style="margin-top: 20px">
|
|
|
- <el-pagination
|
|
|
- v-model:currentPage="lifeCycle.pageInput.currentPage"
|
|
|
- v-model:page-size="lifeCycle.pageInput.pageSize"
|
|
|
- :default-page-size="5"
|
|
|
- :total="lifeCycle.total"
|
|
|
- :page-sizes="[5, 10, 20, 50, 100]"
|
|
|
- small
|
|
|
- background
|
|
|
- @size-change="onLifeCycleSizeChange"
|
|
|
- @current-change="onLifeCycleCurrentChange"
|
|
|
- layout="total, sizes, prev, pager, next, jumper"
|
|
|
- />
|
|
|
+ <div class="my-flex my-flex-end" style="margin-top: 20px">
|
|
|
+ <el-pagination v-model:currentPage="lifeCycle.pageInput.currentPage"
|
|
|
+ v-model:page-size="lifeCycle.pageInput.pageSize" :default-page-size="5" :total="lifeCycle.total"
|
|
|
+ :page-sizes="[5, 10, 20, 50, 100]" small background @size-change="onLifeCycleSizeChange"
|
|
|
+ @current-change="onLifeCycleCurrentChange" layout="total, sizes, prev, pager, next, jumper" />
|
|
|
</div>
|
|
|
</el-card>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
- <el-dialog
|
|
|
- v-model="bigImgDto.isShow"
|
|
|
- :close-on-click-modal="true"
|
|
|
- :show-close="false"
|
|
|
- width="80%"
|
|
|
- >
|
|
|
- <img
|
|
|
- :src="bigImgDto.imgUrl"
|
|
|
- class="fullscreen-image"
|
|
|
- alt="放大的图片"/>
|
|
|
+ <el-dialog v-model="bigImgDto.isShow" :close-on-click-modal="true" :show-close="false" width="80%">
|
|
|
+ <img :src="bigImgDto.imgUrl" class="fullscreen-image" alt="放大的图片" />
|
|
|
</el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script setup lang="ts">
|
|
|
import { Picture as IconPicture } from '@element-plus/icons-vue'
|
|
|
-import {onMounted, reactive} from "vue";
|
|
|
-import {OilEngineDetailsApi} from "/@/api/admin/reportManagement/oilEngineDetails/oilEngineDetailsApi";
|
|
|
+import { onMounted, reactive, ref } from "vue";
|
|
|
+import { OilEngineDetailsApi } from "/@/api/admin/reportManagement/oilEngineDetails/oilEngineDetailsApi";
|
|
|
import router from "/@/router";
|
|
|
-import { FuelDispenserEntity,PageInputAlarmHistoryDto,AlarmHistoryDto,PageInputLifeCycleDto,LifeCycleDto } from "/@/api/admin/reportManagement/oilEngineDetails/oilEngineDetailsDto"
|
|
|
+import { FuelDispenserEntity, PageInputAlarmHistoryDto, AlarmHistoryDto, PageInputLifeCycleDto, LifeCycleDto } from "/@/api/admin/reportManagement/oilEngineDetails/oilEngineDetailsDto"
|
|
|
|
|
|
/******************************数据对象***************************************/
|
|
|
|
|
@@ -350,30 +236,30 @@ const baseUrl = import.meta.env.VITE_API_URL
|
|
|
* 显示大图数据对象
|
|
|
*/
|
|
|
const bigImgDto = reactive({
|
|
|
- isShow:false,
|
|
|
- imgUrl:''
|
|
|
+ isShow: false,
|
|
|
+ imgUrl: ''
|
|
|
})
|
|
|
|
|
|
/**
|
|
|
* 油机详情 - 基本信息 - 数据对象
|
|
|
*/
|
|
|
const basicInfo = reactive({
|
|
|
- loading:false,
|
|
|
- info:{} as FuelDispenserEntity,
|
|
|
- imgUrl:'upload/2023/09/15/65048ee6-9b3f-2234-0097-734b351ca09d.png'
|
|
|
+ loading: false,
|
|
|
+ info: {} as FuelDispenserEntity,
|
|
|
+ imgUrl: 'upload/2023/09/15/65048ee6-9b3f-2234-0097-734b351ca09d.png'
|
|
|
})
|
|
|
|
|
|
/**
|
|
|
* 油机详情 - 报警历史 - 数据对象
|
|
|
*/
|
|
|
const alarmHistory = reactive({
|
|
|
- loading:false,
|
|
|
- list:[] as Array<AlarmHistoryDto>,
|
|
|
- pageInput:{
|
|
|
+ loading: false,
|
|
|
+ list: [] as Array<AlarmHistoryDto>,
|
|
|
+ pageInput: {
|
|
|
currentPage: 1,
|
|
|
pageSize: 5
|
|
|
} as PageInputAlarmHistoryDto,
|
|
|
- total:0,
|
|
|
+ total: 0,
|
|
|
Filter: {
|
|
|
/**油机id */
|
|
|
fuelId: 0
|
|
@@ -384,13 +270,13 @@ const alarmHistory = reactive({
|
|
|
* 油机详情 - 生命周期 - 数据对象
|
|
|
*/
|
|
|
const lifeCycle = reactive({
|
|
|
- loading:false,
|
|
|
- list:[] as Array<LifeCycleDto>,
|
|
|
- pageInput:{
|
|
|
+ loading: false,
|
|
|
+ list: [] as Array<LifeCycleDto>,
|
|
|
+ pageInput: {
|
|
|
currentPage: 1,
|
|
|
pageSize: 5
|
|
|
} as PageInputLifeCycleDto,
|
|
|
- total:0,
|
|
|
+ total: 0,
|
|
|
Filter: {
|
|
|
/**油机id */
|
|
|
fuelId: 0
|
|
@@ -407,9 +293,9 @@ const lifeCycle = reactive({
|
|
|
* @param val
|
|
|
*/
|
|
|
const showBigPic = (val) => {
|
|
|
- if(val){
|
|
|
+ if (val) {
|
|
|
bigImgDto.imgUrl = val
|
|
|
- }else {
|
|
|
+ } else {
|
|
|
bigImgDto.imgUrl = ''
|
|
|
}
|
|
|
bigImgDto.isShow = true
|
|
@@ -420,13 +306,17 @@ const showBigPic = (val) => {
|
|
|
*/
|
|
|
const toPage = () => {
|
|
|
const id = router.currentRoute.value.params.id
|
|
|
- router.push({path:`/statement/${id}/more`})
|
|
|
+ router.push({
|
|
|
+ path: `/statement/${id}/more`, query: {
|
|
|
+ data: flag.value
|
|
|
+ }
|
|
|
+ })
|
|
|
}
|
|
|
/**
|
|
|
* 格式化日期
|
|
|
*/
|
|
|
- const formatDate=(val)=>{
|
|
|
- const date=new Date(val)
|
|
|
+const formatDate = (val) => {
|
|
|
+ const date = new Date(val)
|
|
|
const year: number = date.getFullYear();
|
|
|
const month: string = (date.getMonth() + 1).toString().padStart(2, '0');
|
|
|
const day: string = date.getDate().toString().padStart(2, '0');
|
|
@@ -457,7 +347,7 @@ const onAlarmHistoryCurrentChange = (val) => {
|
|
|
* 油机详情 - 生命周期 - 页条变化
|
|
|
* @param val
|
|
|
*/
|
|
|
-const onLifeCycleSizeChange = (val) =>{
|
|
|
+const onLifeCycleSizeChange = (val) => {
|
|
|
lifeCycle.pageInput.pageSize = val
|
|
|
getLifeCycle()
|
|
|
}
|
|
@@ -479,38 +369,46 @@ const onLifeCycleCurrentChange = (val) => {
|
|
|
/**
|
|
|
* 获取 油机详情 - 基本信息 - 数据对对象
|
|
|
*/
|
|
|
+const flag = ref('')
|
|
|
const getBasicInfo = async () => {
|
|
|
basicInfo.loading = true
|
|
|
- basicInfo.imgUrl=baseUrl + '/'+basicInfo.imgUrl
|
|
|
- const fuelId=router.currentRoute.value.params.id
|
|
|
- const { data } = await new OilEngineDetailsApi().getBasicInfoDto({Fuelid:fuelId})
|
|
|
+ basicInfo.imgUrl = baseUrl + '/' + basicInfo.imgUrl
|
|
|
+ const fuelId = router.currentRoute.value.params.id
|
|
|
+ const { data } = await new OilEngineDetailsApi().getBasicInfoDto({ Fuelid: fuelId })
|
|
|
basicInfo.info = data
|
|
|
- if(basicInfo.info.createdTime!==null){
|
|
|
- basicInfo.info.createdTime=formatDate(basicInfo.info.createdTime)
|
|
|
+
|
|
|
+ console.log(999)
|
|
|
+
|
|
|
+ console.log(data.gasStation)
|
|
|
+ flag.value = data.gasStation
|
|
|
+ console.log(flag)
|
|
|
+
|
|
|
+ if (basicInfo.info.createdTime !== null) {
|
|
|
+ basicInfo.info.createdTime = formatDate(basicInfo.info.createdTime)
|
|
|
}
|
|
|
- if(basicInfo.info.installationDate!==null){
|
|
|
- basicInfo.info.installationDate=formatDate(basicInfo.info.installationDate)
|
|
|
+ if (basicInfo.info.installationDate !== null) {
|
|
|
+ basicInfo.info.installationDate = formatDate(basicInfo.info.installationDate)
|
|
|
}
|
|
|
- if(basicInfo.info.startupDate!==null){
|
|
|
- basicInfo.info.startupDate=formatDate(basicInfo.info.startupDate)
|
|
|
+ if (basicInfo.info.startupDate !== null) {
|
|
|
+ basicInfo.info.startupDate = formatDate(basicInfo.info.startupDate)
|
|
|
}
|
|
|
- if(basicInfo.info.modifiedTime!==null){
|
|
|
- basicInfo.info.modifiedTime=formatDate(basicInfo.info.modifiedTime)
|
|
|
+ if (basicInfo.info.modifiedTime !== null) {
|
|
|
+ basicInfo.info.modifiedTime = formatDate(basicInfo.info.modifiedTime)
|
|
|
}
|
|
|
- if(basicInfo.info.onlineStatus!==null){
|
|
|
- if(basicInfo.info.onlineStatus==='offline'){
|
|
|
- basicInfo.info.onlineStatus='离线'
|
|
|
- }else{
|
|
|
- basicInfo.info.onlineStatus='在线'
|
|
|
+ if (basicInfo.info.onlineStatus !== null) {
|
|
|
+ if (basicInfo.info.onlineStatus === 'offline') {
|
|
|
+ basicInfo.info.onlineStatus = '离线'
|
|
|
+ } else {
|
|
|
+ basicInfo.info.onlineStatus = '在线'
|
|
|
}
|
|
|
}
|
|
|
- if(basicInfo.info.deviceStatus!==null){
|
|
|
- if(basicInfo.info.deviceStatus==='enable'){
|
|
|
- basicInfo.info.deviceStatus='启用'
|
|
|
- }else if(basicInfo.info.deviceStatus==='factory'){
|
|
|
- basicInfo.info.deviceStatus='出厂注册'
|
|
|
- }else{
|
|
|
- basicInfo.info.deviceStatus='备案'
|
|
|
+ if (basicInfo.info.deviceStatus !== null) {
|
|
|
+ if (basicInfo.info.deviceStatus === 'enable') {
|
|
|
+ basicInfo.info.deviceStatus = '启用'
|
|
|
+ } else if (basicInfo.info.deviceStatus === 'factory') {
|
|
|
+ basicInfo.info.deviceStatus = '出厂注册'
|
|
|
+ } else {
|
|
|
+ basicInfo.info.deviceStatus = '备案'
|
|
|
}
|
|
|
}
|
|
|
basicInfo.loading = false
|
|
@@ -521,8 +419,8 @@ const getBasicInfo = async () => {
|
|
|
*/
|
|
|
const getAlarmHistory = async () => {
|
|
|
alarmHistory.loading = true
|
|
|
- alarmHistory.Filter.fuelId=router.currentRoute.value.params.id
|
|
|
- const {data} = await new OilEngineDetailsApi().getAlarmHistoryDto({...alarmHistory.pageInput,filter:alarmHistory.Filter})
|
|
|
+ alarmHistory.Filter.fuelId = router.currentRoute.value.params.id
|
|
|
+ const { data } = await new OilEngineDetailsApi().getAlarmHistoryDto({ ...alarmHistory.pageInput, filter: alarmHistory.Filter })
|
|
|
alarmHistory.total = data.total
|
|
|
alarmHistory.list = data.list
|
|
|
alarmHistory.loading = false
|
|
@@ -533,8 +431,8 @@ const getAlarmHistory = async () => {
|
|
|
*/
|
|
|
const getLifeCycle = async () => {
|
|
|
lifeCycle.loading = true
|
|
|
- lifeCycle.Filter.fuelId=router.currentRoute.value.params.id
|
|
|
- const {data} = await new OilEngineDetailsApi().getLifeCycleDto({...lifeCycle.pageInput,filter:lifeCycle.Filter})
|
|
|
+ lifeCycle.Filter.fuelId = router.currentRoute.value.params.id
|
|
|
+ const { data } = await new OilEngineDetailsApi().getLifeCycleDto({ ...lifeCycle.pageInput, filter: lifeCycle.Filter })
|
|
|
lifeCycle.total = data.total
|
|
|
lifeCycle.list = data.list
|
|
|
lifeCycle.loading = false
|
|
@@ -554,46 +452,56 @@ onMounted(() => {
|
|
|
</script>
|
|
|
|
|
|
<style scoped lang="scss">
|
|
|
-.oilInfo{
|
|
|
+.oilInfo {
|
|
|
font-weight: 500;
|
|
|
|
|
|
- .basicInformation{
|
|
|
+ .basicInformation {
|
|
|
display: flex;
|
|
|
- display: -webkit-flex; /* Safari */
|
|
|
+ display: -webkit-flex;
|
|
|
+ /* Safari */
|
|
|
justify-content: space-around;
|
|
|
- align-items:center;
|
|
|
- align-content:space-around;
|
|
|
+ align-items: center;
|
|
|
+ align-content: space-around;
|
|
|
flex-wrap: wrap-reverse;
|
|
|
- .basicInformation-left{
|
|
|
+
|
|
|
+ .basicInformation-left {
|
|
|
display: flex;
|
|
|
- display: -webkit-flex; /* Safari */
|
|
|
+ display: -webkit-flex;
|
|
|
+ /* Safari */
|
|
|
justify-content: space-around;
|
|
|
flex-wrap: wrap;
|
|
|
height: 100%;
|
|
|
max-width: 65%;
|
|
|
min-width: 300px;
|
|
|
- .item{
|
|
|
+
|
|
|
+ .item {
|
|
|
display: inline-block;
|
|
|
cursor: pointer;
|
|
|
- width: 240px;/*设置显示的最大宽度*/
|
|
|
- height:40px;
|
|
|
- overflow:hidden;/*超出部分隐藏*/
|
|
|
- white-space:nowrap;/*强制单行显示*/
|
|
|
+ width: 240px;
|
|
|
+ /*设置显示的最大宽度*/
|
|
|
+ height: 40px;
|
|
|
+ overflow: hidden;
|
|
|
+ /*超出部分隐藏*/
|
|
|
+ white-space: nowrap;
|
|
|
+ /*强制单行显示*/
|
|
|
text-overflow: ellipsis;
|
|
|
}
|
|
|
|
|
|
}
|
|
|
- .basicInformation-right{
|
|
|
+
|
|
|
+ .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;
|
|
@@ -604,6 +512,7 @@ onMounted(() => {
|
|
|
color: var(--el-text-color-secondary);
|
|
|
font-size: 30px;
|
|
|
}
|
|
|
+
|
|
|
.image-slot .el-icon {
|
|
|
font-size: 30px;
|
|
|
}
|