<template>
  <table class="info_table">
    <tr>
      <td class="cell_title" title="整机纵向水平度">整机纵向水平度</td>
      <td class="cell_data"><span class="fontSpan">{{ grider.verticalLeveLness }}</span>°</td>
      <td class="cell_title" title="整机纵向水平度">整机纵向垂直度</td>
      <td class="cell_data"><span class="fontSpan">{{ grider.horizontaLeveLness }}</span>°</td>
    </tr>
    <tr>
      <td class="cell_title">前支腿位置</td>
      <td class="cell_data"><span class="fontSpan">{{ grider.frontPosition }}</span>米</td>
      <td class="cell_title">前支腿速度</td>
      <td class="cell_data"><span class="fontSpan">{{ grider.frontSpeed }}</span>m/小时</td>
    </tr>
    <tr>
      <td class="cell_title" title="整机纵向水平度">前支腿纵向垂直度</td>
      <td class="cell_data"><span class="fontSpan">{{ grider.frontVertical }}</span>°</td>
      <td class="cell_title">中支腿状态</td>
      <td class="cell_data"><span class="fontSpan">{{ grider.middleStatus }}</span></td>
    </tr>
    <tr>
      <td class="cell_title" colspan="2">后支腿速度</td>
      <td class="cell_data" colspan="2"><span class="fontSpan">{{ grider.laterSpeed }}</span>m/小时</td>
    </tr>
  </table>
</template>

<script>
export default {
  name: 'BeamSupportMng',
  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;
    white-space:nowrap;
    text-overflow:
    ellipsis;
    overflow: hidden;
  }
  .fontSpan{
    font-weight: 900;
    color: green;
  }
}

</style>
