|
|
@@ -90,7 +90,6 @@ import cloudJson from "/public/static/exportData/cloud/layer.json";
|
|
|
import rainJson from "/public/static/exportData/rain/layer.json";
|
|
|
import tempJson from "/public/static/exportData/tmp/layer.json";
|
|
|
|
|
|
-// import bw from "@/assets/windimgs/fanSvg/bw.svg"
|
|
|
//风场展示图标
|
|
|
import fc from "@/assets/windimgs/fanSvg/fc.png";
|
|
|
//火电展示图标
|
|
|
@@ -98,22 +97,6 @@ import hd from "@/assets/windimgs/fanSvg/hd.png";
|
|
|
//光伏电站展示图标
|
|
|
import gf from "@/assets/windimgs/fanSvg/gf.png";
|
|
|
|
|
|
-//故障
|
|
|
-import gz from "@/assets/windimgs/fanSvg/gz.svg";
|
|
|
-//待机
|
|
|
-import dj from "@/assets/windimgs/fanSvg/dj.svg";
|
|
|
-//检修
|
|
|
-import jx from "@/assets/windimgs/fanSvg/jx.svg";
|
|
|
-//限电
|
|
|
-import xd from "@/assets/windimgs/fanSvg/xd.svg";
|
|
|
-//离线
|
|
|
-import lx from "@/assets/windimgs/fanSvg/lx.svg";
|
|
|
-//受累
|
|
|
-import sl from "@/assets/windimgs/fanSvg/sl.svg";
|
|
|
-//动图使用柱子和扇叶
|
|
|
-import bwzhu from "@/assets/windimgs/fanSvg/bwzhu.svg";
|
|
|
-import bwshan from "@/assets/windimgs/fanSvg/bwshan.png";
|
|
|
-
|
|
|
import windHome from "@/components/windHome/index.vue";
|
|
|
import windPro from "@/components/windProDetail/windProblem.vue";
|
|
|
import ModelUnpack from "@/components/modelUnpack.vue";
|
|
|
@@ -435,25 +418,32 @@ export default {
|
|
|
getWtStatue(code) {
|
|
|
if (code === 1) {
|
|
|
//待机
|
|
|
- return "#05bb4c";
|
|
|
+ // return "#05bb4c";
|
|
|
+ return "dj";
|
|
|
} else if (code === 2) {
|
|
|
//故障
|
|
|
- return "#d83238";
|
|
|
+ // return "#d83238";
|
|
|
+ return "gz";
|
|
|
} else if (code === 3) {
|
|
|
//检修
|
|
|
- return "#ff8300";
|
|
|
+ // return "#ff8300";
|
|
|
+ return "jx";
|
|
|
} else if (code === 4) {
|
|
|
//限电
|
|
|
- return "#c732ca";
|
|
|
+ // return "#c732ca";
|
|
|
+ return "xd";
|
|
|
} else if (code === 5) {
|
|
|
//离线
|
|
|
- return "#6f7881";
|
|
|
+ // return "#6f7881";
|
|
|
+ return "lx";
|
|
|
} else if (code === 6) {
|
|
|
//受累
|
|
|
- return "#cbd1d7";
|
|
|
+ // return "#cbd1d7";
|
|
|
+ return "sl";
|
|
|
} else {
|
|
|
//并网
|
|
|
- return "#42a7f9";
|
|
|
+ // return "#42a7f9";
|
|
|
+ return "bw";
|
|
|
}
|
|
|
},
|
|
|
//添加模型
|
|
|
@@ -465,8 +455,8 @@ export default {
|
|
|
hpRoll
|
|
|
);
|
|
|
|
|
|
- const wtStatue = status;
|
|
|
- const statueColor = this.getWtStatue(wtStatue);
|
|
|
+ // const statueColor = this.getWtStatue(wtStatue);
|
|
|
+ const statueFJ = this.getWtStatue(status);
|
|
|
|
|
|
// 获取这些位置的精确地形高度
|
|
|
Cesium.sampleTerrainMostDetailed(this.viewer.terrainProvider, position)
|
|
|
@@ -482,15 +472,17 @@ export default {
|
|
|
animation: false,
|
|
|
model: {
|
|
|
uri: this.dixingAdd
|
|
|
- ? "/public/static/model/fjSolo/model.glb"
|
|
|
+ // ? "/public/static/model/fjSolo/model.glb"
|
|
|
+ // ? "/public/static/model/fjStatus/fj_anmation_bw.glb"
|
|
|
+ ? `/public/static/model/fjStatus/fj_${statueFJ}.glb`
|
|
|
: "/public/static/model/dixing/model.glb",
|
|
|
- scale: this.dixingAdd ? 1 : 10000,
|
|
|
+ scale: this.dixingAdd ? 20 : 10000,
|
|
|
// 模型贴地
|
|
|
// heightReference: Cesium.HeightReference.CLAMP_TO_GROUND,
|
|
|
- // heightReference: Cesium.HeightReference.NONE,
|
|
|
- silhouetteSize: this.dixingAdd ? 2 : 0,
|
|
|
- silhouetteColor: Cesium.Color.fromCssColorString(statueColor),
|
|
|
- runAnimations: wtStatue !== 7 ? false : true,
|
|
|
+ heightReference: Cesium.HeightReference.NONE,
|
|
|
+ // silhouetteSize: this.dixingAdd ? 2 : 0,
|
|
|
+ // silhouetteColor: Cesium.Color.fromCssColorString(statueColor),
|
|
|
+ // runAnimations: wtStatue !== 7 ? false : true,
|
|
|
},
|
|
|
//添加标签
|
|
|
label: {
|