<template>
  <table class="info_table">
    <tr>
      <td class="cell_title" colspan="8">起吊系统</td>
    </tr>
    <tr>
      <td class="cell_title" colspan="4">起吊总重量</td>
      <td class="cell_data" colspan="4"><span class="fontSpan">{{ grider.slingWeight }}</span>t</td>
    </tr>
    <tr>
      <td class="cell_title" colspan="4">1#吊钩</td>
      <td class="cell_title" colspan="4">2#吊钩</td>
    </tr>
    <tr>
      <td class="cell_title">重量</td>
      <td class="cell_title" title="起升速度">起升速度</td>
      <td class="cell_title" title="下降速度">下降速度</td>
      <td class="cell_title" title="横移量">横移量</td>
      <td class="cell_title">重量</td>
      <td class="cell_title" title="起升速度">起升速度</td>
      <td class="cell_title" title="下降速度">下降速度</td>
      <td class="cell_title" title="横移量">横移量</td>
    </tr>
    <tr>
      <td class="cell_data"><span class="fontSpan">{{ grider.firstWeight }}</span>t</td>
      <td class="cell_data"><span class="fontSpan">{{ grider.firstHeight }}</span>m/s</td>
      <td class="cell_data"><span class="fontSpan">{{ grider.firstSpeed }}</span>m/s</td>
      <td class="cell_data"><span class="fontSpan">{{ grider.firstQuantity }}</span>cm</td>
      <td class="cell_data"><span class="fontSpan">{{ grider.secondWeight }}</span>t</td>
      <td class="cell_data"><span class="fontSpan">{{ grider.secondHeight }}</span>m/s</td>
      <td class="cell_data"><span class="fontSpan">{{ grider.secondSpeed }}</span>m/s</td>
      <td class="cell_data"><span class="fontSpan">{{ grider.secondQuantity }}</span>cm</td>
    </tr>
    <tr>
      <td class="cell_title" colspan="4">3#吊钩</td>
      <td class="cell_title" colspan="4">4#吊钩</td>
    </tr>
    <tr>
      <td class="cell_title">重量</td>
      <td class="cell_title" title="起升速度">起升速度</td>
      <td class="cell_title" title="下降速度">下降速度</td>
      <td class="cell_title" title="横移量">横移量</td>
      <td class="cell_title">重量</td>
      <td class="cell_title" title="起升速度">起升速度</td>
      <td class="cell_title" title="下降速度">下降速度</td>
      <td class="cell_title" title="横移量">横移量</td>
    </tr>
    <tr>
      <td class="cell_data"><span class="fontSpan">{{ grider.threeWeight }}</span>t</td>
      <td class="cell_data"><span class="fontSpan">{{ grider.threeHeight }}</span>m/s</td>
      <td class="cell_data"><span class="fontSpan">{{ grider.threeSpeed }}</span>m/s</td>
      <td class="cell_data"><span class="fontSpan">{{ grider.threeQuantity }}</span>cm</td>
      <td class="cell_data"><span class="fontSpan">{{ grider.fourWeight }}</span>t</td>
      <td class="cell_data"><span class="fontSpan">{{ grider.fourHeight }}</span>m/s</td>
      <td class="cell_data"><span class="fontSpan">{{ grider.fourWeight }}</span>m/s</td>
      <td class="cell_data"><span class="fontSpan">{{ grider.fourWeight }}</span>cm</td>
    </tr>
  </table>
</template>

<script>
export default {
  name: 'THAInfoMng',
  data() {
    return {
      grider: {
        windSpeed: 21,
        windPower: 4,
        airTemp: 24,
        position: 30,
        verticalLeveLness: 0.1,
        horizontaLeveLness: 0.1,
        frontPosition: 2,
        frontVertical: 0.1,
        frontSpeed: 0,
        middleStatus: '支撑',
        laterSpeed: 0,
        sysStatus: 0,
        limitState: '喂梁',
        slingWeight: 900,
        firstWeight: 0,
        firstHeight: 0,
        firstSpeed: 0,
        firstQuantity: 0,
        secondWeight: 0,
        secondHeight: 0,
        secondSpeed: 0,
        secondQuantity: 0,
        threeWeight: 0,
        threeHeight: 0,
        threeSpeed: 0,
        threeQuantity: 0,
        fourWeight: 0,
        fourHeight: 0,
        fourSpeed: 0,
        fourQuantity: 0
      }
    }
  },
  methods: {
    show(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: #606266;
    table-layout:fixed;
    .cell_title{
      background-color: #f7f7f7 !important;
      text-align: center;
    }
    .cell_data{
      text-align: center;
      width: 12.5%;
    }
    td {
    border: 1px solid #dfe6ec;
    padding: 10px 0;
    min-width: 0;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    text-overflow: ellipsis;
    line-height:23px;
    vertical-align: middle;
    position: relative;
    text-align: left;
    white-space:nowrap;
    text-overflow:
    ellipsis;
    overflow: hidden;
  }
  .fontSpan{
    font-weight: 900;
    color: green;
  }
}

</style>
