|
@@ -1,20 +1,20 @@
|
|
|
<template>
|
|
|
<div>
|
|
|
<common @asynCallBack="asynCallBack"></common>
|
|
|
- <top-header :pageTitle="companyName+pageTitle"></top-header>
|
|
|
+ <top-header :pageTitle="pageTitle"></top-header>
|
|
|
|
|
|
<div class="mui-content fyy-wall">
|
|
|
<div id="slider" class="mui-slider mui-fullscreen fyy-slider vongi-fkwall">
|
|
|
<div id="sliderSegmentedControl" class="mui-scroll-wrapper mui-slider-indicator mui-segmented-control mui-segmented-control-inverted">
|
|
|
<div class="mui-scroll">
|
|
|
<a class="mui-control-item " :class=" nowItem==''?'mui-active':''" @click="changeItem('')" style="width:30%">
|
|
|
- 全部测温记录
|
|
|
+ 全部
|
|
|
</a>
|
|
|
<a class="mui-control-item" :class=" nowItem=='person'?'mui-active':''" @click="changeItem('person')" style="width:36%">
|
|
|
- 内部员工测温记录
|
|
|
+ 正常记录
|
|
|
</a>
|
|
|
<a class="mui-control-item" :class=" nowItem=='visitor'?'mui-active':''" @click="changeItem('visitor')" style="width:34%">
|
|
|
- 访客测温记录
|
|
|
+ 异常记录
|
|
|
</a>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -61,13 +61,19 @@
|
|
|
import Common from '$project/components/Common.vue'
|
|
|
import Loading from '$project/components/Loading.vue'
|
|
|
import TopHeader from '$project/components/TopHeader.vue'
|
|
|
+ import isReachBottom from '$project/utils/isReachBottom'
|
|
|
|
|
|
+ import {
|
|
|
+ parseUnixTime,
|
|
|
+ currentTimeStamp
|
|
|
+
|
|
|
+ } from '$project/utils'
|
|
|
import {
|
|
|
mapGetters,
|
|
|
mapMutations
|
|
|
} from 'vuex'
|
|
|
export default {
|
|
|
- name: 'MasterAttendanceInfo',
|
|
|
+ name: 'HouseKeeperControlHealthGuestTemperature',
|
|
|
components: {
|
|
|
Common,
|
|
|
Loading,
|
|
@@ -90,7 +96,7 @@
|
|
|
queryDate: '',
|
|
|
|
|
|
totalPage: 1,
|
|
|
- type: ''
|
|
|
+ type: 'visitor'
|
|
|
},
|
|
|
//总访客数
|
|
|
recordsTotal: 0,
|
|
@@ -106,12 +112,8 @@
|
|
|
},
|
|
|
created() {
|
|
|
//赋值时间
|
|
|
- var now = new Date();
|
|
|
- var year = now.getFullYear(); //得到年份
|
|
|
- var month = now.getMonth();//得到月份
|
|
|
- var date = now.getDate();//得到日期
|
|
|
+ this.queryDate = parseUnixTime(currentTimeStamp(), '{y}-{m}-{d}');
|
|
|
|
|
|
- this.queryDate = year+"-"+month+"-"+date;
|
|
|
this.detailForm.queryDate = this.queryDate;
|
|
|
this.listForm.queryDate = this.queryDate;
|
|
|
|
|
@@ -154,7 +156,7 @@
|
|
|
//item切换事件
|
|
|
changeItem(type) {
|
|
|
this.nowItem = type;
|
|
|
- this.listForm.type = type;
|
|
|
+ //this.listForm.type = type;
|
|
|
this.listForm.pageIndex = 1;
|
|
|
this.getList();
|
|
|
},
|
|
@@ -165,7 +167,7 @@
|
|
|
if (list[index]['person'] == undefined) {
|
|
|
var voindex = this.recordsTotal - vtindex;
|
|
|
vtindex++;
|
|
|
- list[index]['personName'] = list[index]['personName'] != '未识别' ? list[index]['personName'] : '访客' + voindex;
|
|
|
+ list[index]['personName'] = list[index]['matchStatus'] != '2' ? list[index]['personName'] : '访客' + voindex;
|
|
|
list[index]['isVistor'] = true;
|
|
|
} else {
|
|
|
list[index]['personName'] = list[index]['person']['name'];
|