pflowsort.vue 1.7 KB
<template>
  <div>
    <el-table
      id="domBaseTrafficFlow"
      :data="tableData"
      header-row-class-name="asis-table-head"
      style="width: 100%"
    >
      
      <el-table-column
        v-if="isSource||isTarget"
        label="序号"
        align="center"
        prop="order"
        width="80"
      >
      </el-table-column>
      <el-table-column
        v-else-if="!isZone"
        type="index"
        label="排名"
        align="center"
        width="80"
      ></el-table-column>
      <el-table-column prop="storeName" label="店铺名称" align="center">
      </el-table-column>
      <el-table-column prop="floorName" label="楼层" align="center">
      </el-table-column>
      <el-table-column prop="formatName" label="业态" align="center">
      </el-table-column>
      <el-table-column prop="trafficNum" :label="(isSource?'流入':isTarget?'流出':'客流')+'人数'" align="center">
      </el-table-column>
      <el-table-column v-if="showTime" prop="timeDate" label="日期" align="center">
      </el-table-column>
      <!-- <el-table-column
            label="详情"
            align="center"
          >
              <template slot-scope="scope">
          <span>{{ indexFormatter(scope) }}</span>
        </template>
          </el-table-column> -->
    </el-table>
  </div>
</template>

<script>
export default {

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

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