hn2.0
fanluyan 2 years ago
parent 66ba085405
commit 50fa0d7267

@ -34,7 +34,7 @@
v-if="index < colNum * i && index >= colNum * (i - 1)" v-if="index < colNum * i && index >= colNum * (i - 1)"
:key="'col-' + index" :key="'col-' + index"
> >
<div class="imgList"> <div class="imgList" @click="handleShowHistory(item)">
<!-- <viewer <!-- <viewer
:options="OptionssalseImg" :options="OptionssalseImg"
v-if="item.path !== null && item.path.indexOf('videos') == -1" v-if="item.path !== null && item.path.indexOf('videos') == -1"
@ -48,7 +48,6 @@
<img :src="item.path + '!1366x768'" /> <img :src="item.path + '!1366x768'" />
</viewer> --> </viewer> -->
<div <div
@click="handleShowHistory(item)"
v-if="item.path !== null && item.path.indexOf('videos') == -1" v-if="item.path !== null && item.path.indexOf('videos') == -1"
class="bigpic" class="bigpic"
:style=" :style="
@ -60,7 +59,6 @@
<img :src="item.path + '!1366x768'" /> <img :src="item.path + '!1366x768'" />
</div> </div>
<div <div
@click="handleShowHistory(item)"
class="bigpic" class="bigpic"
v-else-if=" v-else-if="
item.path !== null && item.path.indexOf('videos') !== -1 item.path !== null && item.path.indexOf('videos') !== -1
@ -74,7 +72,7 @@
></video> ></video>
</div> </div>
<div class="bigpic" v-else> <div class="bigpic" v-else>
<img src="../../assets/img/nopic.jpg" style="cursor: default" /> <img src="../../assets/img/nodatapic2.jpg" />
</div> </div>
<div class="picInfo"> <div class="picInfo">
<p> <p>
@ -152,7 +150,7 @@
<el-button type="primary" @click="submitForm()"> </el-button> <el-button type="primary" @click="submitForm()"> </el-button>
</div> </div>
</el-dialog> </el-dialog>
<el-dialog <!-- <el-dialog
title="历史图片" title="历史图片"
:visible.sync="historyPicdialog" :visible.sync="historyPicdialog"
width="1366px" width="1366px"
@ -166,22 +164,49 @@
: picInfoData.channnelname : picInfoData.channnelname
}} {{ $moment(picInfoData.photoTime).format("YYYY-MM-DD ") }} }} {{ $moment(picInfoData.photoTime).format("YYYY-MM-DD ") }}
</div> </div>
<carouselChart <carouselChartmore
ref="carouselpic" ref="carouselpic"
:terminalPhoto="terminalPhoto" :terminalPhoto="terminalPhoto"
v-if="terminalPhoto.length > 0" v-if="terminalPhoto.length > 0"
v-loading="historyPicLoading" v-loading="historyPicLoading"
></carouselChart> ></carouselChartmore>
</el-dialog> </el-dialog> -->
<div class="morePicBox" v-if="historyPicdialog">
<div class="headTitle">
<div class="info">
<p>
{{ picInfoData.linename }} - {{ picInfoData.towername }} - {{
picInfoData.alias !== null && picInfoData.alias !== ""
? picInfoData.alias
: picInfoData.channnelname
}}{{ $moment(picInfoData.photoTime).format("YYYY-MM-DD ") }}
</p>
<!-- <p class="timeinfo" v-if="item.mediatype !== null">
{{ $moment(item.photoTime).format("YYYY-MM-DD HH:mm:ss") }}
</p> -->
</div>
<div class="closeBox" @click="handleclose">
<i class="el-icon-close"></i>
</div>
</div>
<div class="picmain">
<carouselChartmore
ref="carouselpic"
:terminalPhoto="terminalPhoto"
v-if="terminalPhoto.length > 0"
v-loading="historyPicLoading"
></carouselChartmore>
</div>
</div>
</div> </div>
</template> </template>
<script> <script>
import { getPictureList, getTerminalPhotoListJoggle } from "@/utils/api/index"; import { getPictureList, getTerminalPhotoListJoggle } from "@/utils/api/index";
import carouselChart from "../components/carouselChart.vue"; import carouselChartmore from "../components/carouselChartmore.vue";
export default { export default {
components: { components: {
carouselChart, carouselChartmore,
}, },
data() { data() {
return { return {
@ -265,10 +290,15 @@ export default {
this.picInfoData = item; this.picInfoData = item;
console.log(this.picInfoData); console.log(this.picInfoData);
this.historyPicdialog = true; this.historyPicdialog = true;
if (item.photoTime == null) {
item.photoTime = new Date().getTime();
}
//this.getTerminalPhotoList(item.cmdid); //this.getTerminalPhotoList(item.cmdid);
this.getTerminalPhotoList(item.channelid, item.photoTime, item.termid); this.getTerminalPhotoList(item.channelid, item.photoTime, item.termid);
}, },
handleclose() {
this.historyPicdialog = false;
},
// //
getTerminalPhotoList(channelid, date, termId) { getTerminalPhotoList(channelid, date, termId) {
this.terminalPhoto = []; this.terminalPhoto = [];
@ -538,34 +568,38 @@ export default {
} }
} }
} }
.showDialogHistoryPic {
display: flex;
align-items: center;
justify-content: center;
.el-dialog { .morePicBox {
width: 70% !important; position: fixed;
height: 90%; width: 100%;
transform: none; height: 100%;
margin: auto; background: #fff;
left: auto; top: 0px;
top: auto; left: 0px;
} z-index: 99999;
.headTitle {
.el-dialog__body { height: 40px;
height: calc(100% - 70px); padding-left: 18px;
.title { padding-right: 18px;
height: 32px; line-height: 40px;
padding-left: 12px;
line-height: 32px;
color: #fff; color: #fff;
font-size: 14px; font-size: 14px;
background: linear-gradient(180deg, #4cdbc8 10%, #128071 100%); background: linear-gradient(180deg, #4cdbc8 10%, #128071);
text-align: center; display: flex;
justify-content: space-between;
align-items: center;
.closeBox {
width: 24px;
height: 24px;
align-items: center;
display: flex;
justify-content: center;
cursor: pointer;
} }
.thumb-example {
//height: 100%;
} }
.picmain {
width: 100%;
height: calc(100% - 10px);
} }
} }
} }

Loading…
Cancel
Save