Commit 8ee91dac authored by 张伯涛's avatar 张伯涛

ar修改

parent 41e96462
......@@ -972,7 +972,9 @@ export default defineComponent({
let contentInfo = "";
if (this.mapLevel == 3) {
if (_this.heatBtnF == 1) {
contentInfo = "<div class='mypopup mypopup1 mypopup3'>";
contentInfo = '<div class="mypopup mypopup1 mypopup3" id="' +
markerId + 'mypopup3' +
'">'
transferList.forEach((element) => {
contentInfo +=
"<div style='line-height:120%;'>" +
......@@ -985,7 +987,9 @@ export default defineComponent({
} else {
transferList.forEach((element) => {
contentInfo =
"<div class='mypopup mypopup2 mypopup3'><div>" +
'<div class="mypopup mypopup2 mypopup3" id="' +
markerId + 'mypopup3' +
'">' +
element.transferName +
" " +
"</div><div style='text-align:center; margin-top:5px;'> 供热面积:" +
......@@ -1018,7 +1022,7 @@ export default defineComponent({
});
//选择所有的button元素
const popupButtons1 = document.querySelectorAll(".mypopup3");
const popupButtons1 = document.querySelectorAll("#" + markerId + 'mypopup3');
const popupButtons2 = document.querySelector("#" + markerId);
console.log('popupButtons1',popupButtons1)
console.log('popupButtons2',popupButtons2)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment