This commit is contained in:
lcw
2025-09-26 12:56:52 +08:00
parent 204a199990
commit 2bed0ee326
503 changed files with 37423 additions and 1132 deletions

View File

@ -135,7 +135,7 @@ import { timeValidate } from "@/utils/time.js";
import emitter from "@/utils/eventBus.js";
import { getTbWzXfwzSelectTrack } from "@/api/dpApi/zzzh.js";
import { getTbJcglXfqySelectById, getTpJcglKfdSelectByid, queryListfzyc } from "@/api/dpApi/home.js";
import { getXfgj } from "@/api/yjCenter.js";
// import { getXfgj } from "@/api/yjCenter.js";
import { ElMessage } from "element-plus";
import { useRouter } from "vue-router";
import { all } from "ol/events/condition";
@ -262,13 +262,13 @@ function chooseTime() {
// 巡防轨迹
function onClickGjhf() {
emitter.emit("deletePointArea", "route");
getXfgj({ bbid: props.data.id }).then((res) => {
if (res && res.zbList && res.zbList.length > 0) {
emitter.emit("drawLineAnimation", {coords:res.zbList,isClear:true,flag:'route'});
} else {
proxy.$message({ type: "warning", message: `没有轨迹数据` });
}
});
// getXfgj({ bbid: props.data.id }).then((res) => {
// if (res && res.zbList && res.zbList.length > 0) {
// emitter.emit("drawLineAnimation", {coords:res.zbList,isClear:true,flag:'route'});
// } else {
// proxy.$message({ type: "warning", message: `没有轨迹数据` });
// }
// });
}
// 巡防轨迹-把数据拆分个多个-模拟动态加载
function handleAnimation(arr, subLen) {
@ -312,7 +312,7 @@ function getXfqData() {
// 获取范围中心的
function getCenterPoint(dm, text) {
qcckPost(dm, "/mosty-base/other/getZxd").then((res) => {
qcckPost(dm, "/bagl/mosty-base/other/getZxd").then((res) => {
let points = [res.x, res.y];
emitter.emit("addTEXT", { points, text });
});