curpicdetail.vue
1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<template>
<div class="cutpicbox">
<el-dialog
title="提示"
:visible.sync="dialogVisible"
width="50%"
:before-close="handleClose">
<div class="imgbox">
<div class="imgitem" >
<img :src="cutpicurl">
</div>
</div>
<span slot="footer" class="dialog-footer">
<el-button @click="dialogVisible = false" size="mini">取 消</el-button>
<el-button type="primary" @click="dialogVisible = false" size="mini">确 定</el-button>
</span>
</el-dialog>
</div>
</template>
<script>
export default {
data(){
return {
dialogVisible:false,
cutpicurl:'',
zonePlanUrl: window._vionConfig.imagesUrl + "/snapshot/real/",
}
},
methods:{
init(data){
this.dialogVisible = true;
this.cutpicurl = this.zonePlanUrl + data +'.jpg?t=' + Date.parse(new Date()) / 1000;
},
handleClose(){
this.dialogVisible = false;
}
}
}
</script>
<style scoped>
.imgbox{
display: flex;
flex-direction: row;
flex-wrap: wrap;
}
.imgitem{
width: 100%;
height: 100%;
}
.imgitem img{
height: 100%;
width: 100%;
}
</style>