From 8610c2314a176f6447268bc91c07e8ac1cec3e90 Mon Sep 17 00:00:00 2001 From: fangjiakai <450850793@qq.com> Date: Thu, 5 Sep 2024 13:38:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=B7=E5=BA=B7=E5=8F=A3=E9=97=A8=E9=97=A8?= =?UTF-8?q?=E7=A6=81=E5=9C=B0=E5=9B=BE=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../gatemachine/area/components/edit.vue | 16 + .../gateDoor/components/EditDevice.vue | 5 +- .../gateDoor/components/videoList.vue | 3 +- src/views/map/components/menjin.vue | 17 +- src/views/map/components/menjin2.vue | 469 ++++++++++++++++++ src/views/map/components/menjin_index.vue | 207 ++++++++ src/views/map/index.vue | 44 +- 7 files changed, 729 insertions(+), 32 deletions(-) create mode 100644 src/views/map/components/menjin2.vue create mode 100644 src/views/map/components/menjin_index.vue diff --git a/src/views/gatemachine/area/components/edit.vue b/src/views/gatemachine/area/components/edit.vue index b37c4e5..ed3a9a0 100644 --- a/src/views/gatemachine/area/components/edit.vue +++ b/src/views/gatemachine/area/components/edit.vue @@ -5,6 +5,19 @@
+ + + + + + + + + @@ -105,13 +118,16 @@ export default { DEPARTMENT_ID_OLD: '', DEVICE_NAMES: '', form: { + CORPINFO_ID: '', AREA_NAME: '', AREA_ID: '', DEVICE_IDS: '' }, + corpList: [], riskForm: {}, KEYWORDS: '', rules: { + CORPINFO_ID: [{ required: true, message: '所属分公司不能为空', trigger: 'blur' }], AREA_NAME: [{ required: true, message: '区域名称不为空', trigger: 'blur' }] }, formLabelWidth: '120px', diff --git a/src/views/gatemachine/gateDoor/components/EditDevice.vue b/src/views/gatemachine/gateDoor/components/EditDevice.vue index 474442a..41e2cb3 100644 --- a/src/views/gatemachine/gateDoor/components/EditDevice.vue +++ b/src/views/gatemachine/gateDoor/components/EditDevice.vue @@ -258,7 +258,10 @@ export default { handleAdd() { requestFN( '/mkmjDevice/add', - this.form + { + ...this.form, + CORPINFO_ID: this.$parent.CORPINFO_ID + } ).then((data) => { if (data.msg === '保存成功') { this.$message.success(data.msg) diff --git a/src/views/gatemachine/gateDoor/components/videoList.vue b/src/views/gatemachine/gateDoor/components/videoList.vue index 93ab6ac..adffb11 100644 --- a/src/views/gatemachine/gateDoor/components/videoList.vue +++ b/src/views/gatemachine/gateDoor/components/videoList.vue @@ -431,7 +431,8 @@ export default { PLATFORMVIDEOMANAGEMENT_ID: this.form.PLATFORMVIDEOMANAGEMENT_ID, LONGITUDE: this.form.LONGITUDE, LATITUDE: this.form.LATITUDE, - DOOR_ID: this.form.DOOR_ID + DOOR_ID: this.form.DOOR_ID, + CORPINFO_ID: this.$parent.CORPINFO_ID } ).then((data) => { this.listLoading = false diff --git a/src/views/map/components/menjin.vue b/src/views/map/components/menjin.vue index f8d47f8..e1dfb02 100644 --- a/src/views/map/components/menjin.vue +++ b/src/views/map/components/menjin.vue @@ -135,6 +135,9 @@ export default { } }, created() { + console.info('corpInfoId', this.corpInfoId) + console.info('area', this.area) + console.info('gangkou', this.gangkou) this.getDoorWayRecords(0) this.getOnlineGateMachine() this.getMkmjGateStatistics() @@ -148,7 +151,7 @@ export default { this.initEcharts1() }, beforeDestroy() { - Echarts1 = null + if (Echarts1) { Echarts1 = null } }, methods: { initEcharts1(data) { @@ -160,7 +163,7 @@ export default { XaxisData.push(e.AREA_NAME) seriesData1.push(e.CAR_IN + 0 + e.PEOPLE_IN) seriesData2.push(e.CAR_OUT + 0 + e.PEOPLE_OUT) - }); + }) Echarts1 = echarts.init(document.querySelector('#main1')) const option = { @@ -301,24 +304,22 @@ export default { '/map/getOnlineGateMachine', { AREA: this.area, CORPINFO_ID: this.corpInfoId, - GANGKOU: this.gangkou, + GANGKOU: this.gangkou } ).then((data) => { data.varList.forEach(e => { - if (e.AREA_PARENT_ID == '393705'){ + if (e.AREA_PARENT_ID == '393705') { // 东港区 this.block1OptionsList[0].count1 = e.AREA_COUNT this.block1OptionsList[0].count2 = e.CAR this.block1OptionsList[0].count3 = e.PEOPLE - }else if (e.AREA_PARENT_ID == '371709'){ + } else if (e.AREA_PARENT_ID == '371709') { // 西港区 this.block1OptionsList[1].count1 = e.AREA_COUNT this.block1OptionsList[1].count2 = e.CAR this.block1OptionsList[1].count3 = e.PEOPLE } - - }); - + }) }) }, getDoorManagement() { diff --git a/src/views/map/components/menjin2.vue b/src/views/map/components/menjin2.vue new file mode 100644 index 0000000..65bb03d --- /dev/null +++ b/src/views/map/components/menjin2.vue @@ -0,0 +1,469 @@ + + + + + diff --git a/src/views/map/components/menjin_index.vue b/src/views/map/components/menjin_index.vue new file mode 100644 index 0000000..00b8d54 --- /dev/null +++ b/src/views/map/components/menjin_index.vue @@ -0,0 +1,207 @@ + + + + + diff --git a/src/views/map/index.vue b/src/views/map/index.vue index 5f017d6..d346820 100644 --- a/src/views/map/index.vue +++ b/src/views/map/index.vue @@ -226,13 +226,13 @@ enter-active-class="animate__animated animate__fadeInDown" leave-active-class="animate__animated animate__fadeOutUp" > -
- - - - 搜索 - 重置 -
+
+ + + + 搜索 + 重置 +
@@ -256,7 +256,7 @@ :gangkou="gangkouActive" :infoname="dialog.infoname" :name="dialog.name" - :GATE_VIDEO_ID="dialog.GATE_VIDEO_ID" + :gate-video-id="dialog.GATE_VIDEO_ID" :person-photo="dialog.personPhoto" :ry-dept-name="dialog.RyDeptName" :ry-post-name="dialog.RyPostName" @@ -280,7 +280,7 @@ import cmtIndex from './components/cmt_index.vue' import menjinCzks from './components/menjinCzks.vue' import renyuanCzks from './components/renyuanCzks.vue' import renyuanCmt from './components/renyuanCmt.vue' -import menjin from './components/menjin.vue' +import menjin from './components/menjin_index.vue' import menjinOld from './components/menjin_old.vue' import menjinCfd from './components/menjinCfd.vue' import menjinCmt from './components/menjinCmt.vue' @@ -925,7 +925,7 @@ export default { RyPostName: '', RyRealName: '', personTypeName: '', - GATE_VIDEO_ID:'' + GATE_VIDEO_ID: '' }, /* 曹妃甸使用参数开始*/ // 人员定位 @@ -1215,8 +1215,8 @@ export default { VIIDPort: '8088' }, trajectoryEntityCollection: {}, - isPeopleTrajectory:false, - peopleTrajectoryValue:'' + isPeopleTrajectory: false, + peopleTrajectoryValue: '' } }, mounted() { @@ -1435,7 +1435,7 @@ export default { } const point_type = pick.id._monitoItems.data.point_type const point_id = pick.id._monitoItems.data.id - if (point_type == '标记点CAMERA'){ + if (point_type == '标记点CAMERA') { console.log(pick.id._monitoItems.data) this.dialog.GATE_VIDEO_ID = pick.id._monitoItems.data.GATE_VIDEO_ID } @@ -2121,7 +2121,7 @@ export default { } this.carLocArr = [] } - if(urlType === 'peopleTrajectory'){ + if (urlType === 'peopleTrajectory') { this.isPeopleTrajectory = false } if (this.gangkouActive === '00003' && this.CORP_INFO_ID === '035958e685cf4850bc40151c5e0617a6' && urlType === 'peoplePosition') { @@ -2129,8 +2129,8 @@ export default { this.clearMqttPoint('+/UwbBQ/') this.removeTrajectory() for (let i = 0; i < this.bottomOptionsList[pindex].list.length; i++) { - if(this.bottomOptionsList[pindex].list[i].type === 'peopleTrajectory'){ - if(this.bottomOptionsList[pindex].list[i].check){ + if (this.bottomOptionsList[pindex].list[i].type === 'peopleTrajectory') { + if (this.bottomOptionsList[pindex].list[i].check) { this.bottomOptionsList[pindex].list[i].check = false this.isPeopleTrajectory = false break @@ -2154,20 +2154,20 @@ export default { } }) } else { - if(urlType === 'peopleTrajectory'){ + if (urlType === 'peopleTrajectory') { let flag = false for (let i = 0; i < this.bottomOptionsList[pindex].list.length; i++) { - if(this.bottomOptionsList[pindex].list[i].type === 'peoplePosition'){ - if(!this.bottomOptionsList[pindex].list[i].check){ + if (this.bottomOptionsList[pindex].list[i].type === 'peoplePosition') { + if (!this.bottomOptionsList[pindex].list[i].check) { flag = true break } } } - if(flag){ + if (flag) { this.$message.warning('请先选择人员定位!!!') return - }else{ + } else { this.isPeopleTrajectory = true } } @@ -2652,7 +2652,7 @@ export default { personTypeName: item.personTypeName, data_id: item.cardId + '', point_type: 'peoplePositionCzks', - label: item.realName, + label: item.realName } czksPerLoc.push(perLoc)