Commit 97453e58 authored by 黄奎's avatar 黄奎

1111

parent f19f421a
...@@ -2,7 +2,8 @@ ...@@ -2,7 +2,8 @@
<div class="page-body MainPlan xg"> <div class="page-body MainPlan xg">
<div class="col row wrap q-col-gutter-md"> <div class="col row wrap q-col-gutter-md">
<div class="col-2 flex"> <div class="col-2 flex">
<el-select v-model="msg.TeacherAccountId" style="width: 100%" placeholder="教师" size="small" @change="refreshPage()"> <el-select v-model="msg.TeacherAccountId" style="width: 100%" placeholder="教师" size="small"
@change="refreshPage()">
<el-option v-for="item in TeacherList" :key="item.Id" :label="item.EmployeeName" :value="item.Id" clearable> <el-option v-for="item in TeacherList" :key="item.Id" :label="item.EmployeeName" :value="item.Id" clearable>
</el-option> </el-option>
<div slot="prefix" class="full-height flex items-center" style="color: #000; padding-right: 10px"> <div slot="prefix" class="full-height flex items-center" style="color: #000; padding-right: 10px">
...@@ -31,7 +32,7 @@ ...@@ -31,7 +32,7 @@
</el-select> </el-select>
</div> </div>
</div> </div>
<cancelClassList :dataList="tableData"></cancelClassList> <cancelClassList :dataList="tableData" :MaxLength="MaxLength"></cancelClassList>
</div> </div>
</template> </template>
...@@ -69,6 +70,7 @@ ...@@ -69,6 +70,7 @@
TeacherList: [], //教师团队 TeacherList: [], //教师团队
CourseList: [], //课程列表 CourseList: [], //课程列表
CourseRateList: [], //课程等级 CourseRateList: [], //课程等级
MaxLength: 0,
}; };
}, },
created() { created() {
...@@ -97,7 +99,8 @@ ...@@ -97,7 +99,8 @@
getPlanList() { getPlanList() {
queryStuLearnChapterStatic(this.msg).then((res) => { queryStuLearnChapterStatic(this.msg).then((res) => {
if (res.Code == 1) { if (res.Code == 1) {
this.tableData = res.Data; this.tableData = res.Data.list;
this.MaxLength = res.Data.MaxLength;
} }
}); });
}, },
......
<template> <template>
<div class="page-cancelClassList-body"> <div class="page-cancelClassList-body">
<div class="fit row no-wrap items-start content-start"> <!-- <div class="fit row no-wrap items-start content-start">
<div class="cancelClassList-left col-xl-1 col-lg-1 col-md-2 col-sm-3 col-xs-3"> <div class="cancelClassList-left col-xl-1 col-lg-1 col-md-2 col-sm-3 col-xs-3">
<div v-for="item in titleList" class="left-text"> <div v-for="item in titleList" class="left-text">
{{item.name}} {{item.name}}
...@@ -16,7 +16,6 @@ ...@@ -16,7 +16,6 @@
<div class="content-title teacherName">老师名字</div> <div class="content-title teacherName">老师名字</div>
<div class="content-title traineesName activeOne">学员名字</div> <div class="content-title traineesName activeOne">学员名字</div>
<div class="right-content" v-for="item in 3"> <div class="right-content" v-for="item in 3">
<!-- <div class="content-single activeOne">语音1语音1语音1语音1</div> -->
<div class="content-multiple fit row"> <div class="content-multiple fit row">
<div class="content-tetx activeOne">理解</div> <div class="content-tetx activeOne">理解</div>
<div class="content-tetx activeTwo">活动2</div> <div class="content-tetx activeTwo">活动2</div>
...@@ -29,19 +28,56 @@ ...@@ -29,19 +28,56 @@
</div> </div>
</div> </div>
</div> </div>
</div> </div> -->
<table>
<thead>
<tr>
<th>
课程名称
</th>
<th>
老师
</th>
<th>
学生
</th>
</tr>
</thead>
<tbody v-for="(item,index) in dataList" :key="index">
<tr>
<td>
{{item.CourseName}}
</td>
<td>
{{item.TeacherName}}
</td>
<td>
{{item.StuName}}
</td>
<template v-for="(subItem,subIndex) in item.ChapterList">
<td>
{{subItem.ChapterName}}
</td>
</template>
</tr>
</tbody>
</table>
</div> </div>
</template> </template>
<script> <script>
export default { export default {
props: { props: {
dataList: { dataList: {
type: Array, type: Array,
default: null, default: null,
}, },
MaxLength:
{
type:Number,
default:0,
},
loading: { loading: {
type: Boolean, type: Boolean,
default: false, default: false,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment