|
|
@@ -10,16 +10,18 @@
|
|
|
<slot name="container"></slot>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="box1-bottom" :class="`box1-bottom-${pageType}`"></div>
|
|
|
+
|
|
|
+ <div v-if="pageType === 'belt'" class="box1-bottom" :class="`${alarmClass}`"></div>
|
|
|
+ <div v-else class="box1-bottom" :class="`box1-bottom-${pageType}`"></div>
|
|
|
</div>
|
|
|
</template>
|
|
|
+
|
|
|
<script setup lang="ts">
|
|
|
-import { onMounted, defineProps } from 'vue';
|
|
|
-// 定义 props
|
|
|
+import { defineProps } from 'vue';
|
|
|
+
|
|
|
const props = defineProps({
|
|
|
- pageType: {
|
|
|
- type: String,
|
|
|
- },
|
|
|
+ pageType: { type: String },
|
|
|
+ alarmClass: String,
|
|
|
});
|
|
|
</script>
|
|
|
|
|
|
@@ -32,10 +34,10 @@ const props = defineProps({
|
|
|
--image-box1-left1: url('/@/assets/images/beltFire/1-4.png');
|
|
|
--image-box1-mid: url('/@/assets/images/beltFire/1-5.png');
|
|
|
--image-box1-right: url('/@/assets/images/beltFire/1-6.png');
|
|
|
- --container-color: #00213236;
|
|
|
- --container-image: linear-gradient(#3df6ff00, #3df6ff, #3df6ff00);
|
|
|
+ --container-color: #022132;
|
|
|
width: 100%;
|
|
|
min-height: 80px;
|
|
|
+
|
|
|
.box1-top {
|
|
|
width: 65%;
|
|
|
height: 35px;
|
|
|
@@ -53,12 +55,6 @@ const props = defineProps({
|
|
|
color: #fff;
|
|
|
}
|
|
|
}
|
|
|
- .box1-top-beltYjkf {
|
|
|
- margin-top: 13px;
|
|
|
- }
|
|
|
- .box1-top-fireMonitorMid {
|
|
|
- width: 30% !important;
|
|
|
- }
|
|
|
.box1-center {
|
|
|
width: 93%;
|
|
|
margin-left: 15px;
|
|
|
@@ -70,6 +66,45 @@ const props = defineProps({
|
|
|
color: #fff;
|
|
|
}
|
|
|
}
|
|
|
+ .box1-bottom {
|
|
|
+ width: 100%;
|
|
|
+ height: 97%;
|
|
|
+ position: absolute;
|
|
|
+ bottom: 0px;
|
|
|
+ pointer-events: none;
|
|
|
+ z-index: -1 !important;
|
|
|
+ background-size: 100% 100%;
|
|
|
+ background-image: var(--image-box1-bottom);
|
|
|
+ }
|
|
|
+
|
|
|
+ /* 默认正常样式 */
|
|
|
+ .box1-bottom.alarm-normal {
|
|
|
+ background-image: var(--image-box1-bottom);
|
|
|
+ }
|
|
|
+ .box1-bottom.alarm-normal.beltYjkf,
|
|
|
+ .box1-bottom.alarm-normal.beltYjkf1 {
|
|
|
+ background-image: var(--image-box1-bottom1);
|
|
|
+ }
|
|
|
+
|
|
|
+ /* 黄色告警 */
|
|
|
+ .box1-bottom.alarm-yellow {
|
|
|
+ background-image: url('/@/assets/images/beltFire/1-2-1.png');
|
|
|
+ }
|
|
|
+ /* 橙色告警 */
|
|
|
+ .box1-bottom.alarm-orange {
|
|
|
+ background-image: url('/@/assets/images/beltFire/1-2-3.png');
|
|
|
+ }
|
|
|
+ /* 红色告警 */
|
|
|
+ .box1-bottom.alarm-warning {
|
|
|
+ background-image: url('/@/assets/images/beltFire/1-2-2.png');
|
|
|
+ }
|
|
|
+
|
|
|
+ .box1-top-beltYjkf {
|
|
|
+ margin-top: 13px;
|
|
|
+ }
|
|
|
+ .box1-top-fireMonitorMid {
|
|
|
+ width: 30% !important;
|
|
|
+ }
|
|
|
.box1-center-fireMonitorMid {
|
|
|
margin-left: 30px !important;
|
|
|
margin-bottom: 10px !important;
|
|
|
@@ -84,34 +119,20 @@ const props = defineProps({
|
|
|
height: calc(100% - 73px);
|
|
|
margin-top: 50px;
|
|
|
}
|
|
|
- .box1-bottom {
|
|
|
- width: 100%;
|
|
|
- height: 97%;
|
|
|
- position: absolute;
|
|
|
- bottom: 0px;
|
|
|
- pointer-events: none;
|
|
|
- z-index: -1 !important;
|
|
|
- }
|
|
|
- // 默认样式
|
|
|
- .box1-bottom {
|
|
|
- background: var(--image-box1-bottom) no-repeat;
|
|
|
+ .box1-bottom-fireMonitorLeft {
|
|
|
+ background: var(--image-box1-left1) no-repeat;
|
|
|
background-size: 100% 100%;
|
|
|
}
|
|
|
.box1-bottom-beltYjkf1 {
|
|
|
- background: var(--image-box1-bottom1) no-repeat;
|
|
|
+ background: var(--image-box1-left1) no-repeat;
|
|
|
background-size: 100% 100%;
|
|
|
}
|
|
|
.box1-bottom-beltYjkf {
|
|
|
- background: var(--image-box1-bottom1) no-repeat;
|
|
|
- background-size: 100% 100%;
|
|
|
- }
|
|
|
- .box1-bottom-fireMonitorLeft {
|
|
|
background: var(--image-box1-left1) no-repeat;
|
|
|
background-size: 100% 100%;
|
|
|
}
|
|
|
.box1-bottom-fireMonitorMid {
|
|
|
background: var(--image-box1-mid) no-repeat !important;
|
|
|
- background-size: 100% 100% !important;
|
|
|
}
|
|
|
}
|
|
|
-</style>
|
|
|
+</style>
|