activeitiestable.vue
878 Bytes
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
<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>