|
@@ -93,32 +93,32 @@ export default {
|
|
|
this.radioSelectList = item
|
|
|
},
|
|
|
async getCourseMonth(month) {
|
|
|
+ await getCourseScheduleDateByMonth({ month: month, type: 'VIP' }).then(res => {
|
|
|
+ let result = res.data
|
|
|
+ if(result.code == 200) {
|
|
|
+ this.getMonthDay = []
|
|
|
+ result.data.forEach(item => {
|
|
|
+ this.getMonthDay.push(dayjs(item).format('DD'))
|
|
|
+ })
|
|
|
+ this.isCalendar = true
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ async getCourseDate(date) {
|
|
|
setLoading(true)
|
|
|
try {
|
|
|
- await getCourseScheduleDateByMonth({ month: month, type: 'VIP' }).then(res => {
|
|
|
+ await getCourseSchedulesWithDate({ date: date, type: 'VIP' }).then(res => {
|
|
|
let result = res.data
|
|
|
- setLoading(false)
|
|
|
- if(result.code == 200) {
|
|
|
- this.getMonthDay = []
|
|
|
- result.data.forEach(item => {
|
|
|
- this.getMonthDay.push(dayjs(item).format('DD'))
|
|
|
- })
|
|
|
- this.isCalendar = true
|
|
|
+ if(result.code == 200 && result.data) {
|
|
|
+ this.dataList = result.data.rows
|
|
|
+ this.dataShow = result.data.rows.length > 0 ? true : false
|
|
|
}
|
|
|
+ setLoading(false)
|
|
|
})
|
|
|
} catch(err) {
|
|
|
setLoading(false)
|
|
|
}
|
|
|
},
|
|
|
- async getCourseDate(date) {
|
|
|
- await getCourseSchedulesWithDate({ date: date, type: 'VIP' }).then(res => {
|
|
|
- let result = res.data
|
|
|
- if(result.code == 200 && result.data) {
|
|
|
- this.dataList = result.data.rows
|
|
|
- this.dataShow = result.data.rows.length > 0 ? true : false
|
|
|
- }
|
|
|
- })
|
|
|
- },
|
|
|
onSubmit() {
|
|
|
if(!this.radioSelect) {
|
|
|
this.$toast('请选择需要交换的课程')
|