|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
<template>
|
|
|
|
|
<div class="realTimeSearch">
|
|
|
|
|
<div class="searchMain">
|
|
|
|
|
<div class="searchMain" v-loading="loadingSearch">
|
|
|
|
|
<div class="searchBox">
|
|
|
|
|
<el-form :inline="true" :model="formdata" class="demo-form-inline">
|
|
|
|
|
<el-form-item label="电压名称">
|
|
|
|
@ -57,34 +57,41 @@
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-form>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="pictureBox" v-loading="loading" v-if="picList.length !== 0">
|
|
|
|
|
<el-card
|
|
|
|
|
class="box-card imgList"
|
|
|
|
|
v-for="(item, index) in picList"
|
|
|
|
|
:key="index"
|
|
|
|
|
>
|
|
|
|
|
<viewer class="bigpic">
|
|
|
|
|
<img :src="item.path" />
|
|
|
|
|
<!-- <el-image :src="item.path" lazy></el-image> -->
|
|
|
|
|
<div class="caption">
|
|
|
|
|
<p class="infoTop">
|
|
|
|
|
{{ item.channelId }}-{{ item.termId }}-{{ item.fileSize }}
|
|
|
|
|
</p>
|
|
|
|
|
<p class="infoBottom">
|
|
|
|
|
拍照时间:{{
|
|
|
|
|
$moment(item.photoTime).format("YYYY-MM-DD HH:mm:ss")
|
|
|
|
|
}}
|
|
|
|
|
上传时间:{{
|
|
|
|
|
$moment(item.recvTime).format("YYYY-MM-DD HH:mm:ss")
|
|
|
|
|
}}
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
</viewer>
|
|
|
|
|
</el-card>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="pictureBox" v-else>
|
|
|
|
|
<el-empty description="暂无图片"></el-empty>
|
|
|
|
|
<div class="pictureBox" v-loading="loading">
|
|
|
|
|
<div v-if="picList.length !== 0">
|
|
|
|
|
<el-card
|
|
|
|
|
class="box-card imgList"
|
|
|
|
|
v-for="(item, index) in picList"
|
|
|
|
|
:key="index"
|
|
|
|
|
>
|
|
|
|
|
<viewer class="bigpic">
|
|
|
|
|
<img :src="item.path + '!1280x720'" />
|
|
|
|
|
|
|
|
|
|
<!-- <el-image :src="item.path" lazy></el-image> -->
|
|
|
|
|
|
|
|
|
|
<div class="caption">
|
|
|
|
|
<p class="infoTop">
|
|
|
|
|
{{ item.linename }};{{ item.displayname }};{{
|
|
|
|
|
item.channnelname
|
|
|
|
|
}}
|
|
|
|
|
</p>
|
|
|
|
|
<p class="infoBottom">
|
|
|
|
|
拍照时间:{{
|
|
|
|
|
$moment(item.photoTime).format("YYYY-MM-DD HH:mm:ss")
|
|
|
|
|
}}
|
|
|
|
|
上传时间:{{
|
|
|
|
|
$moment(item.recvTime).format("YYYY-MM-DD HH:mm:ss")
|
|
|
|
|
}}
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
</viewer>
|
|
|
|
|
</el-card>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="noPicBox" v-else>
|
|
|
|
|
<el-empty description="暂无图片"></el-empty>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="pageNation">
|
|
|
|
|
<el-pagination
|
|
|
|
|
@current-change="handleCurrentChange"
|
|
|
|
@ -122,6 +129,7 @@ export default {
|
|
|
|
|
pageSize: 10, // 每页数量
|
|
|
|
|
total: 0, //总条数
|
|
|
|
|
loading: false,
|
|
|
|
|
loadingSearch: false,
|
|
|
|
|
signtype: 0, //0第一次查询
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
@ -135,6 +143,7 @@ export default {
|
|
|
|
|
methods: {
|
|
|
|
|
//获取电压信息
|
|
|
|
|
getSearchdy() {
|
|
|
|
|
this.loadingSearch = true;
|
|
|
|
|
getSearchInfo({ type: 1 })
|
|
|
|
|
.then((res) => {
|
|
|
|
|
this.dyOptions = res.data.list;
|
|
|
|
@ -175,6 +184,7 @@ export default {
|
|
|
|
|
this.getPicData();
|
|
|
|
|
}
|
|
|
|
|
this.signtype = 1;
|
|
|
|
|
this.loadingSearch = false;
|
|
|
|
|
})
|
|
|
|
|
.catch((err) => {});
|
|
|
|
|
},
|
|
|
|
@ -231,9 +241,7 @@ export default {
|
|
|
|
|
height: calc(100% - 86px);
|
|
|
|
|
overflow: auto;
|
|
|
|
|
border: 1px solid #eee;
|
|
|
|
|
.el-empty {
|
|
|
|
|
margin: auto;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.imgList {
|
|
|
|
|
width: calc((100% - 104px) / 4);
|
|
|
|
|
position: relative;
|
|
|
|
@ -243,6 +251,7 @@ export default {
|
|
|
|
|
padding: 4px;
|
|
|
|
|
border-radius: 3px;
|
|
|
|
|
background: #fff;
|
|
|
|
|
height: fit-content;
|
|
|
|
|
.el-card__body {
|
|
|
|
|
padding: 0px;
|
|
|
|
|
}
|
|
|
|
@ -273,6 +282,15 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.noPicBox {
|
|
|
|
|
display: flex;
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: calc(100% - 86px);
|
|
|
|
|
overflow: auto;
|
|
|
|
|
.el-empty {
|
|
|
|
|
margin: auto;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|