2 files modified
1 files added
| | |
| | | margin: auto; |
| | | width: 800px; |
| | | height: 400px; |
| | | border: 1px solid red; |
| | | color: #fff; |
| | | } |
| | | |
| | | .cbInfoDiv { |
| | |
| | | initPlugin(); |
| | | }, 3000) |
| | | } else { |
| | | $("#playWnd").html("插件启动失败,请检查插件是否安装!"); |
| | | $("#playWnd").html("插件启动失败,请检查插件是否安装!<a href='./VideoWebPlugin.exe' target='_blank' style='color: var(--mcblue)'>点击下载</a>"); |
| | | } |
| | | }, |
| | | cbConnectClose: function (bNormalClose) { |
| | |
| | | * @Author: Morpheus |
| | | * @Date: 2021-07-05 16:31:54 |
| | | * @Last Modified by: Morpheus |
| | | * @Last Modified time: 2021-08-11 16:41:36 |
| | | * @Last Modified time: 2021-08-14 10:57:44 |
| | | * menu-name 押运人员定位 |
| | | */ |
| | | <template> |
| | |
| | | loading: true, |
| | | trackTime: [], |
| | | detailObj: {}, |
| | | dialogVisible: false |
| | | dialogVisible: false, |
| | | map: null, |
| | | }; |
| | | }, |
| | | created () { |
| | |
| | | }, |
| | | |
| | | childParameter (data) { |
| | | |
| | | this.map = data; |
| | | this.$nextTick(function () { |
| | | data.on('singleclick', this.realVideo) |
| | | }) |
| | | |
| | | }, |
| | | |
| | | realVideo () { |
| | | this.dialogVisible = true |
| | | realVideo (e) { |
| | | var that = this; |
| | | // 在点击时获取像素区域 |
| | | var pixel = this.map.getEventPixel(e.originalEvent) |
| | | |
| | | this.map.forEachFeatureAtPixel(pixel, function (feature) { |
| | | |
| | | const cont = feature.values_.attributes |
| | | |
| | | if (cont != undefined) { |
| | | that.dialogVisible = true |
| | | } |
| | | }) |
| | | |
| | | } |
| | | |
| | | }, |