diff --git a/src/views/map/dialog/mkGateMachine.vue b/src/views/map/dialog/mkGateMachine.vue index aa3ba24..cb8083a 100644 --- a/src/views/map/dialog/mkGateMachine.vue +++ b/src/views/map/dialog/mkGateMachine.vue @@ -3,10 +3,10 @@
闸机名称 | -{{ info.GATE_MACHINE_NAME }} | +{{ item.GATE_NAME }} | ||||||||
今日进 | -{{ type == 'CAR'? info.CAR_IN : info.PERSON_IN }} | +{{ type == 'CAR'? item.CAR_IN : info.PERSON_IN }} | 今日出 | -{{ type == 'CAR'? info.CAR_OUT : info.PERSON_OUT }} | +{{ type == 'CAR'? item.CAR_OUT : info.PERSON_OUT }} | 当前滞留 | -{{ type == 'CAR'? info.CAR_IN - info.CAR_OUT : info.PERSON_IN - info.PERSON_OUT }} | +{{ type == 'CAR'? item.CAR_IN - item.CAR_OUT : info.PERSON_IN - info.PERSON_OUT }} | ||
@@ -85,13 +85,20 @@ export default { default() { return '' } + }, + GATE_VIDEO_ID: { + type: String, + default() { + return '' + } } }, data() { return { config: config, info: {}, - recordAllList: [] + recordAllList: [], + varList:[] } }, @@ -112,6 +119,7 @@ export default { '/map/getGatesInAndOutNumById', { GATE_AREA_ID: this.id, + GATE_VIDEO_ID: this.GATE_VIDEO_ID, TYPE: this.type, GANGKOU: this.gangkou, CORPINFO_ID: this.corpId @@ -124,12 +132,11 @@ export default { this.info.CAR_OUT = 0 this.info.PERSON_IN = 0 this.info.PERSON_OUT = 0 + this.varList = data.pd.varList for (let i = 0; i < data.pd.varList.length; i++) { - if (data.pd.varList[i].TYPE == 'CAR_IN') { - this.info.CAR_IN = data.pd.varList[i].COUNT - } - if (data.pd.varList[i].TYPE == 'CAR_OUT') { - this.info.CAR_OUT = data.pd.varList[i].COUNT + if (this.type == 'CAR') { + 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 == 'PERSON_IN') { this.info.PERSON_IN = data.pd.varList[i].COUNT @@ -149,6 +156,7 @@ export default { '/map/getGatesInAndOutListById?showCount=10000¤tPage=1', { GATE_AREA_ID: this.id, + GATE_VIDEO_ID: this.GATE_VIDEO_ID, TYPE: this.type, GANGKOU: this.gangkou, CORPINFO_ID: this.corpId |