소스 검색

02/23 16:40

111
261568008@qq.com 5 년 전
부모
커밋
4a2af31345

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
dist/index.html


+ 0 - 0
dist/static/css/chunk-1f2a8a21.1851aef0.css → dist/static/css/chunk-70fa4dab.1851aef0.css


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
dist/static/js/app.3a2169ed.js


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
dist/static/js/chunk-1f2a8a21.43919bdc.js


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
dist/static/js/chunk-70fa4dab.a925bdb1.js


+ 29 - 16
src/views/teamDetail/components/courseList.vue

@@ -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(() => {});
     }

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.