From 525e0e57370a9647e5a52689a3a9fbc26c06075a Mon Sep 17 00:00:00 2001 From: "liujw155@outlook.com" Date: Fri, 2 Apr 2021 18:00:59 +0800 Subject: [PATCH] fix all --- src/pages/course/offer_info/offer_info.vue | 2 +- src/pages/shift/application/application.vue | 35 ++++++++--------------------- src/pages/shift/record/record.vue | 2 +- 3 files changed, 11 insertions(+), 28 deletions(-) diff --git a/src/pages/course/offer_info/offer_info.vue b/src/pages/course/offer_info/offer_info.vue index f20c390..1455d58 100644 --- a/src/pages/course/offer_info/offer_info.vue +++ b/src/pages/course/offer_info/offer_info.vue @@ -10,7 +10,7 @@ 课程名称:{{offerInfo.course.name || '-'}} 上课用户:{{offerInfo.name || '-'}} - 课程次数:{{offerInfo.number || '0'}} + 课程次数:{{offerInfo.offer_number || '0'}} 课程报价:{{offerInfo.offer_price || '0'}} diff --git a/src/pages/shift/application/application.vue b/src/pages/shift/application/application.vue index 7f58b07..595930a 100644 --- a/src/pages/shift/application/application.vue +++ b/src/pages/shift/application/application.vue @@ -81,9 +81,6 @@ export default { coachInfo: { name: '' }, - dateInfo: { - _time: '' - } } } }, @@ -92,7 +89,7 @@ export default { }, methods: { submitBtn: util.debounce(function(){ - let { courseInfo, classInfo, coachInfo, dateInfo } = this.selectInfo; + let { courseInfo, classInfo, coachInfo } = this.selectInfo; let { selectTimeIDS } = this; if(!courseInfo.id || !classInfo.id || !coachInfo.id || selectTimeIDS.length<=0 )return util.showNone('请选择完整!'); util.showLoad(); @@ -141,28 +138,16 @@ export default { this.selectTimeIDS = [...this.tempSelectTimeID]; this.isShowTimeModal = false; }, - // 日期切换 - timeChange(e){ - console.warn(e) - let { timeList, selectInfo } = this; - if(!selectInfo.coachInfo.id)return util.showNone('请选择教练!'); - let _timeInfo = timeList[e.detail.value] || {}; - this.selectInfo = { - ...selectInfo, - dateInfo: _timeInfo - }; - }, // 教练切换 coachChange(e){ let { coachList, selectInfo } = this; if(!selectInfo.classInfo.id)return util.showNone('请选择班级!'); let _coachInfo = coachList[e.detail.value] || {}; + this.timeList = []; + this.selectTimeIDS = []; this.selectInfo = { ...selectInfo, - coachInfo: _coachInfo, - dateInfo: { - _time: '' - } + coachInfo: _coachInfo }; this.getShiftWorkClassTimes(selectInfo.courseInfo.id); @@ -172,14 +157,13 @@ export default { let { classList, selectInfo } = this; if(!selectInfo.courseInfo.id)return util.showNone('请选择课程!'); let _classInfo = classList[e.detail.value] || {}; + this.timeList = []; + this.selectTimeIDS = []; this.selectInfo = { ...selectInfo, classInfo: _classInfo, coachInfo: { name: '' - }, - dateInfo: { - _time: '' } }; this.getCoachList(); @@ -188,6 +172,8 @@ export default { courseChange(e){ let { courseList } = this; let _courseInfo = courseList[e.detail.value] || {}; + this.timeList = []; + this.selectTimeIDS = []; this.selectInfo = { courseInfo: _courseInfo, classInfo: { @@ -195,9 +181,6 @@ export default { }, coachInfo: { name: '' - }, - dateInfo: { - _time: '' } }; this.getClassList( _courseInfo.id ); @@ -219,7 +202,7 @@ export default { this.timeList = _list.map(e=>{ return { ...e, - _time: `${e.date} ${e.start_duration}` + _time: `${e.date} ${e.start_duration}~${e.end_duration}` } }); }) diff --git a/src/pages/shift/record/record.vue b/src/pages/shift/record/record.vue index 15cd61d..5d68a9d 100644 --- a/src/pages/shift/record/record.vue +++ b/src/pages/shift/record/record.vue @@ -33,7 +33,7 @@ 换班时间: - {{k.date || '-'}} {{k.start_duration || '-'}} + {{k.date || '-'}} {{k.start_duration || '-'}}~{{k.end_duration || '-'}}