Commit bff1c36f by Tianqing Liu

feat: 增加分值

1 parent 9d133b15
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
width="90%" width="90%"
height='90%' height='90%'
centered centered
destroyOnClose
class="detail-modal" class="detail-modal"
> >
<div class="person-group"> <div class="person-group">
...@@ -55,7 +56,7 @@ ...@@ -55,7 +56,7 @@
<template v-if="groupList.length > 0"> <template v-if="groupList.length > 0">
<div class="classBox" v-for="row in groupList" :key="row.person_unid"> <div class="classBox" v-for="row in groupList" :key="row.person_unid">
<el-row> <el-row>
<el-col :span="3" v-for="item in row.personList" :key="item.id"> <el-col class="itemBox" :span="3" v-for="item in row.personList" :key="item.id">
<div <div
style="margin: 0 5px" style="margin: 0 5px"
:class="isSelectedImg(item) ? 'actived' : ''" :class="isSelectedImg(item) ? 'actived' : ''"
...@@ -68,6 +69,7 @@ ...@@ -68,6 +69,7 @@
class="single-image"> class="single-image">
</el-image> </el-image>
<p class="featureNum">{{(item.featureNum).toFixed(2)}}</p>
<div>时间:{{ item.counttime }}</div> <div>时间:{{ item.counttime }}</div>
<!--<div>人员类型:{{ item.person_type==1?'店员':(item.person_type==0?'顾客':'未知') }}({{ item.childAdult==1?'成人':(item.childAdult==0?'儿童':'未知') }})</div>--> <!--<div>人员类型:{{ item.person_type==1?'店员':(item.person_type==0?'顾客':'未知') }}({{ item.childAdult==1?'成人':(item.childAdult==0?'儿童':'未知') }})</div>-->
<!--<div>性别:{{ formatGender(item.gender) }}({{item.age}})</div>--> <!--<div>性别:{{ formatGender(item.gender) }}({{item.age}})</div>-->
...@@ -123,6 +125,7 @@ export default { ...@@ -123,6 +125,7 @@ export default {
const initDialog = (data) => { const initDialog = (data) => {
console.log('initDialog', data) console.log('initDialog', data)
formData.value = getInitialFormData() formData.value = getInitialFormData()
groupList.value = []
isVisible.value = true; isVisible.value = true;
...@@ -201,6 +204,7 @@ export default { ...@@ -201,6 +204,7 @@ export default {
images: url, images: url,
}); });
} }
const onCancel = () => { const onCancel = () => {
isVisible.value = false; isVisible.value = false;
groupList.value = [] groupList.value = []
...@@ -296,4 +300,16 @@ export default { ...@@ -296,4 +300,16 @@ export default {
height: auto; height: auto;
margin-bottom: 10px; margin-bottom: 10px;
} }
.itemBox {
position: relative;
.featureNum {
position: absolute;
top: 0;
left: 15px;
color: red;
font-weight: 900;
font-size: 16px;
}
}
</style> </style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!