|  | @@ -26,16 +26,38 @@
 | 
											
												
													
														|  |                           label="手机号">
 |  |                           label="手机号">
 | 
											
												
													
														|  |          </el-table-column>
 |  |          </el-table-column>
 | 
											
												
													
														|  |          <el-table-column align='center'
 |  |          <el-table-column align='center'
 | 
											
												
													
														|  | -                         prop="status"
 |  | 
 | 
											
												
													
														|  | 
 |  | +                         prop="createTime"
 | 
											
												
													
														|  |                           label="交作业时间">
 |  |                           label="交作业时间">
 | 
											
												
													
														|  |          </el-table-column>
 |  |          </el-table-column>
 | 
											
												
													
														|  |          <el-table-column align='center'
 |  |          <el-table-column align='center'
 | 
											
												
													
														|  | -                         prop="status"
 |  | 
 | 
											
												
													
														|  | -                         label="老师回复时间">
 |  | 
 | 
											
												
													
														|  | 
 |  | +                         prop="isView"
 | 
											
												
													
														|  | 
 |  | +                         label="是否查看">
 | 
											
												
													
														|  | 
 |  | +          <template slot-scope="scope">
 | 
											
												
													
														|  | 
 |  | +            <div>
 | 
											
												
													
														|  | 
 |  | +              {{ scope.row.isView ? '是' : '否' }}
 | 
											
												
													
														|  | 
 |  | +            </div>
 | 
											
												
													
														|  | 
 |  | +          </template>
 | 
											
												
													
														|  | 
 |  | +        </el-table-column>
 | 
											
												
													
														|  | 
 |  | +        <el-table-column align='center'
 | 
											
												
													
														|  | 
 |  | +                         prop="isReplied"
 | 
											
												
													
														|  | 
 |  | +                         label="是否回复">
 | 
											
												
													
														|  | 
 |  | +          <template slot-scope="scope">
 | 
											
												
													
														|  | 
 |  | +            <div>
 | 
											
												
													
														|  | 
 |  | +              {{ scope.row.isReplied ? '是' : '否' }}
 | 
											
												
													
														|  | 
 |  | +            </div>
 | 
											
												
													
														|  | 
 |  | +          </template>
 | 
											
												
													
														|  |          </el-table-column>
 |  |          </el-table-column>
 | 
											
												
													
														|  |          <el-table-column align='center'
 |  |          <el-table-column align='center'
 | 
											
												
													
														|  | -                         prop="status"
 |  | 
 | 
											
												
													
														|  |                           label="查看">
 |  |                           label="查看">
 | 
											
												
													
														|  | 
 |  | +          <template slot-scope="scope">
 | 
											
												
													
														|  | 
 |  | +            <div>
 | 
											
												
													
														|  | 
 |  | +              <!--  -->
 | 
											
												
													
														|  | 
 |  | +              <el-button type="text"
 | 
											
												
													
														|  | 
 |  | +                         v-if="scope.row.url"
 | 
											
												
													
														|  | 
 |  | +                         @click="lookWork(scope.row.url)">查看</el-button>
 | 
											
												
													
														|  | 
 |  | +            </div>
 | 
											
												
													
														|  | 
 |  | +          </template>
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  |          </el-table-column>
 |  |          </el-table-column>
 | 
											
												
													
														|  |        </el-table>
 |  |        </el-table>
 | 
											
												
													
														|  |        <pagination :total="rules.total"
 |  |        <pagination :total="rules.total"
 | 
											
										
											
												
													
														|  | @@ -43,6 +65,19 @@
 | 
											
												
													
														|  |                    :limit.sync="rules.limit"
 |  |                    :limit.sync="rules.limit"
 | 
											
												
													
														|  |                    @pagination="getList" />
 |  |                    @pagination="getList" />
 | 
											
												
													
														|  |      </div>
 |  |      </div>
 | 
											
												
													
														|  | 
 |  | +    <el-dialog title="查看作业"
 | 
											
												
													
														|  | 
 |  | +               @close="closeWorkVisible"
 | 
											
												
													
														|  | 
 |  | +               width="680px"
 | 
											
												
													
														|  | 
 |  | +               append-to-body
 | 
											
												
													
														|  | 
 |  | +               :visible.sync="workVisible">
 | 
											
												
													
														|  | 
 |  | +      <!-- activeUrl -->
 | 
											
												
													
														|  | 
 |  | +      <video style="width:640px;"
 | 
											
												
													
														|  | 
 |  | +             :src='activeUrl'
 | 
											
												
													
														|  | 
 |  | +             ref="dialogVideo"
 | 
											
												
													
														|  | 
 |  | +             controls="controls">
 | 
											
												
													
														|  | 
 |  | +        您的浏览器不支持视频播放
 | 
											
												
													
														|  | 
 |  | +      </video>
 | 
											
												
													
														|  | 
 |  | +    </el-dialog>
 | 
											
												
													
														|  |    </div>
 |  |    </div>
 | 
											
												
													
														|  |  </template>
 |  |  </template>
 | 
											
												
													
														|  |  <script>
 |  |  <script>
 | 
											
										
											
												
													
														|  | @@ -60,9 +95,11 @@ export default {
 | 
											
												
													
														|  |          page: 1, // 当前页
 |  |          page: 1, // 当前页
 | 
											
												
													
														|  |          total: 0, // 总条数
 |  |          total: 0, // 总条数
 | 
											
												
													
														|  |        },
 |  |        },
 | 
											
												
													
														|  | 
 |  | +      workVisible: false,
 | 
											
												
													
														|  |        studentNum: null,
 |  |        studentNum: null,
 | 
											
												
													
														|  |        homeworkNum: null,
 |  |        homeworkNum: null,
 | 
											
												
													
														|  | -      repliedNum: null
 |  | 
 | 
											
												
													
														|  | 
 |  | +      repliedNum: null,
 | 
											
												
													
														|  | 
 |  | +      activeUrl: null
 | 
											
												
													
														|  |      }
 |  |      }
 | 
											
												
													
														|  |    },
 |  |    },
 | 
											
												
													
														|  |    mounted () {
 |  |    mounted () {
 | 
											
										
											
												
													
														|  | @@ -73,9 +110,6 @@ export default {
 | 
											
												
													
														|  |    },
 |  |    },
 | 
											
												
													
														|  |    methods: {
 |  |    methods: {
 | 
											
												
													
														|  |      init () {
 |  |      init () {
 | 
											
												
													
														|  | -      findStudentCourseHomeworks({ search: this.courseScheduleId }).then(res => {
 |  | 
 | 
											
												
													
														|  | -
 |  | 
 | 
											
												
													
														|  | -      })
 |  | 
 | 
											
												
													
														|  |        sumStudentAttendance({ courseScheduleId: this.courseScheduleId }).then(res => {
 |  |        sumStudentAttendance({ courseScheduleId: this.courseScheduleId }).then(res => {
 | 
											
												
													
														|  |          if (res.code == 200) {
 |  |          if (res.code == 200) {
 | 
											
												
													
														|  |            this.studentNum = res.data.studentNum;
 |  |            this.studentNum = res.data.studentNum;
 | 
											
										
											
												
													
														|  | @@ -83,9 +117,22 @@ export default {
 | 
											
												
													
														|  |            this.repliedNum = res.data.repliedNum
 |  |            this.repliedNum = res.data.repliedNum
 | 
											
												
													
														|  |          }
 |  |          }
 | 
											
												
													
														|  |        })
 |  |        })
 | 
											
												
													
														|  | 
 |  | +      this.getList()
 | 
											
												
													
														|  |      },
 |  |      },
 | 
											
												
													
														|  |      getList () {
 |  |      getList () {
 | 
											
												
													
														|  | -
 |  | 
 | 
											
												
													
														|  | 
 |  | +      findStudentCourseHomeworks({ search: this.courseScheduleId }).then(res => {
 | 
											
												
													
														|  | 
 |  | +        if (res.code == 200) {
 | 
											
												
													
														|  | 
 |  | +          this.rules.total = res.data.total
 | 
											
												
													
														|  | 
 |  | +          this.tableList = res.data.rows
 | 
											
												
													
														|  | 
 |  | +        }
 | 
											
												
													
														|  | 
 |  | +      })
 | 
											
												
													
														|  | 
 |  | +    },
 | 
											
												
													
														|  | 
 |  | +    lookWork (url) {
 | 
											
												
													
														|  | 
 |  | +      this.workVisible = true;
 | 
											
												
													
														|  | 
 |  | +      this.activeUrl = url;
 | 
											
												
													
														|  | 
 |  | +    },
 | 
											
												
													
														|  | 
 |  | +    closeWorkVisible () {
 | 
											
												
													
														|  | 
 |  | +      this.activeUrl = '';
 | 
											
												
													
														|  |      }
 |  |      }
 | 
											
												
													
														|  |    }
 |  |    }
 | 
											
												
													
														|  |  }
 |  |  }
 |