|
@@ -47,12 +47,12 @@
|
|
|
</el-form-item>
|
|
|
<el-form-item>
|
|
|
<el-select
|
|
|
- collapse-tags
|
|
|
- :disabled="!searchForm.organId"
|
|
|
+ :disabled="!searchForm.organId || teamList.length <= 0"
|
|
|
v-model.trim="searchForm.musicGroupId"
|
|
|
clearable
|
|
|
filterable
|
|
|
placeholder="请选择乐团"
|
|
|
+ @change="changeMusicGroup"
|
|
|
>
|
|
|
<el-option
|
|
|
v-for="(item, index) in teamList"
|
|
@@ -116,7 +116,7 @@
|
|
|
:data="tableList"
|
|
|
>
|
|
|
<el-table-column align="center" prop="organName" label="分部"></el-table-column>
|
|
|
- <el-table-column
|
|
|
+ <!-- <el-table-column
|
|
|
align="center"
|
|
|
prop="musicGroupName"
|
|
|
label="乐团"
|
|
@@ -125,10 +125,10 @@
|
|
|
align="center"
|
|
|
prop="courseScheduleName"
|
|
|
label="班级"
|
|
|
- ></el-table-column>
|
|
|
+ ></el-table-column> -->
|
|
|
<el-table-column
|
|
|
align="center"
|
|
|
- prop="actualTeacherName"
|
|
|
+ prop="teacherName"
|
|
|
label="布置老师"
|
|
|
></el-table-column>
|
|
|
<el-table-column align="center" label="布置时间">
|
|
@@ -141,7 +141,7 @@
|
|
|
<el-table-column align="center" label="截止时间">
|
|
|
<template slot-scope="scope">
|
|
|
<div>
|
|
|
- {{ scope.row.createTime ? scope.row.createTime.substr(0, 16) : "" }}
|
|
|
+ {{ scope.row.expireDate ? scope.row.expireDate.substr(0, 16) : "" }}
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -192,7 +192,7 @@
|
|
|
width="1000px"
|
|
|
v-if="classVisible"
|
|
|
>
|
|
|
- <examinationDetail :courseScheduleId="activeRow.id" />
|
|
|
+ <examinationDetail :courseScheduleId="activeRow.id" :type="activeRow.type" />
|
|
|
</el-dialog>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -206,7 +206,7 @@ import studentWork from "@/views/teamDetail/componentCourse/studentWork";
|
|
|
import { getLessonExamination } from "./api.js";
|
|
|
import { getTimes } from "@/utils";
|
|
|
import examinationDetail from "./components/examinationDetail.vue";
|
|
|
-import { getTeamList } from "@/api/teamServer";
|
|
|
+import { getTeamListNoLoading } from "@/api/teamServer";
|
|
|
export default {
|
|
|
components: { pagination, studentWork, examinationDetail },
|
|
|
data() {
|
|
@@ -252,6 +252,9 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
init() {
|
|
|
+ if (this.searchForm.organId) {
|
|
|
+ this.onBranchChange(this.searchForm.organId);
|
|
|
+ }
|
|
|
this.getList();
|
|
|
},
|
|
|
getList() {
|
|
@@ -294,6 +297,7 @@ export default {
|
|
|
groupType: "MUSIC",
|
|
|
courseTimer: [],
|
|
|
cloudHomeworkFlag: "",
|
|
|
+ musicGroupId: "",
|
|
|
};
|
|
|
// this.courseTimer = [];
|
|
|
this.search();
|
|
@@ -302,15 +306,19 @@ export default {
|
|
|
this.activeRow = row;
|
|
|
this.classVisible = true;
|
|
|
},
|
|
|
+ changeMusicGroup() {
|
|
|
+ this.$forceUpdate();
|
|
|
+ },
|
|
|
async onBranchChange(val) {
|
|
|
this.searchForm.musicGroupId = "";
|
|
|
|
|
|
if (val) {
|
|
|
let organId = val;
|
|
|
try {
|
|
|
- await getTeamList({ organId, page: 1, rows: 9999 }).then((res) => {
|
|
|
+ await getTeamListNoLoading({ organId, page: 1, rows: 9999 }).then((res) => {
|
|
|
if (res.code == 200) {
|
|
|
- this.teamList = res.data.rows;
|
|
|
+ this.$set(this, "teamList", res.data.rows);
|
|
|
+ // this.teamList = res.data.rows;
|
|
|
}
|
|
|
});
|
|
|
} catch (e) {
|