<template>
  <table class="info_table">
    <tr>
      <td class="cell_title" colspan="6">运梁车均衡力信息</td>
    </tr>
    <tr>
      <td class="cell_title">前车或后车</td>
      <td class="cell_title">前左均衡力</td>
      <td class="cell_title">前右均衡力</td>
      <td class="cell_title">左后均衡力</td>
      <td class="cell_title">左后均衡力</td>
      <td class="cell_title">右后均衡力</td>
    </tr>
    <tr v-for="item in grider" :key="item.id">
      <td class="cell_title"><span class="fontSpan">{{ item.no }}</span></td>
      <td class="cell_title"><span class="fontSpan">{{ item.weight }}</span></td>
      <td class="cell_title"><span class="fontSpan">{{ item.height }}</span></td>
      <td class="cell_title"><span class="fontSpan">{{ item.quantity }}</span></td>
      <td class="cell_title"><span class="fontSpan">{{ item.height1 }}</span></td>
      <td class="cell_title"><span class="fontSpan">{{ item.quantity1 }}</span></td>
    </tr>
  </table>
</template>

<script>
export default {
  name: 'TacklingSysMng',
  data() {
    return {
      grider: [
        {
          no: '前车',
          weight: 1,
          height: 2,
          quantity: 3,
          height1: 4,
          quantity1: 5
        },
        {
          no: '后车',
          weight: 1,
          height: 2,
          quantity: 3,
          height1: 4,
          quantity1: 5
        }
      ]
    }
  },
  methods: {
    show(data) {
      if (data) {
        this.grider = [
          {
            no: '前车',
            weight: 1,
            height: 2,
            quantity: 3,
            height1: 4,
            quantity1: 5
          },
          {
            no: '后车',
            weight: 1,
            height: 2,
            quantity: 3,
            height1: 4,
            quantity1: 5
          }
        ]
      }
    }
  }
}
</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>
