| | |
| | | |
| | | this.detailVisible = true |
| | | |
| | | this.initMapLine() |
| | | this.initMapLine(data.device_map_infos) |
| | | }, |
| | | async handleCheckDetail (row) { |
| | | const response = await orderLogDetails(row.id) |
| | |
| | | // 更新机巢列表 |
| | | this.device_sns = data.device_list |
| | | this.detailVisibleCopy = true |
| | | this.initMapLine() |
| | | this.initMapLine(data.device_map_infos) |
| | | }, |
| | | //导出 |
| | | async exportData () { |
| | |
| | | this.initMapLine() |
| | | }, |
| | | |
| | | initMapLine () { |
| | | initMapLine (infos = {}) { |
| | | let currentLine = this.wayLineList.find(item => item.wayline_id == this.form.file_id) |
| | | |
| | | if (!currentLine) return |
| | |
| | | return item.Point.coordinates.split(',') |
| | | }) |
| | | |
| | | if (JSON.stringify(infos) != '{}') positions.unshift([ |
| | | infos[0].longitude, |
| | | infos[0].latitude, |
| | | ]) |
| | | |
| | | this.$nextTick(() => { |
| | | if (this.$refs.MapContainer && this.$refs.MapContainer.initAddEntity) { |
| | | this.$refs.MapContainer.initAddEntity('polyline', positions) |