告警--历史图片
parent
acedabfceb
commit
ec252405a7
@ -0,0 +1,61 @@
|
|||||||
|
<template>
|
||||||
|
<el-dialog
|
||||||
|
title="历史图片"
|
||||||
|
:visible.sync="isShow"
|
||||||
|
:close-on-click-modal="false"
|
||||||
|
width="80%"
|
||||||
|
>
|
||||||
|
<el-carousel :loop="false" :autoplay="false" height="600px" indicator-position="none" @change="changebtn">
|
||||||
|
<el-carousel-item v-for="(item,index) in imglist" :key="index" >
|
||||||
|
<el-image :src="item.path" fit="contain"></el-image>
|
||||||
|
</el-carousel-item>
|
||||||
|
</el-carousel>
|
||||||
|
</el-dialog>
|
||||||
|
</template>
|
||||||
|
<script>
|
||||||
|
import { getHistoryList } from "@/utils/api/index";
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
isShow: false,
|
||||||
|
imglist:[],
|
||||||
|
page: 1, // 当前页数
|
||||||
|
pageSize: 10, // 每页数量
|
||||||
|
total: 0, //总条数
|
||||||
|
};
|
||||||
|
},
|
||||||
|
mounted() {},
|
||||||
|
methods: {
|
||||||
|
//获取图片数据
|
||||||
|
getdataform(val) {
|
||||||
|
getHistoryList({
|
||||||
|
channelId: val.channelId,
|
||||||
|
termId: val.termId,
|
||||||
|
pageindex: this.page,
|
||||||
|
pagesize: this.pageSize
|
||||||
|
})
|
||||||
|
.then((res) => {
|
||||||
|
this.imglist = res.data.list;
|
||||||
|
this.total = res.data.total;
|
||||||
|
})
|
||||||
|
},
|
||||||
|
//下一页
|
||||||
|
changebtn(e){
|
||||||
|
console.log(e)
|
||||||
|
|
||||||
|
},
|
||||||
|
display() {
|
||||||
|
this.isShow = true;
|
||||||
|
},
|
||||||
|
hide() {
|
||||||
|
this.isShow = false;
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
<style lang="less" scoped>
|
||||||
|
.imgnr{
|
||||||
|
height: 600px;
|
||||||
|
}
|
||||||
|
|
||||||
|
</style>
|
Loading…
Reference in New Issue