<template>
  <table class="info_table">
    <tr>
      <td class="cell_title">风速</td>
      <td class="cell_data"><span class="fontSpan">{{ grider.windSpeed }}</span>米/时</td>
      <td class="cell_title">风力</td>
      <td class="cell_data"><span class="fontSpan">{{ grider.windPower }}</span> 级</td>
    </tr>
    <tr>
      <td class="cell_title">位置</td>
      <td class="cell_data"><span class="fontSpan">{{ grider.position }}</span>米</td>
      <td class="cell_title" title="单次工作时间">单次工作时间</td>
      <td class="cell_data"><span class="fontSpan">{{ grider.onceWorkTime }}</span>小时</td>
    </tr>
    <tr>
      <td class="cell_title">循环次数</td>
      <td class="cell_data"><span class="fontSpan">1</span>次</td>
      <td class="cell_title">累计工作时间</td>
      <td class="cell_data"><span class="fontSpan">{{ grider.onceWorkTime }}</span>小时</td>
    </tr>
    <tr>
      <td class="cell_title" colspan="2">起吊重量</td>
      <td class="cell_data" colspan="2">{{ grider.slingWeight }}</td>
    </tr>
    <!-- <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" title="前支腿位置">前支腿位置</td>
      <td class="cell_data"><span class="fontSpan">{{ grider.frontPosition }}</span>米</td>
      <td class="cell_title" title="前支腿垂直度纵向">前支腿垂直度纵向</td>
      <td class="cell_data"><span class="fontSpan">{{ grider.frontVertical }}</span>°</td>
    </tr>
    <tr>
      <td class="cell_title">速度</td>
      <td class="cell_data"><span class="fontSpan">{{ grider.frontSpeed }}</span>米/s</td>
      <td class="cell_title" title="中支腿状态">中支腿状态</td>
      <td class="cell_data"><span class="fontSpan">{{ grider.middleStatus }}</span></td>
    </tr>
    <tr>
      <td class="cell_title">系统状态</td>
      <td class="cell_data"><span class="fontSpan">正常</span></td>
      <td class="cell_title" title="起吊总重量">起吊总重量</td>
      <td class="cell_data"><span class="fontSpan">{{ grider.slingWeight }}</span>t</td>
    </tr> -->
    <!-- <tr>
      <td class="cell_title" colspan="2">前小车</td>
      <td class="cell_title" colspan="2">后小车</td>
    </tr>
    <tr>
      <td class="cell_title">行走速度</td>
      <td class="cell_title">行走位置</td>
      <td class="cell_title">行走速度</td>
      <td class="cell_title">行走位置</td>
    </tr>
    <tr>
      <td class="cell_data"><span class="fontSpan">{{ grider.beforeCarSpeed }}</span>m/s</td>
      <td class="cell_data"><span class="fontSpan">{{ grider.beforeCarPosition }}</span></td>
      <td class="cell_data"><span class="fontSpan">{{ grider.afterCarSpeed }}</span>m/s</td>
      <td class="cell_data"><span class="fontSpan">{{ grider.afterCarPosition }}</span></td>
    </tr> -->
  </table>
</template>

<script>
export default {
  name: 'THAInfoMng',
  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>
