Merge branch 'main' of https://git.cityme.com.cn/xiangshan/ggfwjsc
This commit is contained in:
commit
0285d753ab
|
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -191,7 +194,7 @@ const tabData = reactive({
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
scenList: [
|
scenList: [
|
||||||
{
|
{
|
||||||
img: png3,
|
img: png3,
|
||||||
url: "/home/index",
|
url: "/home/index",
|
||||||
},
|
},
|
||||||
|
|
|
@ -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, // 距离窗口顶部的偏移量
|
||||||
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
//计算两点之间直线距离
|
//计算两点之间直线距离
|
||||||
|
|
|
@ -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, // 距离窗口顶部的偏移量
|
||||||
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -492,7 +498,7 @@ const gaikuangList = reactive({
|
||||||
hygiene: false,
|
hygiene: false,
|
||||||
});
|
});
|
||||||
//是否显示七优享
|
//是否显示七优享
|
||||||
const show_7yx=ref(true);
|
const show_7yx = ref(true);
|
||||||
const gk = computed(() => {
|
const gk = computed(() => {
|
||||||
if (
|
if (
|
||||||
gaikuangList.work ||
|
gaikuangList.work ||
|
||||||
|
@ -523,9 +529,9 @@ const tapshow = (parentId, childId) => {
|
||||||
// gaikuangList.education = false;
|
// gaikuangList.education = false;
|
||||||
// gaikuangList.yl = false;
|
// gaikuangList.yl = false;
|
||||||
// gaikuangList.hygiene = false;
|
// gaikuangList.hygiene = false;
|
||||||
for (let name in gaikuangList) {
|
for (let name in gaikuangList) {
|
||||||
gaikuangList[name]=false;
|
gaikuangList[name] = false;
|
||||||
}
|
}
|
||||||
getData(parentId.name, parentId.son[childId].name);
|
getData(parentId.name, parentId.son[childId].name);
|
||||||
// 菜单名匹配
|
// 菜单名匹配
|
||||||
const menuName = [
|
const menuName = [
|
||||||
|
@ -541,10 +547,10 @@ const tapshow = (parentId, childId) => {
|
||||||
const firstChar = parentId.name.charAt(0);
|
const firstChar = parentId.name.charAt(0);
|
||||||
const matchingMenu = menuName.find((name) => name.charAt(0) === firstChar);
|
const matchingMenu = menuName.find((name) => name.charAt(0) === firstChar);
|
||||||
if (matchingMenu) {
|
if (matchingMenu) {
|
||||||
show_7yx.value=true;
|
show_7yx.value = true;
|
||||||
sevenYX(matchingMenu);
|
sevenYX(matchingMenu);
|
||||||
}else{
|
} else {
|
||||||
show_7yx.value=false;
|
show_7yx.value = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -563,7 +569,7 @@ const toggleVisibility = (val) => {
|
||||||
const gaikuang = (name) => {
|
const gaikuang = (name) => {
|
||||||
console.log(4444, name);
|
console.log(4444, name);
|
||||||
for (let name in gaikuangList) {
|
for (let name in gaikuangList) {
|
||||||
gaikuangList[name]=false;
|
gaikuangList[name] = false;
|
||||||
}
|
}
|
||||||
if (name == "弱有所扶") {
|
if (name == "弱有所扶") {
|
||||||
gaikuangList.work = true;
|
gaikuangList.work = true;
|
||||||
|
@ -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", //进度条
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -684,7 +690,7 @@ onMounted(() => {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
// font-family: YouSheBiaoTiHei;
|
// font-family: YouSheBiaoTiHei;
|
||||||
font-family: titletheRightWay, titletheRightWay;
|
font-family: titletheRightWay, titletheRightWay;
|
||||||
text-shadow: 0px 2px 4px rgba(56, 50, 50, 0.5);
|
text-shadow: 0px 2px 4px rgba(56, 50, 50, 0.5);
|
||||||
padding: 19px 0 0 17px;
|
padding: 19px 0 0 17px;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue