湖里大屏(数字工地):新增点击人脸闸机点显示弹框逻辑
This commit is contained in:
parent
77c3ba4ad7
commit
3930a6a988
@ -6,6 +6,7 @@
|
||||
:class="[`i-${point}`, { show: tabIndex === 0 || point === tabs[tabIndex].value }]"
|
||||
v-for="(point, index) in points"
|
||||
:key="index"
|
||||
@click="handlePoint(point)"
|
||||
></div>
|
||||
<FaceGageDialog v-if="faceGateDialog" :close="() => (faceGateDialog = false)" :data="faceGateData" />
|
||||
</div>
|
||||
@ -45,7 +46,7 @@ export default {
|
||||
{ label: '环境监测', value: 'environment' },
|
||||
{ label: '人脸闸机', value: 'gate' }
|
||||
],
|
||||
faceGateDialog: true,
|
||||
faceGateDialog: false,
|
||||
faceGateData: {
|
||||
list: [],
|
||||
totalAttendance: { inTotalNum: 0, outTotalNum: 0 },
|
||||
@ -57,6 +58,16 @@ export default {
|
||||
changeTab(index) {
|
||||
this.tabIndex = index
|
||||
},
|
||||
handlePoint(point) {
|
||||
console.log(point, 'point')
|
||||
switch (point) {
|
||||
case 'gate':
|
||||
this.faceGateDialog = true
|
||||
break
|
||||
default:
|
||||
break
|
||||
}
|
||||
},
|
||||
selectWorkerAttendanceByDev() {
|
||||
selectWorkerAttendanceByDevApi({
|
||||
projectSn: this.projectSn,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user