沙盘字体样式

master
wj 2 years ago
parent 4b149fd040
commit a0839f1ed4
  1. 17
      psdc-ui/src/views/emonitor/sp/index.vue

@ -1,7 +1,7 @@
<template> <template>
<div class="app-container home"> <div class="app-container home">
<h1>{{data.name}}</h1> <!-- <h1>{{data.name}}</h1>-->
<h1>运行状态:{{data.status}}</h1> <h1>运行状态<span :class="{'green':data.status == '正在运行','red':data.status == '停止运行'}">{{data.status}}</span></h1>
<img src="../../../assets/images/shapan.png" class="img"> <img src="../../../assets/images/shapan.png" class="img">
</div> </div>
</template> </template>
@ -21,9 +21,9 @@ export default {
if(res.data!=null) { if(res.data!=null) {
data.name = res.data.deviceName data.name = res.data.deviceName
if (res.data.deviceRunstatus == true) { if (res.data.deviceRunstatus == true) {
data.status = '开启' data.status = '正在运行'
} else { } else {
data.status = '关闭' data.status = '停止运行'
} }
} }
}) })
@ -43,5 +43,14 @@ export default {
margin-left: 250px; margin-left: 250px;
margin-top: 100px; margin-top: 100px;
} }
h1{
font-size: 16px;
}
.green{
color: #14FF00;
}
.red{
color: red;
}
</style> </style>

Loading…
Cancel
Save