Commit 08bc2738 authored by 王's avatar

班级列表增加统计字断

parent 3d7e4312
...@@ -32,13 +32,36 @@ ...@@ -32,13 +32,36 @@
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
<div v-if="classList && classList.length > 0"> <div v-if="classList && classList.length > 0" class="intro">
<el-form label-width="90px" inline> <el-form label-width="100px">
<el-form-item label="期数">{{title.title}}</el-form-item> <el-row>
<el-form-item label="开始时间">{{title.start_at}}</el-form-item> <el-col :span="6">
<el-form-item label="结束时间">{{title.over_at}}</el-form-item> <el-form-item label="期数名称">{{title.title}}</el-form-item>
<el-form-item label="可看课包数">{{title.watch_num }}</el-form-item> </el-col>
<el-form-item label="已看课包数">{{title.has_watch_num }}</el-form-item> <el-col :span="6">
<el-form-item label="可看课包数">{{title.watch_num }}</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="已看课包数">{{title.has_watch_num }}</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="开始时间">{{title.start_at}}</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="6">
<el-form-item label="老师数量">{{countObj.count_teacher_num}}</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="预计学生总数">{{countObj.count_max_join_num}}</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="班级学生总数">{{countObj.count_join_num}}</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="结束时间">{{title.over_at}}</el-form-item>
</el-col>
</el-row>
</el-form> </el-form>
</div> </div>
<div v-if="!classList || classList.length === 0"> <div v-if="!classList || classList.length === 0">
...@@ -98,6 +121,7 @@ ...@@ -98,6 +121,7 @@
teacher_id:'', teacher_id:'',
classList:[], classList:[],
title:'', title:'',
countObj: '',
teacherList:[], teacherList:[],
userObj:{ userObj:{
classId:'', classId:'',
...@@ -188,6 +212,7 @@ ...@@ -188,6 +212,7 @@
} }
getClassListApi(this.periods.id,json).then(res=>{ getClassListApi(this.periods.id,json).then(res=>{
this.title = res.periods; this.title = res.periods;
this.countObj = res.count ? res.count : '';
this.classList = res.list; this.classList = res.list;
this.total = res.total; this.total = res.total;
}) })
...@@ -239,4 +264,8 @@ ...@@ -239,4 +264,8 @@
.class{ .class{
padding: 20px 0; padding: 20px 0;
} }
.intro .el-form-item{
margin-bottom: 0;
}
</style> </style>
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="周几不上课"> <el-form-item label="不上课日期">
<el-select v-model="form.rest_week_day" multiple placeholder="请选择"> <el-select v-model="form.rest_week_day" multiple placeholder="请选择">
<el-option <el-option
v-for="item in options" v-for="item in options"
......
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