using the Table component in element-UI, the requirement now is to traverse the array of objects in the array in the second level?
<el-table :data="applyList" style="width: 100%">
<el-table-column label="">
<template slot-scope="scope">
<div>
<span>:</span>
<span>:</span>
<span>:</span>
<span>:</span>
<span>:</span>
<span>:</span>
<span>:</span>
<span>:</span>
</div>
</template>
</el-table-column>
</el-table>
<script>
export default {
data() {
return {
applyList: [],
courseReportPeopleDtoList: []
};
},
created() {
this.getApplyList();
},
methods: {
//
getApplyList() {
let param = {
courseId: this.ruleForm.courseId,
courseName: this.ruleForm.courseName,
lecturerName: this.ruleForm.lecturerName,
page: this.ruleForm.page,
pageSize: this.ruleForm.pageSize
};
this.$http
.get(this.$api.courseReportDetails, { params: param })
.then(res => {
if (res.status == 200) {
this.applyList = res.data.data.data;
}
})
.catch(err => {
console.log(err);
});
},
}
};
</script>
data returned by background
how do I render through the courseReportPeopleDtoList array?