From e55be0c89f79ccc07ff32e5b5b3d9b9612edf736 Mon Sep 17 00:00:00 2001 From: zhaoyu Date: Tue, 11 Jun 2024 19:15:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B2=A7=E5=B7=9E=E7=9F=BF=E7=9F=B3=E4=BA=BA?= =?UTF-8?q?=E5=91=98=E5=AE=9A=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/map/dialog/index.vue | 22 ++++++++++++- src/views/map/dialog/peoplePositionCzks.vue | 34 ++++++++++++++++++--- src/views/map/index.vue | 26 ++++++++++++++-- 3 files changed, 73 insertions(+), 9 deletions(-) diff --git a/src/views/map/dialog/index.vue b/src/views/map/dialog/index.vue index cb06224..ed4caeb 100644 --- a/src/views/map/dialog/index.vue +++ b/src/views/map/dialog/index.vue @@ -49,7 +49,7 @@ - + @@ -196,6 +196,26 @@ export default { name: { type: String, default: '' + }, + personPhoto: { + type: String, + default: '' + }, + RyDeptName: { + type: String, + default: '' + }, + RyPostName: { + type: String, + default: '' + }, + RyRealName: { + type: String, + default: '' + }, + personTypeName: { + type: String, + default: '' } }, methods: { diff --git a/src/views/map/dialog/peoplePositionCzks.vue b/src/views/map/dialog/peoplePositionCzks.vue index 92255ff..2b2d2c6 100644 --- a/src/views/map/dialog/peoplePositionCzks.vue +++ b/src/views/map/dialog/peoplePositionCzks.vue @@ -9,19 +9,19 @@ 姓名 - {{ info ? info.NAME : '' }} + {{ info?info.NAME:RyRealName }} 部门 - {{ info ? info.DEPARTMENT_NAME : '' }} + {{ info?info.DEPARTMENT_NAME:RyDeptName }} 岗位 - {{ info ? info.POST_NAME : '' }} + {{ info?info.POST_NAME:RyPostName }} 人员类型 - {{ info ? info.PERSON_TYPE : '' }} + {{ info?info.PERSON_TYPE:personTypeName }} 是否为隐患确认人 - {{ info.IS_HAZARDCONFIRMER == 0 ? '否' : '是' }} + {{ info?info.IS_HAZARDCONFIRMER == 1 ?'是':'否' :'否' }} @@ -49,6 +49,30 @@ export default { default() { return '' } + }, + RyDeptName: { + type: String, + default() { + return '' + } + }, + RyPostName: { + type: String, + default() { + return '' + } + }, + RyRealName: { + type: String, + default() { + return '' + } + }, + personTypeName: { + type: String, + default() { + return '' + } } }, data() { diff --git a/src/views/map/index.vue b/src/views/map/index.vue index 95915c3..0ed390f 100644 --- a/src/views/map/index.vue +++ b/src/views/map/index.vue @@ -254,6 +254,11 @@ :gangkou="gangkouActive" :infoname="dialog.infoname" :name="dialog.name" + :person-photo="dialog.personPhoto" + :ry-dept-name="dialog.RyDeptName" + :ry-post-name="dialog.RyPostName" + :ry-real-name="dialog.RyRealName" + :person-type-name="dialog.personTypeName" /> @@ -899,7 +904,12 @@ export default { id: '', corpInfoId: '', width: '', - infoname: '' + infoname: '', + personPhoto: '', + RyDeptName: '', + RyPostName: '', + RyRealName: '', + personTypeName: '' }, /* 曹妃甸使用参数开始*/ // 人员定位 @@ -1504,7 +1514,7 @@ export default { this.bubble(id) } if (this.gangkouActive === '00002' && point_type === 'peoplePositionCzks') { - const { label, point_type, id, corpInfoId, name, infoname } = pick.id._monitoItems.data + const { label, point_type, id, corpInfoId, name, infoname, personPhoto, RyDeptName, RyPostName, RyRealName, personTypeName } = pick.id._monitoItems.data this.dialog.visible = true this.dialog.title = label this.dialog.type = point_type @@ -1512,6 +1522,11 @@ export default { this.dialog.name = name this.dialog.infoname = infoname this.dialog.corpInfoId = corpInfoId + this.dialog.personPhoto = personPhoto + this.dialog.RyDeptName = RyDeptName + this.dialog.RyPostName = RyPostName + this.dialog.RyRealName = RyRealName + this.dialog.personTypeName = personTypeName } if (this.gangkouActive === '00004' && point_type.indexOf('标记点') !== -1 && (point_id.substring(0, 1) === '0' || point_id.substring(0, 1) === '3' || point_id.substring(0, 3) === '1_2' || point_id.substring(0, 3) === '2_8')) { // if (this.gangkouActive === '00004' && point_type.indexOf('标记点') !== -1 && point_id.substring(0, 1) === '0' || point_id.substring(0, 1) === '5') { @@ -2676,9 +2691,14 @@ export default { icon_type: 'img4_0_1', infoname: item.realName, personPhoto: item.personPhoto, + RyDeptName: item.deptName, + RyPostName: item.postName, + RyRealName: item.realName, + personTypeName: item.personTypeName, data_id: item.cardId + '', point_type: 'peoplePositionCzks', - label: item.realName + label: item.realName, + } czksPerLoc.push(perLoc) ry_drag.addEntity(perLoc)