Commit b9051e60 by 李乾广

增加切换显示事件图

1 parent 5a09b436
......@@ -206,6 +206,8 @@
<el-checkbox class="checkBox" v-model="person.checked" @change='checkChange(person)'></el-checkbox>
人id:{{ ' ' + person.person_unid }}
图片数量:{{ person.perrsonList.length }}
<span style="margin-left: 20px;">当前显示:{{person.imageDisplayType?'事件图':'抓拍图'}}</span>
<span style="color: #1890ff;margin-left: 20px;cursor: pointer;" @click='toggleImageDisplayType(person)'>{{person.imageDisplayType?'切换显示抓拍图':'切换显示事件图'}}</span>
</div>
<el-row v-for="row in getPagedList(person.perrsonList, 8)">
<el-col :span="3" v-for="item in row">
......@@ -224,10 +226,8 @@
特征
</span>
</div>
<el-image :src="item.picture_url"
:fit="'fill'"
class="single-image">
</el-image>
<el-image v-if="person.imageDisplayType" :src="item.eventPic" :fit="'fill'" class="single-image"></el-image>
<el-image v-else :src="item.picture_url" :fit="'fill'" class="single-image"></el-image>
<div>时间:{{ item.counttime }}</div>
<div>人员类型:{{ personTypeStr(item.person_type)}}({{ item.childAdult==1?'成人':(item.childAdult==0?'儿童':'未知') }})</div>
<div>性别:{{ formatGender(item.gender) }}({{item.age}})</div>
......@@ -662,6 +662,9 @@ export default {
if (item.picture_url) {
item.picture_url = window._baseImgUrl + item.picture_url
}
if (item.eventPic) {
item.eventPic = window._baseImgUrl + item.eventPic
}
if (item.track_url) {
item.track_url = window._baseImgUrl + item.track_url
}
......@@ -1004,6 +1007,10 @@ export default {
data.plaza_id = rawData.plaza_id
personGroupDialogRef.value.initDialog(data);
}
// 切换图片显示类型
const toggleImageDisplayType = function(person){
person.imageDisplayType = !person.imageDisplayType
}
const downloadFile = function(url) {
window.open(url)
......@@ -1230,6 +1237,7 @@ export default {
deletePersonRecord,
movePersonRecord,
searchPersonInfoByGroup,
toggleImageDisplayType,
isSelectedPerson,
selectedPersonList,
clerkComparativeFun,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!