master
parent
a84c96f9dd
commit
b40ea601f0
File diff suppressed because it is too large
Load Diff
|
@ -463,6 +463,7 @@ import { usrzApi } from "@/api/Osp/svgApi";
|
||||||
import { start } from "repl";
|
import { start } from "repl";
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
|
send3D();
|
||||||
// 获取右侧数据
|
// 获取右侧数据
|
||||||
getPowerCurve_api();
|
getPowerCurve_api();
|
||||||
// 获取台区 重过载
|
// 获取台区 重过载
|
||||||
|
@ -470,7 +471,29 @@ onMounted(() => {
|
||||||
// 获取充电桩列表
|
// 获取充电桩列表
|
||||||
getRunning_api();
|
getRunning_api();
|
||||||
});
|
});
|
||||||
|
const send3D = () => {
|
||||||
|
// 显示城南位置
|
||||||
|
const list = {
|
||||||
|
location: "(X=-715146.324,Y=-1188697.616,Z=4422791.944)",
|
||||||
|
rotation: "Pitch=-83.545,Yaw=-91.394,Roll=0",
|
||||||
|
};
|
||||||
|
api_send("CameraMove", list, () => {
|
||||||
|
console.log("CameraMove");
|
||||||
|
});
|
||||||
|
// 显示城南边界线
|
||||||
|
const datadispaly = {
|
||||||
|
CityID: "12010",
|
||||||
|
status: "1", //0隐藏1显示
|
||||||
|
};
|
||||||
|
api_send("ShowCityEdge", datadispaly, () => {
|
||||||
|
console.log("ShowCityEdge显示城南边界线");
|
||||||
|
});
|
||||||
|
// 显示全部的充电站
|
||||||
|
const datadel = { status: "1" };
|
||||||
|
api_send("SelectChargingstation", datadel, () => {
|
||||||
|
console.log("SelectChargingstation,显示全部的变电站");
|
||||||
|
});
|
||||||
|
};
|
||||||
// 设备树传的数据
|
// 设备树传的数据
|
||||||
let currentData = reactive<any>({});
|
let currentData = reactive<any>({});
|
||||||
let currentLevel = ref<any>({});
|
let currentLevel = ref<any>({});
|
||||||
|
@ -570,25 +593,24 @@ const hideRight = ref<boolean>(true); //默认页面显示 右边
|
||||||
|
|
||||||
// 组件卸载调用
|
// 组件卸载调用
|
||||||
onUnmounted(() => {
|
onUnmounted(() => {
|
||||||
|
handleThree_out(); //清楚边界线和字体
|
||||||
hideLeft.value = false;
|
hideLeft.value = false;
|
||||||
hideRight.value = false;
|
hideRight.value = false;
|
||||||
});
|
});
|
||||||
|
|
||||||
// 跳转三维
|
// 跳转三维
|
||||||
const handleThree = (val) => {
|
const handleThree_out = () => {
|
||||||
const list = {
|
// 隐藏城南边界线
|
||||||
location: "(X=18705617.163,Y=1826842.166,Z=4299675.505)",
|
const datadispaly = {
|
||||||
rotation: "Pitch=-89.9,Yaw=-90.542,Roll=0",
|
CityID: "12010",
|
||||||
|
status: "0", //0隐藏1显示
|
||||||
};
|
};
|
||||||
api_send("CameraMove", list, () => {
|
api_send("ShowCityEdge", datadispaly, () => {
|
||||||
console.log("CameraMove");
|
console.log("ShowCityEdge隐藏城南边界线");
|
||||||
});
|
});
|
||||||
let _list = {
|
// 隐藏全部的充电站
|
||||||
CityID: val,
|
const datadel = { status: "0" };
|
||||||
status: "1",
|
api_send("SelectChargingstation", datadel, () => {
|
||||||
};
|
console.log("SelectChargingstation,隐藏全部的充电站");
|
||||||
api_send("ShowCityEdge", _list, () => {
|
|
||||||
console.log("ShowCityEdge");
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1944,12 +1966,10 @@ const styleVar = computed(() => {
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-select__placeholder {
|
.el-select__placeholder {
|
||||||
|
|
||||||
color: #fff !important;
|
color: #fff !important;
|
||||||
}
|
}
|
||||||
.el-radio__label {
|
.el-radio__label {
|
||||||
color: #fff !important;
|
color: #fff !important;
|
||||||
|
|
||||||
}
|
}
|
||||||
// 按钮
|
// 按钮
|
||||||
.el-button {
|
.el-button {
|
||||||
|
|
Loading…
Reference in New Issue