|
@@ -110,6 +110,11 @@
|
|
<more-text :data="scope.row.clazzNames" :show-count="3"></more-text>
|
|
<more-text :data="scope.row.clazzNames" :show-count="3"></more-text>
|
|
</span>
|
|
</span>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
+ <el-table-column prop="teachList" label="授课老师" min-width="120">
|
|
|
|
+ <span slot-scope="scope">
|
|
|
|
+ <more-text :data="scope.row.teachNames" :show-count="3"></more-text>
|
|
|
|
+ </span>
|
|
|
|
+ </el-table-column>
|
|
<el-table-column prop="createTime" label="创建时间" width="170">
|
|
<el-table-column prop="createTime" label="创建时间" width="170">
|
|
<span slot-scope="scope">{{
|
|
<span slot-scope="scope">{{
|
|
scope.row.createTime | timestampFilter
|
|
scope.row.createTime | timestampFilter
|
|
@@ -245,6 +250,9 @@ export default {
|
|
const data = await courseListPage(datas);
|
|
const data = await courseListPage(datas);
|
|
this.courses = data.records.map((item) => {
|
|
this.courses = data.records.map((item) => {
|
|
item.clazzNames = item.clazzList.map((org) => org.name);
|
|
item.clazzNames = item.clazzList.map((org) => org.name);
|
|
|
|
+ item.teachNames = item.teachList.map(
|
|
|
|
+ (user) => `${user.name}(${user.orgName})`
|
|
|
|
+ );
|
|
return item;
|
|
return item;
|
|
});
|
|
});
|
|
this.total = data.total;
|
|
this.total = data.total;
|