Commit 0931e64f by Tianqing Liu

feat: 聚类弹窗,人员分类完成,op

1 parent d12d07cd
...@@ -50,29 +50,32 @@ ...@@ -50,29 +50,32 @@
</el-row> </el-row>
</div> </div>
<div class="right-part"> <div class="right-part">
<div class="classBox" v-for="row in groupList" :key="row.person_unid"> <template v-if="groupList.length > 0">
<el-row> <div class="classBox" v-for="row in groupList" :key="row.person_unid">
<el-col :span="3" v-for="item in row.personList" :key="item.id"> <el-row>
<div <el-col :span="3" v-for="item in row.personList" :key="item.id">
style="margin: 0 5px" <div
:class="isSelectedImg(item) ? 'actived' : ''" style="margin: 0 5px"
@click="handleSelectImg(item)" :class="isSelectedImg(item) ? 'actived' : ''"
> @click="handleSelectImg(item)"
>
<el-image :src="formatImgUrl(item.picture_url)" <el-image :src="formatImgUrl(item.picture_url)"
:fit="'fill'" :fit="'fill'"
class="single-image"> class="single-image">
</el-image> </el-image>
<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>-->
<!--<div class="direction" :class="'direction'+item.direction">方向:{{ formatDirection(item.direction) }}</div>--> <!--<div class="direction" :class="'direction'+item.direction">方向:{{ formatDirection(item.direction) }}</div>-->
<div>地点:{{ item.gate_name }}</div> <div>地点:{{ item.gate_name }}</div>
</div> </div>
</el-col> </el-col>
</el-row> </el-row>
</div> </div>
</template>
<a-empty style="margin-top: 200px;" v-else />
</div> </div>
</div> </div>
</div> </div>
...@@ -95,6 +98,7 @@ export default { ...@@ -95,6 +98,7 @@ export default {
setup(props, { emit }) { setup(props, { emit }) {
const isVisible = ref(false); const isVisible = ref(false);
const personList = ref([]) const personList = ref([])
// 右侧分组
const groupList = ref([]) const groupList = ref([])
const currentPerson = ref({}) const currentPerson = ref({})
// 表单 // 表单
...@@ -185,6 +189,7 @@ export default { ...@@ -185,6 +189,7 @@ export default {
} }
const onCancel = () => { const onCancel = () => {
isVisible.value = false; isVisible.value = false;
groupList.value = []
}; };
const isLoading = ref(false) const isLoading = ref(false)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!