|
@@ -14,7 +14,6 @@
|
|
|
</th>
|
|
|
<th colspan="25">
|
|
|
<span style="font-size: 40px">蒸汽裂解装置锁开&锁关摆放看板(EU)</span><br/>
|
|
|
- <!-- <span style="font-size: 18px">LO&LC display board of Steam Cracker plant(EU)</span>-->
|
|
|
</th>
|
|
|
<th colspan="5">
|
|
|
<el-tag type="success" style="font-size: 20px;margin: 0px 10px;background-color: #67C23A" size="medium"
|
|
@@ -29,15 +28,15 @@
|
|
|
<td v-for="(item) in list">
|
|
|
<el-button type="text" @click="handleClick,openDialog(item.id,item.status,item.lockCode)"
|
|
|
style="color: #fff;padding: 5px;height: 100%;font-weight: bold"
|
|
|
- :class=" item.status===2? 'grey' : (item.status===1 ? 'red':'green')">
|
|
|
- <svg-icon icon-class="key" style="font-size: 300%" v-if="item.status===1"/>
|
|
|
- <i class="el-icon-circle-close" style="font-size: 300%" v-else-if="item.status===2"/>
|
|
|
- <svg-icon icon-class="key" style="font-size: 300%" v-else/>
|
|
|
+ :class="item.lockCode==null?'fff':( item.status===2? 'grey' : (item.status===1 ? 'red':'green'))">
|
|
|
+ <svg-icon icon-class="key" style="font-size: 300%" v-if="item.status!==2"/>
|
|
|
+ <i class="el-icon-circle-close" style="font-size: 300%" v-if="item.status===2"/>
|
|
|
<br/>
|
|
|
<br/>
|
|
|
- <span>{{ item.lockCode.substring(0, item.lockCode.indexOf('-')) }}</span>
|
|
|
- <br><br>
|
|
|
- <span>{{ item.lockCode.substring(item.lockCode.indexOf('-'), item.lockCode.length) }}</span>
|
|
|
+ <div v-if="item.lockCode!=null">
|
|
|
+ <span>{{ item.lockCode.substring(0, item.lockCode.indexOf('-')) }}</span>
|
|
|
+ <br><br>
|
|
|
+ <span>{{ item.lockCode.substring(item.lockCode.indexOf('-'), item.lockCode.length) }}</span></div>
|
|
|
</el-button>
|
|
|
</td>
|
|
|
</tr>
|
|
@@ -477,6 +476,10 @@ el-button {
|
|
|
height: auto;
|
|
|
}
|
|
|
|
|
|
+.fff {
|
|
|
+ background-color: #fff;
|
|
|
+}
|
|
|
+
|
|
|
.green {
|
|
|
background-color: #67C23A;
|
|
|
}
|