Commit c361d311 by wangzhihui

fixed

1 parent 326abd11
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: 'wangzhihui' '1733904062@qq.com' * @Author: 'wangzhihui' '1733904062@qq.com'
* @Date: 2024-12-06 14:10:32 * @Date: 2024-12-06 14:10:32
* @LastEditors: 'wangzhihui' '1733904062@qq.com' * @LastEditors: 'wangzhihui' '1733904062@qq.com'
* @LastEditTime: 2025-01-06 10:06:40 * @LastEditTime: 2025-01-16 11:18:23
* @FilePath: \oEshield\src\utils\mapBService.js * @FilePath: \oEshield\src\utils\mapBService.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/ */
...@@ -373,7 +373,7 @@ MapService.prototype = { ...@@ -373,7 +373,7 @@ MapService.prototype = {
// 基站 // 基站
baseBtn && (baseBtn.onclick = function(e) { baseBtn && (baseBtn.onclick = function(e) {
console.log('基站')
if (info.eLocateType === 'bsLocation') return; if (info.eLocateType === 'bsLocation') return;
info.eLocateType = 'bsLocation' info.eLocateType = 'bsLocation'
eLocation = info[info.eLocateType]; eLocation = info[info.eLocateType];
...@@ -426,14 +426,14 @@ MapService.prototype = { ...@@ -426,14 +426,14 @@ MapService.prototype = {
// wifi数据 // wifi数据
wifiBtn && (wifiBtn.onclick = function(e) { wifiBtn && (wifiBtn.onclick = function(e) {
if (info.wifiLocation && info.wifiLocation.elng) { if (info.wifiLocation && info.wifiLocation.elng) {
console.log(info) // console.log(info)
if (info.eLocateType === 'wifiLocation') return; if (info.eLocateType === 'wifiLocation') return;
info.eLocateType = 'wifiLocation' info.eLocateType = 'wifiLocation'
gpsBtn && gpsBtn.classList.remove('el-button--primary'); gpsBtn && gpsBtn.classList.remove('el-button--primary');
wifiBtn && wifiBtn.classList.add('el-button--primary'); wifiBtn && wifiBtn.classList.add('el-button--primary');
baseBtn && baseBtn.classList.remove('el-button--primary'); baseBtn && baseBtn.classList.remove('el-button--primary');
infoDiv.querySelector('[data-transferAddress]').textContent = info.wifiLocation.address; infoDiv.querySelector('[data-transferAddress]').textContent = info.wifiLocation.transferAddress;
infoDiv.querySelector('[data-transferAddress').setAttribute('aria-label', info.wifiLocation.address); infoDiv.querySelector('[data-transferAddress').setAttribute('aria-label', info.wifiLocation.transferAddress);
infoDiv.querySelector('[data-time]').textContent = info.wifiLocation.dateTime; infoDiv.querySelector('[data-time]').textContent = info.wifiLocation.dateTime;
infoDiv.querySelector('[data-time').setAttribute('aria-label', info.wifiLocation.dateTime); infoDiv.querySelector('[data-time').setAttribute('aria-label', info.wifiLocation.dateTime);
EventBus.$emit('uiMap.monitor.changeELocate', info) EventBus.$emit('uiMap.monitor.changeELocate', info)
......
...@@ -161,6 +161,7 @@ const monitor = { ...@@ -161,6 +161,7 @@ const monitor = {
EventBus.$on("uiMap.monitor.drawMaker", this.drawMaker); EventBus.$on("uiMap.monitor.drawMaker", this.drawMaker);
}, },
draw(data, autoOpenLastInfoWindow) { draw(data, autoOpenLastInfoWindow) {
console.log(data)
this.data = data; this.data = data;
const transferObj = [] const transferObj = []
data.forEach((item) => { data.forEach((item) => {
...@@ -170,11 +171,13 @@ const monitor = { ...@@ -170,11 +171,13 @@ const monitor = {
if (item.bsLocation && item.bsLocation.blat && item.bsLocation.blng) { if (item.bsLocation && item.bsLocation.blat && item.bsLocation.blng) {
transferObj.push(item.bsLocation) transferObj.push(item.bsLocation)
} }
if (item.wifiLocation && item.wifiLocation.blat && item.bsLocation.blng) {
transferObj.push(item.wifiLocation)
}
}) })
MAPGEO.transferAddressByGroup({ data: transferObj }, () => { MAPGEO.transferAddressByGroup({ data: transferObj }, () => {
this.data.forEach((item, idx) => { this.data.forEach((item, idx) => {
console.log(item)
let eLocation = item[item.eLocateType]; let eLocation = item[item.eLocateType];
if (!eLocation.blng && !eLocation.blat) return; if (!eLocation.blng && !eLocation.blat) return;
let isInfoOpen = false; let isInfoOpen = false;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!