Commit c0fabd49 by 李乾广

增加事件图

1 parent 3687a857
...@@ -190,6 +190,7 @@ ...@@ -190,6 +190,7 @@
<el-checkbox class="checkBox" v-model="person.checked" @change='checkChange(person)'></el-checkbox> <el-checkbox class="checkBox" v-model="person.checked" @change='checkChange(person)'></el-checkbox>
人id:{{ ' ' + person.person_unid }} 人id:{{ ' ' + person.person_unid }}
图片数量:{{ person.perrsonList.length }} 图片数量:{{ 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> </div>
<el-row v-for="row in getPagedList(person.perrsonList, 8)"> <el-row v-for="row in getPagedList(person.perrsonList, 8)">
<el-col :span="3" v-for="item in row"> <el-col :span="3" v-for="item in row">
...@@ -208,10 +209,7 @@ ...@@ -208,10 +209,7 @@
特征 特征
</span> </span>
</div> </div>
<el-image :src="item.picture_url" <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>
:fit="'fill'"
class="single-image">
</el-image>
<div>时间:{{ item.counttime }}</div> <div>时间:{{ item.counttime }}</div>
<div>人员类型:{{ personTypeStr(item.person_type)}}({{ formatChildAdult(item.childAdult) }})</div> <div>人员类型:{{ personTypeStr(item.person_type)}}({{ formatChildAdult(item.childAdult) }})</div>
<div>性别:{{ formatGender(item.gender) }}({{item.age}})</div> <div>性别:{{ formatGender(item.gender) }}({{item.age}})</div>
...@@ -584,6 +582,7 @@ export default { ...@@ -584,6 +582,7 @@ export default {
if (item.picture_url) { if (item.picture_url) {
item.picture_url = window._baseImgUrl + item.picture_url item.picture_url = window._baseImgUrl + item.picture_url
} }
if (item.eventPic) { item.eventPic = window._baseImgUrl + item.eventPic }
if (item.track_url) { if (item.track_url) {
item.track_url = window._baseImgUrl + item.track_url item.track_url = window._baseImgUrl + item.track_url
} }
...@@ -762,6 +761,7 @@ export default { ...@@ -762,6 +761,7 @@ export default {
return '批量操作' return '批量操作'
} }
}) })
// 切换图片显示类型 const toggleImageDisplayType = function(person){ person.imageDisplayType = !person.imageDisplayType }
const isSelectedPerson = (id) => { const isSelectedPerson = (id) => {
return selectedPersonList.value.some(item => item.id === id) return selectedPersonList.value.some(item => item.id === id)
...@@ -1138,6 +1138,7 @@ export default { ...@@ -1138,6 +1138,7 @@ export default {
checkChange, checkChange,
expandChange, expandChange,
updatePersonInfoByGroup, updatePersonInfoByGroup,
toggleImageDisplayType,
uploadGroupData, uploadGroupData,
deletePersonRecord, deletePersonRecord,
addPersonnelPool, addPersonnelPool,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!