Commit ec62dd40 by 李乾广

修改bug

1 parent 3ca4c554
...@@ -36,8 +36,8 @@ ...@@ -36,8 +36,8 @@
<span class="iconExpand" v-show="person.expand"></span> <span class="iconExpand" v-show="person.expand"></span>
<span class="expandWord" @click='expandChange(person)'>{{person.expand?'收起':'展开'}}</span> <span class="expandWord" @click='expandChange(person)'>{{person.expand?'收起':'展开'}}</span>
<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.groupUnid }} 批次id{{ ' ' + person.groupUnid }}
<span style="margin-left: 20px;">图片数量:{{ person.personRecordList.length }}</span> <span style="margin-left: 20px;">图片数量{{ person.personRecordList.length }}</span>
</div> </div>
<el-row v-for="row in getPagedList(person.personRecordList, 8)"> <el-row v-for="row in getPagedList(person.personRecordList, 8)">
<el-col :span="3" v-for="item in row"> <el-col :span="3" v-for="item in row">
...@@ -45,12 +45,12 @@ ...@@ -45,12 +45,12 @@
<el-image :src="item.faceRecognitionVo.picture_url" :fit="'fill'" class="single-image"> <el-image :src="item.faceRecognitionVo.picture_url" :fit="'fill'" class="single-image">
</el-image> </el-image>
<div style="padding-left: 5px;padding-right: 5px;"> <div style="padding-left: 5px;padding-right: 5px;">
<div style="width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;">unid:{{ item.faceRecognitionVo.unid||'--' }}</div> <div style="width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;">unid{{ item.faceRecognitionVo.unid||'--' }}</div>
<div style="width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;">personid:{{ item.faceRecognitionVo.person_unid||'--' }}</div> <div style="width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;">personid{{ item.faceRecognitionVo.person_unid||'--' }}</div>
<div>时间:{{ item.faceRecognitionVo.counttime }}</div> <div>时间{{ item.faceRecognitionVo.counttime }}</div>
<div>类型:{{ item.faceRecognitionVo.person_type==1?'店员':(item.faceRecognitionVo.person_type==0?'顾客':'未知') }}({{ item.faceRecognitionVo.childAdult==1?'成人':(item.faceRecognitionVo.childAdult==0?'儿童':'未知') }})</div> <div>类型{{ item.faceRecognitionVo.person_type==1?'店员':(item.faceRecognitionVo.person_type==0?'顾客':'未知') }}({{ item.faceRecognitionVo.childAdult==1?'成人':(item.faceRecognitionVo.childAdult==0?'儿童':'未知') }})</div>
<div>性别:{{ formatGender(item.faceRecognitionVo.gender) }}({{item.age}})</div> <div>性别{{ formatGender(item.faceRecognitionVo.gender) }}({{item.age}})</div>
<div>地点:{{ item.faceRecognitionVo.gate_name }}</div> <div>地点{{ item.faceRecognitionVo.gate_name }}</div>
</div> </div>
</div> </div>
</el-col> </el-col>
...@@ -109,10 +109,11 @@ ...@@ -109,10 +109,11 @@
const searchCondition = ref({}) const searchCondition = ref({})
if (window.localStorage.getItem('searchCondition')) { if (window.localStorage.getItem('searchCondition')) {
searchCondition.value = JSON.parse(window.localStorage.getItem('searchCondition')); searchCondition.value = JSON.parse(window.localStorage.getItem('searchCondition'));
// queryForm.startTime = searchCondition.value.startTime; queryForm.startTime = searchCondition.value.startTime;
// queryForm.endTime = searchCondition.value.endTime; queryForm.endTime = searchCondition.value.endTime;
queryForm.minNum = searchCondition.value.minNum || 0; queryForm.minNum = searchCondition.value.minNum || 0;
queryForm.maxNum = searchCondition.value.maxNum || 100000; queryForm.maxNum = searchCondition.value.maxNum || 100000;
queryForm.date = searchCondition.value.date;
} }
const onPageNumChange = function(num) { const onPageNumChange = function(num) {
pageNum.value = num pageNum.value = num
......
...@@ -50,19 +50,19 @@ ...@@ -50,19 +50,19 @@
<div class="classBox"> <div class="classBox">
<div> <div>
<div class="boxInfo"> <div class="boxInfo">
<span>记录id:{{ person.personUnid }}</span> <span>记录id{{ person.personUnid }}</span>
<span style="margin-left: 20px;">开始接待时间:{{ person.startTime }}</span> <span style="margin-left: 20px;">开始接待时间{{ person.startTime }}</span>
<span style="margin-left: 20px;">结束接待时间:{{ person.endTime }}</span> <span style="margin-left: 20px;">结束接待时间{{ person.endTime }}</span>
<span style="margin-left: 20px;">接待时长:{{ person.duration }}</span> <span style="margin-left: 20px;">接待时长{{ person.durationStr }}</span>
</div> </div>
<el-row v-for="row in getPagedList(person.customerList, 8)"> <el-row v-for="row in getPagedList(person.customerList, 8)">
<el-col :span="3" v-for="item in row"> <el-col :span="3" v-for="item in row">
<div style="margin: 0 5px" @click="handleClick(item)" :class="currentItemId==item.id?'actived':''"> <div style="margin: 0 5px" @click="handleClick(item)" :class="currentItemId==item.id?'actived':''">
<el-image :src="item.picture_url" :fit="'fill'" class="single-image"></el-image> <el-image :src="item.picture_url" :fit="'fill'" class="single-image"></el-image>
<div>unid:{{ item.unid }}</div> <div style="width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;">unid:{{ item.unid }}</div>
<div>时间:{{ item.counttime }}</div> <div>时间{{ item.counttime }}</div>
<div>性别:{{ formatGender(item.gender) }}({{item.age}})</div> <div>性别{{ formatGender(item.gender) }}({{item.age}})</div>
<div>地点:{{ item.gate_name }}</div> <div>地点{{ item.gate_name }}</div>
</div> </div>
</el-col> </el-col>
</el-row> </el-row>
...@@ -125,9 +125,13 @@ ...@@ -125,9 +125,13 @@
const searchCondition = ref({}) const searchCondition = ref({})
if (window.localStorage.getItem('searchCondition')) { if (window.localStorage.getItem('searchCondition')) {
searchCondition.value = JSON.parse(window.localStorage.getItem('searchCondition')); searchCondition.value = JSON.parse(window.localStorage.getItem('searchCondition'));
queryForm.account_id = searchCondition.value.account_id;
queryForm.plaza_id = searchCondition.value.plaza_id;
queryForm.zone_id = searchCondition.value.zone_id;
queryForm.gate_id = searchCondition.value.gate_id;
queryForm.date = searchCondition.value.date; queryForm.date = searchCondition.value.date;
// queryForm.startTime = searchCondition.value.startTime; queryForm.startTime = searchCondition.value.startTime;
// queryForm.endTime = searchCondition.value.endTime; queryForm.endTime = searchCondition.value.endTime;
} }
const onPageNumChange = function(num) { const onPageNumChange = function(num) {
pageNum.value = num pageNum.value = num
...@@ -280,8 +284,8 @@ ...@@ -280,8 +284,8 @@
zone_id: rawData.zone_id, zone_id: rawData.zone_id,
gate_id: rawData.gate_id, gate_id: rawData.gate_id,
date: rawData.date, date: rawData.date,
startTime: formatDate(rawData.date) + ' ' + formatTime(rawData.startTime), startTime: rawData.startTime,
endTime: formatDate(rawData.date) + ' ' + formatTime(rawData.endTime), endTime: rawData.endTime,
}) })
window.localStorage.setItem('searchCondition', JSON.stringify(storageData)) window.localStorage.setItem('searchCondition', JSON.stringify(storageData))
clusterResultApi.getClusterResultList(data).then( clusterResultApi.getClusterResultList(data).then(
...@@ -289,6 +293,14 @@ ...@@ -289,6 +293,14 @@
isLoading.value = false isLoading.value = false
sortDataList(r.data.pageData) sortDataList(r.data.pageData)
r.data.pageData.forEach((itemPerson) => { r.data.pageData.forEach((itemPerson) => {
let durationH = (itemPerson.duration/1000/3600)<1?0:parseInt(itemPerson.duration/1000/3600);
let durationM = ((itemPerson.duration - (durationH*3600000))/1000/60)<1?0:parseInt((itemPerson.duration - (durationH*3600000))/1000/60);
let durationS = (itemPerson.duration - (durationH*3600000) - (durationM*60000))/1000
durationH = durationH>=10?durationH:'0'+durationH
durationM = durationM>=10?durationM:'0'+durationM
durationS = durationS>=10?durationS:'0'+durationS
console.log(durationH+':'+durationM+':'+durationS)
itemPerson.durationStr = durationH+':'+durationM+':'+durationS
itemPerson.customerList.forEach((item) => { itemPerson.customerList.forEach((item) => {
if (item.features_url) { if (item.features_url) {
item.features_url = window._baseImgUrl + item.features_url item.features_url = window._baseImgUrl + item.features_url
...@@ -463,12 +475,13 @@ ...@@ -463,12 +475,13 @@
.boxInfo { .boxInfo {
line-height: 28px; line-height: 28px;
margin-bottom: 10px; margin-bottom: 10px;
padding-left: 4px;
} }
.classBox { .classBox {
margin: 10px 0; margin: 10px 0;
border: solid 1px black; border: solid 1px black;
height: 485px; height: 440px;
overflow-y: hidden; overflow-y: hidden;
} }
......
...@@ -48,14 +48,13 @@ ...@@ -48,14 +48,13 @@
<div class="resultContent" :style="{'height':contentHeight+'px'}"> <div class="resultContent" :style="{'height':contentHeight+'px'}">
<el-row v-for="row in pagedTableDataList"> <el-row v-for="row in pagedTableDataList">
<el-col :span="3" v-for="item in row"> <el-col :span="3" v-for="item in row">
<div style="margin: 0 5px;cursor: pointer;" @click="handleClick(item)" <div style="margin: 0 5px;cursor: pointer;" @click="handleClick(item)" :class="currentItemId==item.id?'actived':''">
:class="currentItemId==item.id?'actived':''">
<el-image :src="item.picture_url" :fit="'fill'" class="single-image"> <el-image :src="item.picture_url" :fit="'fill'" class="single-image">
</el-image> </el-image>
<div>unid:{{ item.unid }}</div> <div style="width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;">unid:{{ item.unid }}</div>
<div>时间:{{ item.counttime }}</div> <div>时间{{ item.counttime }}</div>
<div>性别:{{ formatGender(item.gender) }}({{item.age}})</div> <div>性别{{ formatGender(item.gender) }}({{item.age}})</div>
<div>地点:{{ item.gate_name }}</div> <div>地点{{ item.gate_name }}</div>
</div> </div>
</el-col> </el-col>
</el-row> </el-row>
...@@ -130,9 +129,13 @@ ...@@ -130,9 +129,13 @@
const searchCondition = ref({}) const searchCondition = ref({})
if (window.localStorage.getItem('searchCondition')) { if (window.localStorage.getItem('searchCondition')) {
searchCondition.value = JSON.parse(window.localStorage.getItem('searchCondition')); searchCondition.value = JSON.parse(window.localStorage.getItem('searchCondition'));
queryForm.account_id = searchCondition.value.account_id;
queryForm.plaza_id = searchCondition.value.plaza_id;
queryForm.zone_id = searchCondition.value.zone_id;
queryForm.gate_id = searchCondition.value.gate_id;
queryForm.date = searchCondition.value.date; queryForm.date = searchCondition.value.date;
// queryForm.startTime = searchCondition.value.startTime; queryForm.startTime = searchCondition.value.startTime;
// queryForm.endTime = searchCondition.value.endTime; queryForm.endTime = searchCondition.value.endTime;
} }
const onPageNumChange = function(num) { const onPageNumChange = function(num) {
pageNum.value = num pageNum.value = num
...@@ -285,8 +288,8 @@ ...@@ -285,8 +288,8 @@
zone_id: rawData.zone_id, zone_id: rawData.zone_id,
gate_id: rawData.gate_id, gate_id: rawData.gate_id,
date: rawData.date, date: rawData.date,
startTime: formatDate(rawData.date) + ' ' + formatTime(rawData.startTime), startTime: rawData.startTime,
endTime: formatDate(rawData.date) + ' ' + formatTime(rawData.endTime), endTime: rawData.endTime,
}) })
window.localStorage.setItem('searchCondition', JSON.stringify(storageData)) window.localStorage.setItem('searchCondition', JSON.stringify(storageData))
snapshotRecordApi.getSnapshotRecordList(data).then( snapshotRecordApi.getSnapshotRecordList(data).then(
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!