diff --git a/src/assets/map/gangkou_index/point/ico31_offline.png b/src/assets/map/gangkou_index/point/ico31_offline.png new file mode 100644 index 0000000..ca6bed6 Binary files /dev/null and b/src/assets/map/gangkou_index/point/ico31_offline.png differ diff --git a/src/assets/map/gangkou_index/point/ico31_online.png b/src/assets/map/gangkou_index/point/ico31_online.png new file mode 100644 index 0000000..a7e3222 Binary files /dev/null and b/src/assets/map/gangkou_index/point/ico31_online.png differ diff --git a/src/views/map/index.vue b/src/views/map/index.vue index c20665c..de47948 100644 --- a/src/views/map/index.vue +++ b/src/views/map/index.vue @@ -1812,6 +1812,14 @@ export default { } else { point.infoname = varList[i].NAME } + // 摄像头是否在线 + if (point.icon_type.indexOf('6_1') > -1) { + if (varList[i].ONLINE_STATUS === '0') { + point.icon_type = point.icon_type + '_online' + } else { + point.icon_type = point.icon_type + '_offline' + } + } points.push(point) } if (this.gangkouActive === '00004' && urlType === 'carPosition') { diff --git a/src/views/map/js/dragentity.js b/src/views/map/js/dragentity.js index cd17ac5..a879784 100644 --- a/src/views/map/js/dragentity.js +++ b/src/views/map/js/dragentity.js @@ -43,6 +43,9 @@ const img5_0 = require('../../../assets/map/gangkou_index/point/ico26.png') const img6_0 = require('../../../assets/map/gangkou_index/point/ico30.png') const img6_1 = require('../../../assets/map/gangkou_index/point/ico31.png') +const img6_1_online = require('../../../assets/map/gangkou_index/point/ico31_online.png') +const img6_1_offline = require('../../../assets/map/gangkou_index/point/ico31_offline.png') + const img7_0 = require('../../../assets/map/gangkou_index/point/ico26.png') @@ -61,7 +64,8 @@ const imgMap = { img6_0, img6_1, img7_0, img8_0, img8_1, img8_2, img8_3, - cfd_img1_0, cfd_img1_0_1, cfd_img1_0_2, cfd_img1_0_3 + cfd_img1_0, cfd_img1_0_1, cfd_img1_0_2, cfd_img1_0_3, + img6_1_online, img6_1_offline } export { imgMap }