|
@@ -127,7 +127,7 @@
|
|
|
@click="resetClass(scope.row)"
|
|
|
>调整</el-button>-->
|
|
|
<el-button
|
|
|
- v-if="scope.row.courseScheduleStatus == 'NOT_START' && permission('courseSchedule/classStartDateAdjust')"
|
|
|
+ v-if="!scope.row.settlementTime && permission('courseSchedule/classStartDateAdjust')"
|
|
|
type="text"
|
|
|
@click="resetClass(scope.row)"
|
|
|
>调整</el-button>
|
|
@@ -137,7 +137,11 @@
|
|
|
@click="removeSingleClass(scope.row)"
|
|
|
>删除</el-button>
|
|
|
<!-- v-if="scope.row.courseScheduleStatus == 'NOT_START' && permission('courseSchedule/bathDelete')" teamDetail/resetTpye-->
|
|
|
- <el-button type="text" @click="resetType(scope.row)" v-if="permission('teamDetail/resetTpye')" >类型调整</el-button>
|
|
|
+ <el-button
|
|
|
+ type="text"
|
|
|
+ @click="resetType(scope.row)"
|
|
|
+ v-if="permission('teamDetail/resetTpye')"
|
|
|
+ >类型调整</el-button>
|
|
|
<el-button
|
|
|
type="text"
|
|
|
v-if="permission('courseSchedule/cleanAttendance')"
|
|
@@ -357,13 +361,21 @@ import {
|
|
|
cleanAttendance
|
|
|
} from "@/api/buildTeam";
|
|
|
import { permission } from "@/utils/directivePage";
|
|
|
-import { courseType } from "@/utils/searchArray";
|
|
|
+// import { courseType } from "@/utils/searchArray";
|
|
|
export default {
|
|
|
name: "tcourseList",
|
|
|
props: ["teamid"],
|
|
|
data() {
|
|
|
return {
|
|
|
- courseType: courseType,
|
|
|
+ courseType: [
|
|
|
+ { value: "SINGLE", label: "单技课" },
|
|
|
+ { value: "MIX", label: "合奏课" },
|
|
|
+ { value: "TRAINING_SINGLE", label: "集训单技课" },
|
|
|
+ { value: "TRAINING_MIX", label: "集训合奏课" },
|
|
|
+ { value: "HIGH", label: "基础技能课" },
|
|
|
+ { value: "COMPREHENSIVE", label: "综合课" },
|
|
|
+ { value: "CLASSROOM", label: "课堂课" }
|
|
|
+ ],
|
|
|
typeVisible: false,
|
|
|
timerVisible: false,
|
|
|
courseVisible: false,
|
|
@@ -705,7 +717,7 @@ export default {
|
|
|
resetType(row) {
|
|
|
this.typeForm.type = row.courseScheduleType;
|
|
|
this.typeForm.id = row.courseScheduleId;
|
|
|
- this.typeForm.teacher = parseInt(row.masterTeacherId);
|
|
|
+ this.typeForm.teacher = parseInt(row.masterTeacherId);
|
|
|
// this.maskForm.type = row.courseScheduleType;
|
|
|
this.typeForm.assistant = [];
|
|
|
for (let i in row.teachingTeachers) {
|
|
@@ -750,22 +762,23 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
// 清除考勤
|
|
|
- clearAttend(row){
|
|
|
- this.$confirm("是否清除考勤记录?", "提示", {
|
|
|
+ clearAttend(row) {
|
|
|
+ this.$confirm("是否清除考勤记录?", "提示", {
|
|
|
confirmButtonText: "确定",
|
|
|
cancelButtonText: "取消",
|
|
|
type: "warning"
|
|
|
})
|
|
|
.then(() => {
|
|
|
- cleanAttendance({ courseScheduleIds:row.courseScheduleId}).then(res=>{
|
|
|
- if(res.code == 200){
|
|
|
- this.$message.success('清除成功')
|
|
|
- this.getList()
|
|
|
- }else{
|
|
|
- this.$message.error(res.msg)
|
|
|
- }
|
|
|
- })
|
|
|
-
|
|
|
+ cleanAttendance({ courseScheduleIds: row.courseScheduleId }).then(
|
|
|
+ res => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.$message.success("清除成功");
|
|
|
+ this.getList();
|
|
|
+ } else {
|
|
|
+ this.$message.error(res.msg);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ );
|
|
|
})
|
|
|
.catch(() => {});
|
|
|
}
|