|
|
@@ -36,7 +36,7 @@
|
|
|
<script lang="ts">
|
|
|
import { Vue, Component, Prop, Watch } from 'vue-property-decorator'
|
|
|
import { getLatAndLon } from '@/views/groupPage/util'
|
|
|
-import { getZhgdCameraData, getZhgdEquipmentData, getZhgdHelmetData } from '@/views/groupPage/apis'
|
|
|
+import { getZhgdCameraData, getZhgdEquipmentData, getZhgdHelmetData, getZhgdGPSData } from '@/views/groupPage/apis'
|
|
|
import deviceInfo from '@/views/groupPage/districtPageModules/customTools/infoComponents/deviceInfo.vue'
|
|
|
const Cesium = (window as any).Cesium
|
|
|
let customDataSource = new Cesium.CustomDataSource('monitorTree')
|
|
|
@@ -87,6 +87,7 @@ export default class monitorTree extends Vue {
|
|
|
timeInterval = null
|
|
|
}
|
|
|
timeInterval = setInterval(() => {
|
|
|
+ console.log('调用刷新')
|
|
|
this.initCom()
|
|
|
}, 600000)
|
|
|
}
|
|
|
@@ -135,9 +136,12 @@ export default class monitorTree extends Vue {
|
|
|
status: item.status == 1 ? '未激活' : item.status == 2 ? '离线' : item.status == 3 ? '在线' : '无'
|
|
|
}
|
|
|
})
|
|
|
+ //GPS设备
|
|
|
+ // const gpsRes = await getZhgdGPSData({})
|
|
|
this.treeData = [
|
|
|
{ name: '智慧工地摄像头', children: cameras },
|
|
|
{ name: '智慧工地监控设备', children: monitors },
|
|
|
+ // { name: '智慧工地GPS', children: [] },
|
|
|
{ name: '智慧工地安全帽', children: helmets }
|
|
|
]
|
|
|
}
|