|
@@ -1,69 +1,68 @@
|
|
|
<template>
|
|
|
- <div>
|
|
|
- <div>
|
|
|
- <el-checkbox-group
|
|
|
- v-if="subjectList.length > 1"
|
|
|
- @change="checkSubject"
|
|
|
- v-model="subjectId"
|
|
|
- size="medium"
|
|
|
- style="margin-bottom: 20px"
|
|
|
+ <div class="studentWroks">
|
|
|
+ <el-checkbox-group
|
|
|
+ v-if="subjectList.length > 1"
|
|
|
+ @change="checkSubject"
|
|
|
+ v-model="subjectId"
|
|
|
+ size="medium"
|
|
|
+ style="margin-bottom: 20px"
|
|
|
+ >
|
|
|
+ <el-checkbox-button
|
|
|
+ :class="subjectList.length == 1 ? 'one' : ''"
|
|
|
+ v-for="(item, index) in subjectList"
|
|
|
+ :key="index"
|
|
|
+ :label="item.id"
|
|
|
+ >{{ item.name }}</el-checkbox-button
|
|
|
>
|
|
|
- <el-checkbox-button
|
|
|
- :class="subjectList.length == 1 ? 'one' : ''"
|
|
|
- v-for="(item, index) in subjectList"
|
|
|
- :key="index"
|
|
|
- :label="item.id"
|
|
|
- >{{ item.name }}</el-checkbox-button
|
|
|
- >
|
|
|
- </el-checkbox-group>
|
|
|
- <el-table
|
|
|
- style="width: 100%"
|
|
|
- max-height="300px"
|
|
|
- :header-cell-style="{ background: '#EDEEF0', color: '#444' }"
|
|
|
- :data="list"
|
|
|
- >
|
|
|
- <el-table-column type="expand">
|
|
|
- <template slot-scope="props">
|
|
|
- <el-row
|
|
|
- :gutter="20"
|
|
|
- v-for="(item, index) in props.row.studentLessonTrainingDetail"
|
|
|
- :key="index"
|
|
|
+ </el-checkbox-group>
|
|
|
+ <el-table
|
|
|
+ max-height="300px"
|
|
|
+ :header-cell-style="{ background: '#EDEEF0', color: '#444' }"
|
|
|
+ :data="list"
|
|
|
+ >
|
|
|
+ <el-table-column type="expand">
|
|
|
+ <template slot-scope="props">
|
|
|
+ <el-row
|
|
|
+ :gutter="20"
|
|
|
+ v-for="(item, index) in props.row.studentLessonTrainingDetail"
|
|
|
+ :key="index"
|
|
|
+ >
|
|
|
+ <el-col :span="12"
|
|
|
+ ><div class="rowFirst">{{ item.musicScoreName }}</div></el-col
|
|
|
+ >
|
|
|
+ <el-col :span="6"
|
|
|
+ ><div class="rowSecond">
|
|
|
+ <span>{{ item.trainingSpeed }}</span> 速度
|
|
|
+ </div></el-col
|
|
|
+ >
|
|
|
+ <el-col :span="6"
|
|
|
+ ><div class="rowlast">
|
|
|
+ <span :class="item.trainingTimes >= item.times ? '' : 'red'">{{
|
|
|
+ item.trainingTimes
|
|
|
+ }}</span>
|
|
|
+ / {{ item.times }} 次
|
|
|
+ </div></el-col
|
|
|
>
|
|
|
- <el-col :span="12"
|
|
|
- ><div class="rowFirst">{{ item.musicScoreName }}</div></el-col
|
|
|
- >
|
|
|
- <el-col :span="6"
|
|
|
- ><div class="rowSecond">
|
|
|
- <span>{{ item.trainingSpeed }}</span> 速度
|
|
|
- </div></el-col
|
|
|
- >
|
|
|
- <el-col :span="6"
|
|
|
- ><div class="rowlast">
|
|
|
- <span :class="item.trainingTimes >= item.times ? '' : 'red'">{{
|
|
|
- item.trainingTimes
|
|
|
- }}</span>
|
|
|
- / {{ item.times }} 次
|
|
|
- </div></el-col
|
|
|
- >
|
|
|
- </el-row>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column prop="userName" align="left" label="学生姓名"> </el-table-column>
|
|
|
- <el-table-column prop="phone" align="left" label="手机号"> </el-table-column>
|
|
|
- <el-table-column prop="subjectName" align="left" label="声部名称">
|
|
|
- </el-table-column>
|
|
|
- <el-table-column prop="submitTime" align="left" label="完成时间">
|
|
|
- <template slot-scope="scope">
|
|
|
- <div>{{ scope.row.submitTime | dateForMinFormat }}</div>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column prop="finishFlag" align="right" label="训练情况">
|
|
|
- <template slot-scope="scope">
|
|
|
- <div>{{ scope.row.finishFlag ? "已完成" : "未完成" }}</div>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- </el-table>
|
|
|
- </div>
|
|
|
+ </el-row>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="userName" align="left" label="学生姓名">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="phone" align="left" label="手机号">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="subjectName" align="left" label="声部名称">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="submitTime" align="left" label="完成时间">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <div>{{ scope.row.submitTime | dateForMinFormat }}</div>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="finishFlag" align="right" label="训练情况">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <div>{{ scope.row.finishFlag ? "已完成" : "未完成" }}</div>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
@@ -74,7 +73,7 @@ export default {
|
|
|
return {
|
|
|
subjectId: [],
|
|
|
list: [],
|
|
|
- subjectList: [],
|
|
|
+ subjectList: []
|
|
|
};
|
|
|
},
|
|
|
mounted() {
|
|
@@ -91,7 +90,7 @@ export default {
|
|
|
const res = await getHomeworkStudent({
|
|
|
courseScheduleId: this.courseScheduleId,
|
|
|
type: "HOMEWORK",
|
|
|
- subjectId: this.subjectId[0] ? this.subjectId[0] : "",
|
|
|
+ subjectId: this.subjectId[0] ? this.subjectId[0] : ""
|
|
|
});
|
|
|
this.list = res.data;
|
|
|
} catch (e) {
|
|
@@ -102,7 +101,7 @@ export default {
|
|
|
try {
|
|
|
const res = await getHomeworkSubjectPublic({
|
|
|
courseScheduleId: this.courseScheduleId,
|
|
|
- type: "HOMEWORK",
|
|
|
+ type: "HOMEWORK"
|
|
|
});
|
|
|
this.subjectList = res.data;
|
|
|
} catch (e) {
|
|
@@ -114,8 +113,8 @@ export default {
|
|
|
this.subjectId.shift();
|
|
|
}
|
|
|
this.getStudentList();
|
|
|
- },
|
|
|
- },
|
|
|
+ }
|
|
|
+ }
|
|
|
};
|
|
|
</script>
|
|
|
|
|
@@ -125,6 +124,7 @@ export default {
|
|
|
border-radius: 4px !important;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
.rowFirst {
|
|
|
padding-left: 58px;
|
|
|
color: #101010;
|