|
@@ -10,12 +10,7 @@
|
|
<el-form-item>
|
|
<el-form-item>
|
|
<el-input v-model.trim="searchForm.search"
|
|
<el-input v-model.trim="searchForm.search"
|
|
@keyup.enter.native="search"
|
|
@keyup.enter.native="search"
|
|
- placeholder='请输入课程编号、名称'></el-input>
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item>
|
|
|
|
- <el-input v-model.trim="searchForm.search"
|
|
|
|
- @keyup.enter.native="search"
|
|
|
|
- placeholder='请输入乐团名称'></el-input>
|
|
|
|
|
|
+ placeholder='请输入课程编号、名称、乐团名称'></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item prop="organId">
|
|
<el-form-item prop="organId">
|
|
<el-select class="multiple"
|
|
<el-select class="multiple"
|
|
@@ -30,7 +25,19 @@
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item>
|
|
<el-form-item>
|
|
- <el-date-picker v-model.trim="searchForm.courseTimer"
|
|
|
|
|
|
+ <el-select v-model.trim="searchForm.groupType"
|
|
|
|
+ class="organSelect"
|
|
|
|
+ style=" margin-left: 15px; width:100%"
|
|
|
|
+ filterable
|
|
|
|
+ placeholder="请选择课程类型">
|
|
|
|
+ <el-option v-for="(item,index) in courseListType"
|
|
|
|
+ :key="index"
|
|
|
|
+ :label="item.label"
|
|
|
|
+ :value="item.value"></el-option>
|
|
|
|
+ </el-select>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item>
|
|
|
|
+ <el-date-picker v-model.trim="courseTimer"
|
|
style="width:420px;"
|
|
style="width:420px;"
|
|
type="daterange"
|
|
type="daterange"
|
|
value-format="yyyy-MM-dd"
|
|
value-format="yyyy-MM-dd"
|
|
@@ -53,31 +60,36 @@
|
|
:header-cell-style="{background:'#EDEEF0',color:'#444'}"
|
|
:header-cell-style="{background:'#EDEEF0',color:'#444'}"
|
|
:data="tableList">
|
|
:data="tableList">
|
|
<el-table-column align="center"
|
|
<el-table-column align="center"
|
|
- prop="studentId"
|
|
|
|
|
|
+ prop="courseScheduleId"
|
|
label="课程编号"></el-table-column>
|
|
label="课程编号"></el-table-column>
|
|
<el-table-column align="center"
|
|
<el-table-column align="center"
|
|
- prop="studentId"
|
|
|
|
|
|
+ prop="courseScheduleName"
|
|
label="课程名称"></el-table-column>
|
|
label="课程名称"></el-table-column>
|
|
<el-table-column align="center"
|
|
<el-table-column align="center"
|
|
- prop="studentId"
|
|
|
|
|
|
+ prop="organName"
|
|
label="分部"></el-table-column>
|
|
label="分部"></el-table-column>
|
|
<el-table-column align="center"
|
|
<el-table-column align="center"
|
|
- prop="studentId"
|
|
|
|
|
|
+ prop="groupName"
|
|
label="乐团名称"></el-table-column>
|
|
label="乐团名称"></el-table-column>
|
|
<el-table-column align="center"
|
|
<el-table-column align="center"
|
|
- prop="studentId"
|
|
|
|
- label="布置时间"></el-table-column>
|
|
|
|
|
|
+ label="布置时间">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <div>
|
|
|
|
+ {{ scope.row.createTime ? scope.row.createTime.substr(0, 16): '' }}
|
|
|
|
+ </div>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
<el-table-column align="center"
|
|
<el-table-column align="center"
|
|
- prop="studentId"
|
|
|
|
|
|
+ prop="actualTeacherName"
|
|
label="布置老师"></el-table-column>
|
|
label="布置老师"></el-table-column>
|
|
<el-table-column align="center"
|
|
<el-table-column align="center"
|
|
- prop="studentId"
|
|
|
|
|
|
+ prop="expectNum"
|
|
label="应交人数"></el-table-column>
|
|
label="应交人数"></el-table-column>
|
|
<el-table-column align="center"
|
|
<el-table-column align="center"
|
|
- prop="studentId"
|
|
|
|
|
|
+ prop="completedNum"
|
|
label="已交人数"></el-table-column>
|
|
label="已交人数"></el-table-column>
|
|
<el-table-column align="center"
|
|
<el-table-column align="center"
|
|
- prop="studentId"
|
|
|
|
|
|
+ prop="repliedNum"
|
|
label="已回复数"></el-table-column>
|
|
label="已回复数"></el-table-column>
|
|
<el-table-column align="center"
|
|
<el-table-column align="center"
|
|
prop="studentId"
|
|
prop="studentId"
|
|
@@ -85,6 +97,7 @@
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<div>
|
|
<div>
|
|
<el-button type="text"
|
|
<el-button type="text"
|
|
|
|
+ v-permission="'studentManage/findStudentCourseHomeworks'"
|
|
@click="lookDetail(scope.row)">查看</el-button>
|
|
@click="lookDetail(scope.row)">查看</el-button>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
@@ -98,7 +111,8 @@
|
|
<el-dialog title="作业详情"
|
|
<el-dialog title="作业详情"
|
|
:visible.sync="classVisible"
|
|
:visible.sync="classVisible"
|
|
width="1000px">
|
|
width="1000px">
|
|
- <studentWork :courseScheduleId="activeRow.id"></studentWork>
|
|
|
|
|
|
+ <studentWork v-if="activeRow"
|
|
|
|
+ :courseScheduleId="activeRow.courseScheduleId"></studentWork>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -110,17 +124,21 @@ import axios from "axios";
|
|
import { getToken } from "@/utils/auth";
|
|
import { getToken } from "@/utils/auth";
|
|
import pagination from "@/components/Pagination/index";
|
|
import pagination from "@/components/Pagination/index";
|
|
import load from "@/utils/loading";
|
|
import load from "@/utils/loading";
|
|
-import { getTeacher, getEmployeeOrgan } from "@/api/buildTeam";
|
|
|
|
|
|
+import { courseListType } from '@/utils/searchArray'
|
|
|
|
+import { getEmployeeOrgan } from "@/api/buildTeam";
|
|
import studentWork from "@/views/teamDetail/componentCourse/studentWork";
|
|
import studentWork from "@/views/teamDetail/componentCourse/studentWork";
|
|
|
|
+import { getHomePageList } from "./api.js"
|
|
export default {
|
|
export default {
|
|
components: { pagination, studentWork },
|
|
components: { pagination, studentWork },
|
|
data () {
|
|
data () {
|
|
return {
|
|
return {
|
|
|
|
+ courseListType,
|
|
searchForm: {
|
|
searchForm: {
|
|
search: null,
|
|
search: null,
|
|
organId: null,
|
|
organId: null,
|
|
- courseTimer: null
|
|
|
|
|
|
+ groupType: 'MUSIC'
|
|
},
|
|
},
|
|
|
|
+ courseTimer: [],
|
|
teacherList: [],
|
|
teacherList: [],
|
|
tableList: [],
|
|
tableList: [],
|
|
organList: [],
|
|
organList: [],
|
|
@@ -139,11 +157,6 @@ export default {
|
|
created () { },
|
|
created () { },
|
|
//生命周期 - 挂载完成(可以访问DOM元素)
|
|
//生命周期 - 挂载完成(可以访问DOM元素)
|
|
mounted () {
|
|
mounted () {
|
|
- getTeacher().then(res => {
|
|
|
|
- if (res.code == 200) {
|
|
|
|
- this.teacherList = res.data;
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
getEmployeeOrgan().then(res => {
|
|
getEmployeeOrgan().then(res => {
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
this.organList = res.data;
|
|
this.organList = res.data;
|
|
@@ -155,22 +168,50 @@ export default {
|
|
|
|
|
|
|
|
|
|
},
|
|
},
|
|
- // activated () {
|
|
|
|
- // this.init();
|
|
|
|
- // },
|
|
|
|
|
|
+ activated () {
|
|
|
|
+ this.init();
|
|
|
|
+ },
|
|
methods: {
|
|
methods: {
|
|
init () {
|
|
init () {
|
|
|
|
+ this.getList()
|
|
|
|
+ },
|
|
|
|
+ getList () {
|
|
|
|
+ let date = this.searchForm;
|
|
|
|
+ let classStartDate, classEndDate;
|
|
|
|
+ if (this.courseTimer?.length > 0) {
|
|
|
|
+ classStartDate = this.courseTimer[0]
|
|
|
|
+ classEndDate = this.courseTimer[1]
|
|
|
|
+ } else {
|
|
|
|
+ classStartDate = null
|
|
|
|
+ classEndDate = null
|
|
|
|
+ }
|
|
|
|
+ date.classStartDate = classStartDate
|
|
|
|
+ date.classEndDate = classEndDate
|
|
|
|
+ date.page = this.rules.page
|
|
|
|
+ date.rows = this.rules.limit
|
|
|
|
+ getHomePageList(date).then(res => {
|
|
|
|
+ if (res.code == 200) {
|
|
|
|
+ this.tableList = res.data.rows
|
|
|
|
+ this.rules.total = res.data.total
|
|
|
|
+ }
|
|
|
|
+ })
|
|
},
|
|
},
|
|
- getList () { },
|
|
|
|
search () {
|
|
search () {
|
|
this.rules.page = 1
|
|
this.rules.page = 1
|
|
this.getList()
|
|
this.getList()
|
|
},
|
|
},
|
|
onReSet () {
|
|
onReSet () {
|
|
|
|
+ this.searchForm = {
|
|
|
|
+ search: null,
|
|
|
|
+ organId: null,
|
|
|
|
+ groupType: 'MUSIC'
|
|
|
|
+ }
|
|
|
|
+ this.courseTimer = []
|
|
this.search()
|
|
this.search()
|
|
},
|
|
},
|
|
lookDetail (row) {
|
|
lookDetail (row) {
|
|
-
|
|
|
|
|
|
+ this.activeRow = row
|
|
|
|
+ this.classVisible = true
|
|
}
|
|
}
|
|
}
|
|
}
|
|
};
|
|
};
|