|
@@ -47,6 +47,10 @@
|
|
|
v-show="itemType == 'BaseEquipment'"
|
|
|
:equipHeight="equipHeight"
|
|
|
></BaseEquipment>
|
|
|
+ <BaseEquipmentMsg
|
|
|
+ v-show="itemType == 'BaseEquipmentMsg'"
|
|
|
+ :EquipMsgData="EquipMsgData"
|
|
|
+ ></BaseEquipmentMsg>
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
@@ -55,6 +59,7 @@ import baseLinePro from "./baseLinePro.vue";
|
|
|
import BaseGraphy from "./BaseGraphy";
|
|
|
import BaseImagePro from "./BaseImagePro";
|
|
|
import BaseEquipment from "./BaseEquipment";
|
|
|
+import BaseEquipmentMsg from "./BaseEquipmentMsg";
|
|
|
import bus from "@/bus/bus";
|
|
|
const lineStyle = {
|
|
|
0: "Solid",
|
|
@@ -81,6 +86,7 @@ export default {
|
|
|
BaseGraphy,
|
|
|
BaseImagePro,
|
|
|
BaseEquipment,
|
|
|
+ BaseEquipmentMsg,
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
@@ -100,6 +106,7 @@ export default {
|
|
|
infoPointList: [], //设备--信息点数组
|
|
|
EquipData: {}, //设备 id
|
|
|
equipHeight: "", // 设备属性栏得高度
|
|
|
+ EquipMsgData: {}, //设备信息点详情数据
|
|
|
};
|
|
|
},
|
|
|
mounted() {
|
|
@@ -121,6 +128,12 @@ export default {
|
|
|
} else {
|
|
|
this.itemType = "";
|
|
|
}
|
|
|
+ // 对设备做出判断 看是否点入的是设备相关信息点
|
|
|
+ if (this.itemType == "BaseEquipment") {
|
|
|
+ if (itemList[0].curTextItem) {
|
|
|
+ this.itemType = "BaseEquipmentMsg";
|
|
|
+ }
|
|
|
+ }
|
|
|
// 同步联动样式
|
|
|
this.linkStyle(itemList);
|
|
|
},
|
|
@@ -165,15 +178,14 @@ export default {
|
|
|
this.fillColor = item.fillColor.toRgba();
|
|
|
// 填充色
|
|
|
} else if (this.itemType == "BaseEquipment") {
|
|
|
- if (
|
|
|
- item.infoPointList &&
|
|
|
- item.infoPointList.length
|
|
|
- ) {
|
|
|
+ if (item.infoPointList && item.infoPointList.length) {
|
|
|
this.infoPointList = item.infoPointList;
|
|
|
} else {
|
|
|
this.infoPointList = [];
|
|
|
}
|
|
|
this.EquipData = item.legendData;
|
|
|
+ } else if (this.itemType == "BaseEquipmentMsg") {
|
|
|
+ this.EquipMsgData = item.curTextItem.propertyData;
|
|
|
}
|
|
|
},
|
|
|
},
|