pflowsort.vue
1.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<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>