This commit is contained in:
姚宇浩 2024-08-08 10:31:49 +08:00
commit 0285d753ab
3 changed files with 35 additions and 21 deletions

View File

@ -140,7 +140,10 @@ onMounted(() => {
let token = tools.data.get("token"); let token = tools.data.get("token");
// console.log(token, "token"); // console.log(token, "token");
if (token == null) { if (token == null) {
ElMessage.error("请重新登录!"); ElMessage.error({
message: "请重新登录!",
offset: 100,
});
window.location.href = window.location.href =
"http://220.191.238.50:996/api/login?returnURL=" + window.location.href; "http://220.191.238.50:996/api/login?returnURL=" + window.location.href;
} }

View File

@ -1828,8 +1828,10 @@ const changeFwq = async (id, name, names) => {
); // ); //
}, 500); }, 500);
} else { } else {
console.log("无数据11"); ElMessage.warning({
ElMessage.warning("无数据"); message: "无数据",
offset: 100, //
});
} }
} }
}; };
@ -1922,7 +1924,7 @@ const addggfwq = () => {
// data.fwqCoordinates1 = calculateAverage(data.fwqCoordinates1); // data.fwqCoordinates1 = calculateAverage(data.fwqCoordinates1);
// data.fwqCoordinates2 = calculateAverage(data.fwqCoordinates2); // data.fwqCoordinates2 = calculateAverage(data.fwqCoordinates2);
// console.log(centerPoint); // console.log(centerPoint); //
// console.log("", data.fwqCoordinates1, data.fwqCoordinates2 ); // console.log("", data.fwqCoordinates1, data.fwqCoordinates2 );
let distances = []; // let distances = []; //
@ -1942,15 +1944,18 @@ const addggfwq = () => {
distances.push(distance); // distances.push(distance); //
}); });
let maxDistance = Math.max(...distances); // let maxDistance = Math.max(...distances); //
maxDistance = Math.ceil(maxDistance * 2.2); // maxDistance = Math.ceil(maxDistance * 1.8); //
if (maxDistance < 100) { if (maxDistance < 100) {
maxDistance = 150; // 100 150 maxDistance = 150; // 100 150
} }
data.zoomLevel = calculateZoomLevel(maxDistance); data.zoomLevel = calculateZoomLevel(maxDistance);
// console.log(":", maxDistance,data.zoomLevel); console.log("最大距离:", maxDistance, data.zoomLevel);
drawACircle(maxDistance); drawACircle(maxDistance);
} else { } else {
ElMessage.warning("无数据"); ElMessage.warning({
message: "无数据",
offset: 100, //
});
} }
}; };
//线 //线

View File

@ -102,7 +102,10 @@
</div> </div>
</div> </div>
<div class="formText_bootom"> <div class="formText_bootom">
<div class="yd_title left_2" :style="{'margin-top': show_7yx ? '40px' : '0px'}"> <div
class="yd_title left_2"
:style="{ 'margin-top': show_7yx ? '40px' : '0px' }"
>
<div class="animate-border"> <div class="animate-border">
<i></i> <i></i>
<i></i> <i></i>
@ -187,7 +190,10 @@ const goto = (url, val) => {
path: `${url}`, path: `${url}`,
}); });
} else { } else {
ElMessage.warning(`${val.name}暂无数据!`); ElMessage.warning({
message: `${val.name}暂无数据!`,
offset: 100, //
});
} }
}; };
@ -624,7 +630,7 @@ const getData = async (name, fullName) => {
name: item.sx, name: item.sx,
text: item.bmfxqk, text: item.bmfxqk,
// progress: item.xh, // progress: item.xh,
progress: '95', // progress: "95", //
}); });
}); });
} }