|
@@ -369,11 +369,21 @@ export default {
|
|
|
return data
|
|
|
},
|
|
|
courseListShow() {
|
|
|
+ if(!this.courseList.length){
|
|
|
+ return []
|
|
|
+ }
|
|
|
let data = this.courseList.filter(item => item.scope == this.listType)
|
|
|
if (data.length) {
|
|
|
this.courseId = data[0].id
|
|
|
}
|
|
|
- return data
|
|
|
+ if (data.length) {
|
|
|
+ return data
|
|
|
+ } else {
|
|
|
+ setTimeout(()=>{
|
|
|
+ this.listType = this.listType == 'school' ? 'private' : 'school'
|
|
|
+ },100)
|
|
|
+ return []
|
|
|
+ }
|
|
|
},
|
|
|
//课程名单 —— 去重处理后的数据
|
|
|
teaClassList() {
|
|
@@ -816,7 +826,6 @@ export default {
|
|
|
}
|
|
|
|
|
|
// 删除列表数据
|
|
|
- let index = this.curCusIndex
|
|
|
this.curCusIndex = 0
|
|
|
this.$Message.success(this.$t('cusMgt.delOk'))
|
|
|
} else {
|