设备名称
@@ -253,7 +294,7 @@ export default {
// this.$set(this.almData[deviceID], e.deviceParam.monitorId, e.alarmRules.map(v => {
// return v.ruleName
// }))
- this.$set(this.almData[deviceID], e.deviceParam.monitorId, ['报警1', '报警2'])
+ this.$set(this.almData[deviceID], e.deviceParam.monitorId, ['报警信息'])
}
console.log(this.deviceData.E0014)
}
@@ -279,6 +320,12 @@ export default {
right: 0%;
bottom: 27%;
+ .alm {
+ position: absolute;
+ top: 100%;
+ right: 0%;
+ }
+
.line {
position: absolute;
top: 100%;
@@ -295,6 +342,12 @@ export default {
right: 24%;
bottom: 25%;
+ .alm {
+ position: absolute;
+ top: 100%;
+ right: 0%;
+ }
+
.line {
position: absolute;
top: 100%;
@@ -311,6 +364,12 @@ export default {
left: 40%;
bottom: 25%;
+ .alm {
+ position: absolute;
+ top: 100%;
+ left: 0%;
+ }
+
.line {
position: absolute;
top: 100%;
@@ -328,6 +387,13 @@ export default {
bottom: 66%;
+ .alm {
+ position: absolute;
+ top: 100%;
+ left: 60%;
+ transform: translateX(-50%);
+ }
+
.line {
position: absolute;
top: 100%;
@@ -347,16 +413,10 @@ export default {
transform: translateX(-50%);
color: #fff;
- .alm {
- position: absolute;
- bottom: 0;
- left: 50%;
- transform: translateX(-50%);
- }
.table1 {
width: 100%;
- height: 55px;
+ height: 50px;
background-image: url(~@/assets/images/table1.jpg);
background-repeat: no-repeat;
background-size: 100% 100%;
@@ -364,8 +424,8 @@ export default {
.th1, .th2 {
white-space: nowrap;
display: inline-block;
- line-height: 55px;
- min-height: 55px;
+ line-height: 50px;
+ min-height: 50px;
font-size: 18px;
font-weight: 700;
text-align: center;
@@ -433,4 +493,20 @@ export default {
.data {
}
}
+
+.alm {
+ animation: colourSwitching 0.5s infinite;
+}
+
+@keyframes colourSwitching {
+ 0% {
+ color: #ffff00;
+ }
+ 50% {
+ color: #ff0000;
+ }
+ 100% {
+ color: #ffff00;
+ }
+}