|
@@ -0,0 +1,177 @@
|
|
|
+<template>
|
|
|
+ <div class="app-container">
|
|
|
+ <div class="compression1-container">
|
|
|
+ <el-tooltip class="item" effect="dark" content="气相干燥器" placement="top">
|
|
|
+ <div class="compression-qxgzq"
|
|
|
+ id="compression-qxgzq"
|
|
|
+ @mouseover="handleMouseover1"
|
|
|
+ @mouseleave="handleMouseleave1"
|
|
|
+ @click="handleDevClick('气相干燥器')">
|
|
|
+ </div>
|
|
|
+ </el-tooltip>
|
|
|
+
|
|
|
+ <el-tooltip class="item" effect="dark" content="液相干燥器" placement="top">
|
|
|
+ <div class="compression-yxgzq"
|
|
|
+ id="compression-yxgzq"
|
|
|
+ @mouseover="handleMouseover2"
|
|
|
+ @mouseleave="handleMouseleave2"
|
|
|
+ @click="handleDevClick('液相干燥器')">
|
|
|
+ </div>
|
|
|
+ </el-tooltip>
|
|
|
+
|
|
|
+ <el-tooltip class="item" effect="dark" content="碱洗塔" placement="top">
|
|
|
+ <div class="compression-jxt"
|
|
|
+ id="compression-jxt"
|
|
|
+ @mouseover="handleMouseover3"
|
|
|
+ @mouseleave="handleMouseleave3"
|
|
|
+ @click="handleDevClick('碱洗塔')">
|
|
|
+ </div>
|
|
|
+ </el-tooltip>
|
|
|
+
|
|
|
+ <el-tooltip class="item" effect="dark" content="裂解气压缩机" placement="top">
|
|
|
+ <div class="compression-ljqysj"
|
|
|
+ id="compression-ljqysj"
|
|
|
+ @mouseover="handleMouseover4"
|
|
|
+ @mouseleave="handleMouseleave4"
|
|
|
+ @click="handleDevClick('裂解气压缩机')">
|
|
|
+ </div>
|
|
|
+ </el-tooltip>
|
|
|
+
|
|
|
+ <el-tooltip class="item" effect="dark" content="高低压脱丙烷塔" placement="top">
|
|
|
+ <div class="compression-gdytbwt"
|
|
|
+ id="compression-gdytbwt"
|
|
|
+ @mouseover="handleMouseover5"
|
|
|
+ @mouseleave="handleMouseleave5"
|
|
|
+ @click="handleDevClick('高低压脱丙烷塔')">
|
|
|
+ </div>
|
|
|
+ </el-tooltip>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+ export default {
|
|
|
+ props: {
|
|
|
+ area: {
|
|
|
+ type: String,
|
|
|
+ default: ''
|
|
|
+ },
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ handleDevClick(devName) {
|
|
|
+ this.$emit('handleDevClick', devName);
|
|
|
+ },
|
|
|
+ /* mouseover事件 */
|
|
|
+ handleMouseover1() {
|
|
|
+ let box = document.getElementById("compression-qxgzq");
|
|
|
+ box.style.backgroundColor = "rgba(64,158,255,0.3)";
|
|
|
+ box.style.cursor = "pointer";
|
|
|
+ },
|
|
|
+ handleMouseover2() {
|
|
|
+ let box = document.getElementById("compression-yxgzq");
|
|
|
+ box.style.backgroundColor = "rgba(64,158,255,0.3)";
|
|
|
+ box.style.cursor = "pointer";
|
|
|
+ },
|
|
|
+ handleMouseover3() {
|
|
|
+ let box = document.getElementById("compression-jxt");
|
|
|
+ box.style.backgroundColor = "rgba(64,158,255,0.3)";
|
|
|
+ box.style.cursor = "pointer";
|
|
|
+ },
|
|
|
+ handleMouseover4() {
|
|
|
+ let box = document.getElementById("compression-ljqysj");
|
|
|
+ box.style.backgroundColor = "rgba(64,158,255,0.3)";
|
|
|
+ box.style.cursor = "pointer";
|
|
|
+ },
|
|
|
+ handleMouseover5() {
|
|
|
+ let box = document.getElementById("compression-gdytbwt");
|
|
|
+ box.style.backgroundColor = "rgba(64,158,255,0.3)";
|
|
|
+ box.style.cursor = "pointer";
|
|
|
+ },
|
|
|
+ /* mouseleave事件 */
|
|
|
+ handleMouseleave1() {
|
|
|
+ let box = document.getElementById("compression-qxgzq");
|
|
|
+ box.style.backgroundColor = "transparent";
|
|
|
+ },
|
|
|
+ handleMouseleave2() {
|
|
|
+ let box = document.getElementById("compression-yxgzq");
|
|
|
+ box.style.backgroundColor = "transparent";
|
|
|
+ },
|
|
|
+ handleMouseleave3() {
|
|
|
+ let box = document.getElementById("compression-jxt");
|
|
|
+ box.style.backgroundColor = "transparent";
|
|
|
+ },
|
|
|
+ handleMouseleave4() {
|
|
|
+ let box = document.getElementById("compression-ljqysj");
|
|
|
+ box.style.backgroundColor = "transparent";
|
|
|
+ },
|
|
|
+ handleMouseleave5() {
|
|
|
+ let box = document.getElementById("compression-gdytbwt");
|
|
|
+ box.style.backgroundColor = "transparent";
|
|
|
+ },
|
|
|
+ }
|
|
|
+ }
|
|
|
+</script>
|
|
|
+
|
|
|
+<style>
|
|
|
+ .compression1-container {
|
|
|
+ position: relative;
|
|
|
+ width: 1200px;
|
|
|
+ height: 500px;
|
|
|
+ padding: 0px;
|
|
|
+ margin: 0px auto;
|
|
|
+ overflow: hidden;
|
|
|
+ background: url('../../../assets/images/aerial/compression1.png') center/cover; /* 替换为实际背景图路径 */
|
|
|
+ background-size: contain;
|
|
|
+ background-repeat: no-repeat;
|
|
|
+ }
|
|
|
+
|
|
|
+ .compression-qxgzq {
|
|
|
+ position:absolute;
|
|
|
+ top: 10px;
|
|
|
+ left: 180px;
|
|
|
+ padding: 0px;
|
|
|
+ margin: 0px;
|
|
|
+ width: 120px;
|
|
|
+ height: 120px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .compression-yxgzq {
|
|
|
+ position:absolute;
|
|
|
+ top: 130px;
|
|
|
+ left: 250px;
|
|
|
+ padding: 0px;
|
|
|
+ margin: 0px;
|
|
|
+ width: 80px;
|
|
|
+ height: 50px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .compression-jxt {
|
|
|
+ position:absolute;
|
|
|
+ top: 80px;
|
|
|
+ left: 850px;
|
|
|
+ padding: 0px;
|
|
|
+ margin: 0px;
|
|
|
+ width: 150px;
|
|
|
+ height: 120px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .compression-ljqysj {
|
|
|
+ position:absolute;
|
|
|
+ top: 340px;
|
|
|
+ left: 270px;
|
|
|
+ padding: 0px;
|
|
|
+ margin: 0px;
|
|
|
+ width: 370px;
|
|
|
+ height: 150px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .compression-gdytbwt {
|
|
|
+ position:absolute;
|
|
|
+ top: 330px;
|
|
|
+ left: 700px;
|
|
|
+ padding: 0px;
|
|
|
+ margin: 0px;
|
|
|
+ width: 250px;
|
|
|
+ height: 120px;
|
|
|
+ }
|
|
|
+</style>
|