detail.vue
1.89 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<template>
<div class="statusdetail">
<el-dialog
:title="titlename"
:visible.sync="show"
width="40%"
>
<div class="activitychart" id="activitychart" v-show="curshow == 'chart'&&!noImg"></div>
<div class="imgbox" v-show="curshow == 'img'&&!noImg">
<div v-for="(item,index) in imgData" class="item-img-box" :key="index">
<img :src="API.picUrl+'picture/'+item.facePath+item.facePic" alt="">
</div>
</div>
<div class="" v-show="noImg">
暂无数据
</div>
<span slot="footer" class="dialog-footer">
<el-button @click="show = false">取 消</el-button>
<el-button type="primary" @click="show = false">确 定</el-button>
</span>
</el-dialog>
</div>
</template>
<script>
import defaultPhotos from './index.json'
export default {
data() {
return {
show:false,
curshow:'img',
titlename:'抓拍图片',
imgData:[],
noImg:false
}
},
methods:{
initImg(data){
this.imgData = []
this.show = true
this.titlename = '抓拍图片'
this.curshow = 'img'
this.axios.get(this.API.url + '/faceRecognitions',{
params:{
mallId: data.mallId,
personUnid:data.personUnid,
sortName: "counttime",
sortOrder: "DESC"
}
}).then(res => {
if(res.data.data){
this.imgData = res.data.data;
this.noImg=false;
}else{
this.noImg=true;
}
})
},
chageperiod(){
},
},
mounted(){
}
}
</script>
<style lang="stylus" scoped>
.activitychart{
height 40vh
width 40vw
}
.report-select{
width 100%
overflow hidden
}
.imgbox{
overflow auto
height 60vh
}
.item-img-box{
width 155px
height 200px
float left
overflow hidden
border-radius 5px
margin 0 0 20px 20px
img {
height 100%
width 100%
}
}
</style>