门口门禁-车辆标点进出统计

liujun-2024-06-18-文本库新需求
water_xu 2024-06-14 17:28:18 +08:00
parent 82ca607e78
commit 7b3cda2706
1 changed files with 19 additions and 11 deletions

View File

@ -3,10 +3,10 @@
<div v-if= "type !== 'CAMERA'" class="level-title"> <div v-if= "type !== 'CAMERA'" class="level-title">
<h1>区域名称{{ info.GATE_AREA_NAME }}</h1> <h1>区域名称{{ info.GATE_AREA_NAME }}</h1>
</div> </div>
<table v-if= "type !== 'CAMERA'" class="table-ui"> <table v-for="(item,index) in varList" :key="index" v-if= "type !== 'CAMERA'" class="table-ui">
<tr> <tr>
<td class="bbg-transparent">闸机名称</td> <td class="bbg-transparent">闸机名称</td>
<td colspan="5">{{ info.GATE_MACHINE_NAME }}</td> <td colspan="5">{{ item.GATE_NAME }}</td>
</tr> </tr>
<!-- <tr>--> <!-- <tr>-->
<!-- <td class="bbg-transparent">型号</td>--> <!-- <td class="bbg-transparent">型号</td>-->
@ -14,11 +14,11 @@
<!-- </tr>--> <!-- </tr>-->
<tr> <tr>
<td class="bbg-transparent">今日进</td> <td class="bbg-transparent">今日进</td>
<td>{{ type == 'CAR'? info.CAR_IN : info.PERSON_IN }}</td> <td width="60px">{{ type == 'CAR'? item.CAR_IN : info.PERSON_IN }}</td>
<td class="bbg-transparent">今日出</td> <td class="bbg-transparent">今日出</td>
<td>{{ type == 'CAR'? info.CAR_OUT : info.PERSON_OUT }}</td> <td width="60px">{{ type == 'CAR'? item.CAR_OUT : info.PERSON_OUT }}</td>
<td class="bbg-transparent">当前滞留</td> <td class="bbg-transparent">当前滞留</td>
<td>{{ type == 'CAR'? info.CAR_IN - info.CAR_OUT : info.PERSON_IN - info.PERSON_OUT }}</td> <td width="60px">{{ type == 'CAR'? item.CAR_IN - item.CAR_OUT : info.PERSON_IN - info.PERSON_OUT }}</td>
</tr> </tr>
<tr v-if="type == 'PERSON'"> <tr v-if="type == 'PERSON'">
<td colspan="6"> <td colspan="6">
@ -85,13 +85,20 @@ export default {
default() { default() {
return '' return ''
} }
},
GATE_VIDEO_ID: {
type: String,
default() {
return ''
}
} }
}, },
data() { data() {
return { return {
config: config, config: config,
info: {}, info: {},
recordAllList: [] recordAllList: [],
varList:[]
} }
}, },
@ -112,6 +119,7 @@ export default {
'/map/getGatesInAndOutNumById', '/map/getGatesInAndOutNumById',
{ {
GATE_AREA_ID: this.id, GATE_AREA_ID: this.id,
GATE_VIDEO_ID: this.GATE_VIDEO_ID,
TYPE: this.type, TYPE: this.type,
GANGKOU: this.gangkou, GANGKOU: this.gangkou,
CORPINFO_ID: this.corpId CORPINFO_ID: this.corpId
@ -124,12 +132,11 @@ export default {
this.info.CAR_OUT = 0 this.info.CAR_OUT = 0
this.info.PERSON_IN = 0 this.info.PERSON_IN = 0
this.info.PERSON_OUT = 0 this.info.PERSON_OUT = 0
this.varList = data.pd.varList
for (let i = 0; i < data.pd.varList.length; i++) { for (let i = 0; i < data.pd.varList.length; i++) {
if (data.pd.varList[i].TYPE == 'CAR_IN') { if (this.type == 'CAR') {
this.info.CAR_IN = data.pd.varList[i].COUNT this.info.CAR_IN = data.pd.varList[i].CAR_IN
} this.info.CAR_OUT = data.pd.varList[i].CAR_OUT
if (data.pd.varList[i].TYPE == 'CAR_OUT') {
this.info.CAR_OUT = data.pd.varList[i].COUNT
} }
if (data.pd.varList[i].TYPE == 'PERSON_IN') { if (data.pd.varList[i].TYPE == 'PERSON_IN') {
this.info.PERSON_IN = data.pd.varList[i].COUNT this.info.PERSON_IN = data.pd.varList[i].COUNT
@ -149,6 +156,7 @@ export default {
'/map/getGatesInAndOutListById?showCount=10000&currentPage=1', '/map/getGatesInAndOutListById?showCount=10000&currentPage=1',
{ {
GATE_AREA_ID: this.id, GATE_AREA_ID: this.id,
GATE_VIDEO_ID: this.GATE_VIDEO_ID,
TYPE: this.type, TYPE: this.type,
GANGKOU: this.gangkou, GANGKOU: this.gangkou,
CORPINFO_ID: this.corpId CORPINFO_ID: this.corpId