|
@@ -114,17 +114,17 @@ export default {
|
|
this.$message.error('请选择一节主课')
|
|
this.$message.error('请选择一节主课')
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- let arr = []
|
|
|
|
|
|
+ // let arr = []
|
|
let idList = []
|
|
let idList = []
|
|
this.dataList.forEach(com => {
|
|
this.dataList.forEach(com => {
|
|
- arr.push(com.type)
|
|
|
|
|
|
+ // arr.push(com.type)
|
|
idList.push(com.id)
|
|
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) {
|
|
if (this.dataList.length <= 1) {
|
|
this.$message.error('请至少选择2节课程')
|
|
this.$message.error('请至少选择2节课程')
|
|
return
|
|
return
|