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";
|
||||
|
||||
onMounted(() => {
|
||||
send3D();
|
||||
// 获取右侧数据
|
||||
getPowerCurve_api();
|
||||
// 获取台区 重过载
|
||||
|
@ -470,7 +471,29 @@ onMounted(() => {
|
|||
// 获取充电桩列表
|
||||
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 currentLevel = ref<any>({});
|
||||
|
@ -570,25 +593,24 @@ const hideRight = ref<boolean>(true); //默认页面显示 右边
|
|||
|
||||
// 组件卸载调用
|
||||
onUnmounted(() => {
|
||||
handleThree_out(); //清楚边界线和字体
|
||||
hideLeft.value = false;
|
||||
hideRight.value = false;
|
||||
});
|
||||
|
||||
// 跳转三维
|
||||
const handleThree = (val) => {
|
||||
const list = {
|
||||
location: "(X=18705617.163,Y=1826842.166,Z=4299675.505)",
|
||||
rotation: "Pitch=-89.9,Yaw=-90.542,Roll=0",
|
||||
const handleThree_out = () => {
|
||||
// 隐藏城南边界线
|
||||
const datadispaly = {
|
||||
CityID: "12010",
|
||||
status: "0", //0隐藏1显示
|
||||
};
|
||||
api_send("CameraMove", list, () => {
|
||||
console.log("CameraMove");
|
||||
api_send("ShowCityEdge", datadispaly, () => {
|
||||
console.log("ShowCityEdge隐藏城南边界线");
|
||||
});
|
||||
let _list = {
|
||||
CityID: val,
|
||||
status: "1",
|
||||
};
|
||||
api_send("ShowCityEdge", _list, () => {
|
||||
console.log("ShowCityEdge");
|
||||
// 隐藏全部的充电站
|
||||
const datadel = { status: "0" };
|
||||
api_send("SelectChargingstation", datadel, () => {
|
||||
console.log("SelectChargingstation,隐藏全部的充电站");
|
||||
});
|
||||
};
|
||||
|
||||
|
@ -1943,13 +1965,11 @@ const styleVar = computed(() => {
|
|||
color: #fff !important;
|
||||
}
|
||||
|
||||
.el-select__placeholder{
|
||||
|
||||
.el-select__placeholder {
|
||||
color: #fff !important;
|
||||
}
|
||||
.el-radio__label{
|
||||
.el-radio__label {
|
||||
color: #fff !important;
|
||||
|
||||
}
|
||||
// 按钮
|
||||
.el-button {
|
||||
|
@ -1965,9 +1985,9 @@ const styleVar = computed(() => {
|
|||
margin-left: changeHeight(180);
|
||||
}
|
||||
// 没一行
|
||||
.el-form-item{
|
||||
.el-form-item {
|
||||
height: changeHeight(80) !important;
|
||||
margin-bottom:changeHeight(50) !important;
|
||||
margin-bottom: changeHeight(50) !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue