|
@@ -46,14 +46,14 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
- <pagination
|
|
|
+ <!-- <pagination
|
|
|
sync
|
|
|
:total.sync="pageInfo.total"
|
|
|
:page.sync="pageInfo.page"
|
|
|
:limit.sync="pageInfo.limit"
|
|
|
:page-sizes="pageInfo.page_size"
|
|
|
@pagination="getList"
|
|
|
- />
|
|
|
+ /> -->
|
|
|
</div>
|
|
|
</div>
|
|
|
<el-dialog
|
|
@@ -206,19 +206,20 @@ export default {
|
|
|
page: this.pageInfo.page
|
|
|
}).then(res => {
|
|
|
let result = res.data;
|
|
|
+ console.log(result, "res,", res);
|
|
|
if (res.code == 200) {
|
|
|
- result.rows.forEach(row => {
|
|
|
+ result.forEach(row => {
|
|
|
let subjectname = [],
|
|
|
subjectIds = [];
|
|
|
- row.subjects.forEach(item => {
|
|
|
+ (row.subjects || []).forEach(item => {
|
|
|
subjectname.push(item.name);
|
|
|
subjectIds.push(item.id);
|
|
|
});
|
|
|
row.subjectName = subjectname;
|
|
|
row.subjectIds = subjectIds;
|
|
|
});
|
|
|
- this.tableList = result.rows;
|
|
|
- this.pageInfo.total = result.total;
|
|
|
+ this.tableList = result;
|
|
|
+ // this.pageInfo.total = result.total;
|
|
|
}
|
|
|
});
|
|
|
},
|