<template>
  <table class="info_table">
    <tr>
      <td class="cell_title"><span style="margin-right:15px">行走工作模式</span><i v-show="grider.walk" class="el-icon-s-opportunity" style="color:green" /><i v-show="!grider.walk" class="el-icon-s-opportunity" style="color:red" /></td>
      <td class="cell_data"><span style="margin-right:15px">卷扬机1起升工作状态</span><i v-show="grider.firstWinch" class="el-icon-s-opportunity" style="color:green" /><i v-show="!grider.firstWinch" class="el-icon-s-opportunity" style="color:red" /></td>
      <td class="cell_title"><span style="margin-right:15px">卷扬机2起升工作状态</span><i v-show="grider.secondWinch" class="el-icon-s-opportunity" style="color:green" /><i v-show="!grider.secondWinch" class="el-icon-s-opportunity" style="color:red" /></td>
    </tr>
    <tr>
      <td class="cell_data"><span style="margin-right:15px">前车控制权</span><i v-show="grider.frontControl" class="el-icon-s-opportunity" style="color:green" /><i v-show="!grider.frontControl" class="el-icon-s-opportunity" style="color:red" /></td>
      <td class="cell_title"><span style="margin-right:15px">中车控制权</span><i v-show="grider.centerControl" class="el-icon-s-opportunity" style="color:green" /><i v-show="!grider.centerControl" class="el-icon-s-opportunity" style="color:red" /></td>
      <td class="cell_data"><span style="margin-right:15px">后车控制权</span><i v-show="grider.rearControl" class="el-icon-s-opportunity" style="color:green" /><i v-show="!grider.rearControl" class="el-icon-s-opportunity" style="color:red" /></td>
    </tr>
    <tr>
      <td class="cell_title"><span style="margin-right:15px">主支腿泵站启动</span><i v-show="grider.ledStart" class="el-icon-s-opportunity" style="color:green" /><i v-show="!grider.ledStart" class="el-icon-s-opportunity" style="color:red" /></td>
      <td class="cell_data"><span style="margin-right:15px">蠕动C</span><i v-show="grider.wriggle" class="el-icon-s-opportunity" style="color:green" /><i v-show="!grider.wriggle" class="el-icon-s-opportunity" style="color:red" /></td>
      <td class="cell_title"><span style="margin-right:15px">喂梁</span><i v-show="grider.feed" class="el-icon-s-opportunity" style="color:green" /><i v-show="!grider.feed" class="el-icon-s-opportunity" style="color:red" /></td>
    </tr>
  </table>
</template>

<script>
export default {
  name: 'LimitStateMng',
  data() {
    return {
      grider: {}
    }
  },
  methods: {
    show(data) {
      if (data) {
        this.grider = data
      }
    }
  }
}
</script>

<style lang="scss" scoped>
.info_table {
    position: relative;
    overflow: hidden;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    width: 100%;
    max-width: 100%;
    //background-color: #FFFFFF;
    font-size: 14px;
    color: white;
    table-layout:fixed;
    .cell_title{
      //background-color: #f7f7f7 !important;
      text-align: center;
      width: 25%;
    }
    .cell_data{
      text-align: center;
      width: 25%;
    }
    td {
    border: 1px solid #dfe6ec;
    padding: 9px 0;
    min-width: 0;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    text-overflow: ellipsis;
    vertical-align: middle;
    position: relative;
    text-align: left;
  }
  .fontSpan{
    font-weight: 900;
    color: green;
  }
}

</style>
