diff --git a/src/views/gatemachine/area/components/EditDevice.vue b/src/views/gatemachine/second/area/components/EditDevice.vue
similarity index 100%
rename from src/views/gatemachine/area/components/EditDevice.vue
rename to src/views/gatemachine/second/area/components/EditDevice.vue
diff --git a/src/views/gatemachine/area/components/edit.vue b/src/views/gatemachine/second/area/components/edit.vue
similarity index 100%
rename from src/views/gatemachine/area/components/edit.vue
rename to src/views/gatemachine/second/area/components/edit.vue
diff --git a/src/views/gatemachine/area/components/infoList.vue b/src/views/gatemachine/second/area/components/infoList.vue
similarity index 100%
rename from src/views/gatemachine/area/components/infoList.vue
rename to src/views/gatemachine/second/area/components/infoList.vue
diff --git a/src/views/gatemachine/area/components/list.vue b/src/views/gatemachine/second/area/components/list.vue
similarity index 100%
rename from src/views/gatemachine/area/components/list.vue
rename to src/views/gatemachine/second/area/components/list.vue
diff --git a/src/views/gatemachine/area/components/listDevice.vue b/src/views/gatemachine/second/area/components/listDevice.vue
similarity index 100%
rename from src/views/gatemachine/area/components/listDevice.vue
rename to src/views/gatemachine/second/area/components/listDevice.vue
diff --git a/src/views/gatemachine/area/index.vue b/src/views/gatemachine/second/area/index.vue
similarity index 100%
rename from src/views/gatemachine/area/index.vue
rename to src/views/gatemachine/second/area/index.vue
diff --git a/src/views/gatemachine/gateDoor/components/EditDevice.vue b/src/views/gatemachine/second/gateDoor/components/EditDevice.vue
similarity index 100%
rename from src/views/gatemachine/gateDoor/components/EditDevice.vue
rename to src/views/gatemachine/second/gateDoor/components/EditDevice.vue
diff --git a/src/views/gatemachine/gateDoor/components/EditPath.vue b/src/views/gatemachine/second/gateDoor/components/EditPath.vue
similarity index 100%
rename from src/views/gatemachine/gateDoor/components/EditPath.vue
rename to src/views/gatemachine/second/gateDoor/components/EditPath.vue
diff --git a/src/views/gatemachine/gateDoor/components/ListDevice.vue b/src/views/gatemachine/second/gateDoor/components/ListDevice.vue
similarity index 100%
rename from src/views/gatemachine/gateDoor/components/ListDevice.vue
rename to src/views/gatemachine/second/gateDoor/components/ListDevice.vue
diff --git a/src/views/gatemachine/gateDoor/components/edit.vue b/src/views/gatemachine/second/gateDoor/components/edit.vue
similarity index 98%
rename from src/views/gatemachine/gateDoor/components/edit.vue
rename to src/views/gatemachine/second/gateDoor/components/edit.vue
index e3f3c09..6f1a96d 100644
--- a/src/views/gatemachine/gateDoor/components/edit.vue
+++ b/src/views/gatemachine/second/gateDoor/components/edit.vue
@@ -77,14 +77,14 @@ import Pagination from '@/components/Pagination' // 通过 el-pagination二次
import { requestFN } from '@/utils/request'
import SelectTree from '@/components/SelectTree'
import waves from '@/directive/waves'
-import TiandiMap from '../../../../components/TianMap/TiandiMap'
+import TiandiMap from '../../../../../components/TianMap/TiandiMap'
let viewer = null
const Cesium = window.Cesium
Cesium.Ion.defaultAccessToken = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiJkOWQ0MGYwMy0yODUwLTQ1YzktOGM4OC02MTMwY2UyZjNlMzQiLCJpZCI6MTY0NTUwLCJpYXQiOjE2OTM4OTU1Mjd9.1cC0sSzyj79LZv0ILNCcl0Mabw6hl8TNngFNFr7H8f4'
var subdomains = ['0', '1', '2', '3', '4', '5', '6', '7']
var tiandituTk = 'e8a16137fd226a62a23cc7ba5c9c78ce'
-const img_h = require('../../../../assets/images/map/h.png')
+const img_h = require('../../../../../assets/images/map/h.png')
export default {
components: { Pagination, SelectTree, TiandiMap },
diff --git a/src/views/gatemachine/gateDoor/components/infoList.vue b/src/views/gatemachine/second/gateDoor/components/infoList.vue
similarity index 100%
rename from src/views/gatemachine/gateDoor/components/infoList.vue
rename to src/views/gatemachine/second/gateDoor/components/infoList.vue
diff --git a/src/views/gatemachine/gateDoor/components/list.vue b/src/views/gatemachine/second/gateDoor/components/list.vue
similarity index 99%
rename from src/views/gatemachine/gateDoor/components/list.vue
rename to src/views/gatemachine/second/gateDoor/components/list.vue
index 6fde6db..141057a 100644
--- a/src/views/gatemachine/gateDoor/components/list.vue
+++ b/src/views/gatemachine/second/gateDoor/components/list.vue
@@ -191,7 +191,8 @@ export default {
requestFN(
'/mkmjDoor/list?showCount=' + this.listQuery.limit + '¤tPage=' + this.listQuery.page,
{
- KEYWORDS: this.KEYWORDS
+ KEYWORDS: this.KEYWORDS,
+ AREA_LEVEL: '2'
}
).then((data) => {
this.listLoading = false
diff --git a/src/views/gatemachine/gateDoor/components/listPath.vue b/src/views/gatemachine/second/gateDoor/components/listPath.vue
similarity index 100%
rename from src/views/gatemachine/gateDoor/components/listPath.vue
rename to src/views/gatemachine/second/gateDoor/components/listPath.vue
diff --git a/src/views/gatemachine/gateDoor/components/platformvideo.vue b/src/views/gatemachine/second/gateDoor/components/platformvideo.vue
similarity index 100%
rename from src/views/gatemachine/gateDoor/components/platformvideo.vue
rename to src/views/gatemachine/second/gateDoor/components/platformvideo.vue
diff --git a/src/views/gatemachine/gateDoor/components/videoList.vue b/src/views/gatemachine/second/gateDoor/components/videoList.vue
similarity index 99%
rename from src/views/gatemachine/gateDoor/components/videoList.vue
rename to src/views/gatemachine/second/gateDoor/components/videoList.vue
index b26d7c8..7ff3258 100644
--- a/src/views/gatemachine/gateDoor/components/videoList.vue
+++ b/src/views/gatemachine/second/gateDoor/components/videoList.vue
@@ -145,7 +145,7 @@ import Pagination from '@/components/Pagination' // 通过 el-pagination二次
import { requestFN } from '@/utils/request'
import waves from '@/directive/waves'
import Platformvideo from './platformvideo'
-import TiandiMap from '../../../../components/TianMap/TiandiMap'
+import TiandiMap from '../../../../../components/TianMap/TiandiMap'
export default {
components: { Platformvideo, Pagination, TiandiMap },
diff --git a/src/views/gatemachine/gateDoor/index.vue b/src/views/gatemachine/second/gateDoor/index.vue
similarity index 100%
rename from src/views/gatemachine/gateDoor/index.vue
rename to src/views/gatemachine/second/gateDoor/index.vue
diff --git a/src/views/gatemachine/second/index.vue b/src/views/gatemachine/second/index.vue
new file mode 100644
index 0000000..98240ae
--- /dev/null
+++ b/src/views/gatemachine/second/index.vue
@@ -0,0 +1,3 @@
+
+
+
diff --git a/src/views/hidden/hiddenRepeatedTimes/components/detail.vue b/src/views/hidden/hiddenRepeatedTimes/components/detail.vue
new file mode 100644
index 0000000..285471d
--- /dev/null
+++ b/src/views/hidden/hiddenRepeatedTimes/components/detail.vue
@@ -0,0 +1,148 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查看
+
+
+
+
+
+
+
+
diff --git a/src/views/hidden/hiddenRepeatedTimes/components/info.vue b/src/views/hidden/hiddenRepeatedTimes/components/info.vue
new file mode 100644
index 0000000..12481bb
--- /dev/null
+++ b/src/views/hidden/hiddenRepeatedTimes/components/info.vue
@@ -0,0 +1,602 @@
+
+
+
+
+
+
隐患信息
+
+
+
+
+ 隐患来源 |
+
+ {{ translate(pd.SOURCE.toString() =='3'?'2':pd.SOURCE.toString(), sourceList) }} |
+
+
+
+ 隐患描述 |
+ {{ pd.HIDDENDESCR }} |
+
+
+
+ 风险点(单元) |
+ {{ pd.RISK_UNIT }} |
+
+
+ 辨识部位 |
+ {{ pd.IDENTIFICATION }} |
+
+
+ 存在风险 |
+ {{ pd.RISK_DESCR }} |
+
+
+ 风险分级 |
+ {{ pd.LEVEL }} |
+
+
+ 检查内容 |
+ {{ pd.CHECK_CONTENT }} |
+
+
+
+ 隐患级别 |
+ {{ pd.editLevelName?pd.editLevelName:pd.HIDDENLEVELNAME }} |
+
+
+ 隐患类型 |
+ {{ pd.HIDDENTYPENAME }} |
+
+
+ 隐患状态 |
+
+
+ {{ translate(pd.STATE.toString(), statusList) }}
+
+ |
+
+
+ 隐患部位 |
+ {{ pd.hregionName?pd.hregionName:pd.HIDDENPART }} |
+
+
+ 隐患上报位置 |
+ 经度:{{ pd.LONGITUDE }} , 纬度:{{ pd.LATITUDE }} |
+
+
+ 隐患位置描述 |
+ {{ pd.POSITIONDESC }} |
+
+
+ 隐患图片 |
+
+
+
+
+ |
+
+
+ 重复的隐患图片 |
+
+
+
+
+ |
+
+
+ 隐患视频 |
+
+ 隐患视频
+ |
+
+
+ 隐患发现人 |
+ {{ item.NAME }} |
+
+
+ 隐患发现时间 |
+ {{ formatDate(pd.DISCOVERYTIME,'YYYY-MM-DD HH:mm:ss') }} |
+
+
+ 整改类型 |
+
+
+ 立即整改
+
+
+ 限期整改
+
+ |
+
+
+ 整改负责部门 |
+ {{ pd.editDeptName ?pd.editDeptName :pd.RECTIFICATIONDEPTNAME }} |
+
+
+ 整改负责人 |
+ {{ pd.editUserName ?pd.editUserName :pd.RECTIFICATIONORNAME }} |
+
+
+ 整改期限 |
+ {{ pd.RECTIFICATIONDEADLINE }} |
+
+
+ 是否相关方 |
+ {{ pd.ISRELEVANT=='1'?'是':'否' }} |
+
+
+
+ 打回原因 |
+ {{ item.REPULSE_CAUSE }} |
+
+
+
+
+ 打回时间 |
+ {{ item.OPERATTIME }} |
+
+
+
+
+
+
+
+
+
+
确认信息
+
+
+ 隐患级别 |
+ {{ item.editLevelName }} |
+
+
+ 整改负责人 |
+ {{ item.editUserName }} |
+
+
+ 整改完成期限 |
+ {{ item.spare3 }} |
+
+
+ 隐患确认人 |
+ {{ pd.conUserName }} |
+
+
+ 隐患确认时间 |
+ {{ pd.CONFIRM_TIME }} |
+
+
+
+
+
延期信息
+
+
+ 申请延期日期 |
+ {{ item.DELAY_TIME }} |
+
+
+ 审核人 |
+ {{ pd.conUserName }} |
+
+
+ 处置方案 |
+ {{ item.DISPOSAL_PLAN }} |
+
+
+ 方案附件 |
+ [预览] |
+
+
+ 延期审核状态 |
+
+ 待审核 |
+
+
+ 通过 |
+
+
+ 未通过 |
+
+
+
+ 审核时间 |
+ {{ item.OPERATTIME }} |
+
+
+
+
+
特殊处理审核信息
+
+
+ 无法整改原因 |
+ {{ item.EXAMINE }} |
+
+
+ 特殊处置审核状态 |
+
+ 待审核 |
+
+
+ 通过 |
+
+
+ 未通过 |
+
+
+
+ 处置方案 |
+ {{ item.DISPOSAL_PLAN }} |
+
+
+ 处置方案附件 |
+ [预览] |
+
+
+ 审核时间 |
+ {{ item.OPERATTIME }} |
+
+
+ 审核人 |
+ {{ pd.conUserName }} |
+
+
+ 是否更换整改负责人 |
+ 是 |
+ 否 |
+
+
+ 是否更换整改负责人 |
+ 否 |
+ 是 |
+
+
+ 更换整改负责人姓名 |
+ {{ item.NEWRECTIFICATIONOR }} |
+
+
+
+
+
+
+
整改信息
+
+
+
+ 整改描述 |
+ {{ pd.RECTIFYDESCR }} |
+
+
+
+ 整改部门 |
+ {{ pd.RECTIFICATIONDEPTNAME }} |
+
+
+ 整改人 |
+ {{ pd.RECTIFICATIONORNAME }} |
+
+
+ 整改时间 |
+ {{ pd.RECTIFICATIONTIME }} |
+
+
+ 投入资金 |
+ {{ pd.INVESTMENT_FUNDS }}元 |
+
+
+ 整改后图片 |
+
+
+
+
+ |
+
+
+ 整改方案 |
+ 无 |
+ 有 |
+ |
+
+
+ 排查日期 |
+ {{ hs.SCREENINGDATE }} |
+
+
+ 隐患清单 |
+ {{ hs.LISTNAME }} |
+
+
+ 治理标准要求 |
+ {{ hs.GOVERNSTANDARDS }} |
+
+
+ 治理方法 |
+ {{ hs.GOVERNMETHOD }} |
+
+
+ 经费和物资的落实 |
+ {{ hs.EXPENDITURE }} |
+
+
+ 负责治理人员 |
+ {{ hs.PRINCIPAL }} |
+
+
+ 工时安排 |
+ {{ hs.PROGRAMMING }} |
+
+
+ 时限要求 |
+ {{ hs.TIMELIMITFOR }} |
+
+
+ 工作要求 |
+ {{ hs.JOBREQUIREMENT }} |
+
+
+ 其他事项 |
+ {{ hs.OTHERBUSINESS }} |
+
+
+ 方案图片 |
+
+
+
+
+ |
+
+
+
+
+
+
+
+
验收信息
+
+
+
+
+ 验收描述 |
+ {{ data.CHECKDESCR }} |
+
+
+ 是否合格 |
+
+
+ 是
+
+
+ 否
+
+ |
+
+
+ 验收部门 |
+ {{ data.CHECKDEPTNAME }} |
+
+
+ 验收人 |
+ {{ data.CHECKORNAME }} |
+
+
+
+ 验收时间 |
+ {{ data.CHECK_TIME }} |
+
+
+ 验收图片 |
+
+
+
+
+ |
+
+
+
+
+
+
+ 验收人 |
+ {{ pd.CHECKORNAME }} |
+
+
+
+
+
+
+
+
+
验收打回信息
+
+
+
+ 验收打回意见 |
+ {{ returnInformation.EXAMINE }} |
+
+
+ 验收人 |
+ {{ returnInformation.CREATORNAME }} |
+
+
+ 验收时间 |
+ {{ returnInformation.CREATTIME }} |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/hidden/hiddenRepeatedTimes/components/list.vue b/src/views/hidden/hiddenRepeatedTimes/components/list.vue
new file mode 100644
index 0000000..e82936a
--- /dev/null
+++ b/src/views/hidden/hiddenRepeatedTimes/components/list.vue
@@ -0,0 +1,100 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
暂无图片
+
+ 预览
+
+
+
+
+
+
+ 详情
+
+
+
+
+
+
+
diff --git a/src/views/hidden/hiddenRepeatedTimes/index.vue b/src/views/hidden/hiddenRepeatedTimes/index.vue
new file mode 100644
index 0000000..605cddc
--- /dev/null
+++ b/src/views/hidden/hiddenRepeatedTimes/index.vue
@@ -0,0 +1,27 @@
+
+
+
+
+
+
+
+
diff --git a/src/views/map/components/fengongsi_index.vue b/src/views/map/components/fengongsi_index.vue
index ba0078d..685a260 100644
--- a/src/views/map/components/fengongsi_index.vue
+++ b/src/views/map/components/fengongsi_index.vue
@@ -35,7 +35,7 @@
{{ item.label }}
-
+
@@ -83,7 +83,6 @@ export default {
timer: '',
value: 0,
riskIdentificationCount: {},
- personPositioningCount: {},
doorManagementList: [],
block1OptionsList: [
{
@@ -346,15 +345,17 @@ export default {
})
},
getPersonPositioningCount() {
- // requestFN(
- // '/map/getPersonPositioningCount',
- // {
- // CORPINFO_ID: this.corpInfoId,
- // GANGKOU: this.gangkou
- // }
- // ).then((data) => {
- // this.personPositioningCount = data.personPositioningCount
- // })
+ requestFN(
+ '/map/getPersonPositioningCount',
+ {
+ CORPINFO_ID: this.corpInfoId,
+ GANGKOU: this.gangkou
+ }
+ ).then((data) => {
+ this.block3OptionsList[0].count = data.personPositioningCount[0]
+ this.block3OptionsList[1].count = data.personPositioningCount[1]
+ this.block3OptionsList[2].count = data.personPositioningCount[2]
+ })
}
}
}
diff --git a/src/views/map/index.vue b/src/views/map/index.vue
index d2b4712..a43ab61 100644
--- a/src/views/map/index.vue
+++ b/src/views/map/index.vue
@@ -147,6 +147,7 @@
:class="['option','option'+index,{active:centerOptionsIndex === index}]"
@click="centerOptionsClick(index,item.AREA)"
>
+ {{ item.label }}
@@ -226,8 +227,8 @@
leave-active-class="animate__animated animate__fadeOutUp"
>
-
-
+
+
搜索
{removeTrajectory();peopleTrajectoryValue = ''}">重置
@@ -326,6 +327,8 @@ var PI = 3.1415926535897932384626
var a = 6378245.0 // 卫星椭球坐标投影到平面地图坐标系的投影因子。
var ee = 0.00669342162296594323 // 椭球的偏心率。//判断是否在国内,在中国国内的经纬度才需要做偏移
const iframeObj = null
+const mqttPoint = {}
+let trajectoryEntityCollection = {}
export default {
components: {
AnquanCfd,
@@ -478,7 +481,7 @@ export default {
],
myEntityCollection: {},
poinEntity: {},
- mqttPoint: {},
+ // mqttPoint: {},
allOrientationPoint: [],
gangkouActive: '',
centerOptionsList: [
@@ -1247,7 +1250,7 @@ export default {
linkPort: '8093',
VIIDPort: '8088'
},
- trajectoryEntityCollection: {},
+ // trajectoryEntityCollection: {},
isPeopleTrajectory: false,
peopleTrajectoryValue: ''
}
@@ -1555,24 +1558,24 @@ export default {
document.addEventListener('contextmenu', function(event) {
event.preventDefault()
})
- // this.handler.setInputAction(movement => {
- // const pick = viewer.scene.pick(movement.position)
- // if (Cesium.defined(pick) && (pick.id.id)) {
- // if (!pick.id._monitoItems) {
- // this.removeTrajectory()
- // return
- // }
- // const point_type = pick.id._monitoItems.data.point_type
- // const point_id = pick.id._monitoItems.data.id
- // const corpInfoId = pick.id._monitoItems.data.corpInfoId
- // if (point_type === '标记点peoplePositionOne') {
- // this.removeTrajectory()
- // this.addTrajectory(point_id, corpInfoId)
- // }
- // } else {
- // this.removeTrajectory()
- // }
- // }, Cesium.ScreenSpaceEventType.RIGHT_CLICK)
+ // this.handler.setInputAction(movement => {
+ // const pick = viewer.scene.pick(movement.position)
+ // if (Cesium.defined(pick) && (pick.id.id)) {
+ // if (!pick.id._monitoItems) {
+ // this.removeTrajectory()
+ // return
+ // }
+ // const point_type = pick.id._monitoItems.data.point_type
+ // const point_id = pick.id._monitoItems.data.id
+ // const corpInfoId = pick.id._monitoItems.data.corpInfoId
+ // if (point_type === '标记点peoplePositionOne') {
+ // this.removeTrajectory()
+ // this.addTrajectory(point_id, corpInfoId)
+ // }
+ // } else {
+ // this.removeTrajectory()
+ // }
+ // }, Cesium.ScreenSpaceEventType.RIGHT_CLICK)
},
addTrajectory() {
this.removeTrajectory()
@@ -1595,14 +1598,14 @@ export default {
const collection = new Cesium.CustomDataSource('trajectoryEntityCollection')
collection.entities.add(entity)
viewer.dataSources.add(collection)
- this.trajectoryEntityCollection = collection
+ trajectoryEntityCollection = Object.freeze(collection)
}
})
},
removeTrajectory() {
- if (Object.keys(this.trajectoryEntityCollection).length === 0) return
- viewer.dataSources.remove(this.trajectoryEntityCollection)
- this.trajectoryEntityCollection = {}
+ if (Object.keys(trajectoryEntityCollection).length === 0) return
+ viewer.dataSources.remove(trajectoryEntityCollection)
+ trajectoryEntityCollection = {}
},
getCatesian3FromPX: function(px) {
@@ -2244,7 +2247,7 @@ export default {
}
if (this.gangkouActive === '00003' && this.CORP_INFO_ID === '035958e685cf4850bc40151c5e0617a6' && urlType === 'peoplePosition') {
!this.connecting ? this.createConnection(this.CORP_INFO_ID) : this.doSubscribe()
- } else if (this.gangkouActive === '00003' && (this.CORP_INFO_ID === '21590a00ea5e462e9ee44dd332dddc26' || this.CORP_INFO_ID === '033549ed3bd648e49c8a65eb4993ec2f') && urlType === 'peoplePosition') {
+ } else if (this.gangkouActive === '00003' && (this.CORP_INFO_ID === '21590a00ea5e462e9ee44dd332dddc26' || this.CORP_INFO_ID === '033549ed3bd648e49c8a65eb4993ec2f') && urlType === 'peoplePosition') {
// websocket实时获取人员定位
this.initRYDWWebsocket(this.CORP_INFO_ID)
} else {
@@ -2361,7 +2364,7 @@ export default {
} else {
ry_drag.addEntity(this.perLocArr[i])
- this.mqttPoint['cfdrydw' + this.perLocArr[i].cardNo] = this.perLocArr[i].cardNo
+ mqttPoint['cfdrydw' + this.perLocArr[i].cardNo] = this.perLocArr[i].cardNo
}
}
},
@@ -2715,7 +2718,7 @@ export default {
czksPerLoc.push(perLoc)
ry_drag.addEntity(perLoc)
var qianzhui = 'czksperson'
- _this.mqttPoint[qianzhui + item.cardId] = item.cardId
+ mqttPoint[qianzhui + item.cardId] = item.cardId
}
}
// 最后更新ninePerLocArr
@@ -2788,7 +2791,7 @@ export default {
}
this.onePerLocArr.push(perLoc)
ry_drag.addEntity(perLoc)
- this.mqttPoint[this.subscription.topic.substring(0, this.subscription.topic.lastIndexOf('+')) + item.deviceCode] = item.deviceCode
+ mqttPoint[this.subscription.topic.substring(0, this.subscription.topic.lastIndexOf('+')) + item.deviceCode] = item.deviceCode
}
}
} else if (topic.indexOf('alarm') !== -1) {
@@ -2803,20 +2806,20 @@ export default {
})
},
clearMqttPoint(prefix) {
- for (const mqttPointKey in this.mqttPoint) {
- const key = prefix ? prefix + this.mqttPoint[mqttPointKey] : mqttPointKey
- viewer.entities.removeById(this.mqttPoint[key])
- this.onePerLocArr = this.onePerLocArr.filter(item => item.data_id !== this.mqttPoint[key])
- delete this.mqttPoint[key]
+ for (const mqttPointKey in mqttPoint) {
+ const key = prefix ? prefix + mqttPoint[mqttPointKey] : mqttPointKey
+ viewer.entities.removeById(mqttPoint[key])
+ this.onePerLocArr = this.onePerLocArr.filter(item => item.data_id !== mqttPoint[key])
+ delete mqttPoint[key]
}
},
clearRYDWPoint(prefix) {
this.fwebsocket.close()
- for (const mqttPointKey in this.mqttPoint) {
- const key = prefix ? prefix + this.mqttPoint[mqttPointKey] : mqttPointKey
- viewer.entities.removeById(this.mqttPoint[key])
- this.onePerLocArr = this.onePerLocArr.filter(item => item.data_id !== this.mqttPoint[key])
- delete this.mqttPoint[key]
+ for (const mqttPointKey in mqttPoint) {
+ const key = prefix ? prefix + mqttPoint[mqttPointKey] : mqttPointKey
+ viewer.entities.removeById(mqttPoint[key])
+ this.onePerLocArr = this.onePerLocArr.filter(item => item.data_id !== mqttPoint[key])
+ delete mqttPoint[key]
}
},
// 删除人员定位点
@@ -2998,9 +3001,8 @@ export default {
const wsUrl = config.noDwSysUrl + '/ltLocation/DW_' + new Date().getTime() + '_98'
_this.fwebsocket = new WebSocket(encodeURI(wsUrl))
_this.fwebsocket.onmessage = function(message) {
- console.info('接收消息')
- const peopleList = JSON.parse(message.data).data.data
- console.log(peopleList)
+ const peopleList = JSON.parse(message.data)
+ viewer.entities.suspendEvents()
for (let i = 0; i < peopleList.length; i++) {
const item = peopleList[i]
if ((!item)) continue
@@ -3019,6 +3021,7 @@ export default {
} else {
const perLoc = {
id: item.id,
+ name: item.name,
x: x,
y: y,
icon_type: 'img4_0' + pointColor,
@@ -3029,9 +3032,10 @@ export default {
}
_this.onePerLocArr.push(perLoc)
ry_drag.addEntity(perLoc)
- _this.mqttPoint[_this.subscription.topic.substring(0, _this.subscription.topic.lastIndexOf('+')) + item.id] = item.id
+ mqttPoint[_this.subscription.topic.substring(0, _this.subscription.topic.lastIndexOf('+')) + item.id] = item.id
}
}
+ viewer.entities.resumeEvents()
}
}
},
@@ -3743,38 +3747,38 @@ export default {
transform: translateY(0);
}
}
- .people_trajectory{
- position: absolute;
- top: -60px;
- left: 0;
- width: 400px;
- padding: 10px;
- background-image: linear-gradient(to right, rgb(31 62 129 / 57%) 0%, rgb(17 93 255 / 40%) 50%, rgb(31 62 129 / 57%) 100%);
- .search_btn{
- background-color: #1563e3;
- color: #fff;
- border-color: #1563e3;
- }
- .reset_btn{
- background-color: #558be5;
- color: #fff;
- border-color: #558be5;
- }
+.people_trajectory{
+ position: absolute;
+ top: -60px;
+ left: 0;
+ width: 400px;
+ padding: 10px;
+ background-image: linear-gradient(to right, rgb(31 62 129 / 57%) 0%, rgb(17 93 255 / 40%) 50%, rgb(31 62 129 / 57%) 100%);
+ .search_btn{
+ background-color: #1563e3;
+ color: #fff;
+ border-color: #1563e3;
}
+ .reset_btn{
+ background-color: #558be5;
+ color: #fff;
+ border-color: #558be5;
+ }
+}
diff --git a/src/views/risk/riskpeoples/index.vue b/src/views/risk/riskpeoples/index.vue
new file mode 100644
index 0000000..f27e77f
--- /dev/null
+++ b/src/views/risk/riskpeoples/index.vue
@@ -0,0 +1,355 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+
+
+ 重置
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 预览
+
+
+
+
+
+ 下载
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/risk/riskthreepeople/index.vue b/src/views/risk/riskthreepeople/index.vue
new file mode 100644
index 0000000..cabf523
--- /dev/null
+++ b/src/views/risk/riskthreepeople/index.vue
@@ -0,0 +1,355 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+
+
+ 重置
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 预览
+
+
+
+
+
+ 下载
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+