Browse Source

12/30 合课除去课程类型限制

mo 4 năm trước cách đây
mục cha
commit
da62436baf
2 tập tin đã thay đổi với 8 bổ sung7 xóa
  1. 1 0
      debug.log
  2. 7 7
      src/views/teamDetail/componentCourse/addCompound.vue

+ 1 - 0
debug.log

@@ -8,3 +8,4 @@
 [1223/094343.219:ERROR:directory_reader_win.cc(43)] FindFirstFile: 系统找不到指定的路径。 (0x3)
 [1224/093236.399:ERROR:directory_reader_win.cc(43)] FindFirstFile: 系统找不到指定的路径。 (0x3)
 [1225/094724.194:ERROR:directory_reader_win.cc(43)] FindFirstFile: 系统找不到指定的路径。 (0x3)
+[1230/094024.562:ERROR:directory_reader_win.cc(43)] FindFirstFile: 系统找不到指定的路径。 (0x3)

+ 7 - 7
src/views/teamDetail/componentCourse/addCompound.vue

@@ -114,17 +114,17 @@ export default {
         this.$message.error('请选择一节主课')
         return
       }
-      let arr = []
+      // let arr = []
       let idList = []
       this.dataList.forEach(com => {
-        arr.push(com.type)
+        // arr.push(com.type)
             idList.push(com.id)
       })
-      arr = [... new Set(arr)]
-      if (arr.length != 1) {
-        this.$message.error('请选择相同的课程类型')
-        return
-      }
+      // arr = [... new Set(arr)]
+      // if (arr.length != 1) {
+      //   this.$message.error('请选择相同的课程类型')
+      //   return
+      // }
       if (this.dataList.length <= 1) {
         this.$message.error('请至少选择2节课程')
         return