activeitiestable.vue 878 Bytes
<template>
  <div>
    <el-table
      id="domBaseTrafficFlow"
      :data="tableData"
      header-row-class-name="asis-table-head"
      style="width: 100%"
    >
      <el-table-column
        type="index"
        label="排名"
        align="center"
        width="80"
      >
    
      </el-table-column>
      <el-table-column prop="formatName" label="业态名称" align="center">
      </el-table-column>
      <el-table-column prop="trafficNum" label="客流人数" align="center">
      </el-table-column>
    </el-table>
  </div>
</template>

<script>
export default {

  props: {
    tableData: Array,
  },
  data() {
    return {
      height:'500px'
    }
  },
  watch:{
    tableData(val){
      console.log(val)
    }
  },
  mounted(){
    console.log(this.tableData)
  }
};
</script>

<style scoped>
.softtable{
  margin-top:50px;
  padding:0 15px;
}
</style>