这是get到的数据
这里是我写的data
data中直接写
tableData: [],
就行,在html中的每一个el-table-colum中的prop上对应的用返回的数据即可,比如标题
<el-table-column
prop="blogs.title"
label="日期"
width="180">
</el-table-column>
//或者
<el-table-column
label="日期"
width="180">
<template slot-scope="scope">
{{scope.row.blogs.title}}
</template>
</el-table-column>
js中就是
this.tableData = 你数据返回的list
表格那里不是有一个树形控件吗,可以尝试用那个表格来展示你这个数据
数据是这种
detailList就是table表格接收得数据
上面table
做出来就是这种效果