Commit ad5b35aa authored by youjie's avatar youjie

no message

parent f65b4f51
...@@ -120,15 +120,23 @@ ...@@ -120,15 +120,23 @@
TrialList: [] //试听课程下拉数据 TrialList: [] //试听课程下拉数据
} }
}, },
mounted() { watch: {
let nowDay = new Date(); saveObj:{
var year = nowDay.getFullYear(); //年 handler(n){
var month = nowDay.getMonth() + 1; //月 this.initObj()
var day = nowDay.getDate(); //日 },
if (month < 10) { deep: true
month = '0' + month
} }
this.objOption.ClassDate = year + '-' + month + '-' + day; },
mounted() {
// let nowDay = new Date();
// var year = nowDay.getFullYear(); //年
// var month = nowDay.getMonth() + 1; //月
// var day = nowDay.getDate(); //日
// if (month < 10) {
// month = '0' + month
// }
// this.objOption.ClassDate = year + '-' + month + '-' + day;
this.GetTeacherList(); this.GetTeacherList();
this.getClassRoomList(); this.getClassRoomList();
this.GetTrialDrop(); this.GetTrialDrop();
...@@ -144,11 +152,13 @@ ...@@ -144,11 +152,13 @@
}, },
//初始化表单 //初始化表单
initObj() { initObj() {
this.objOption.ClassDate = this.saveObj.ReservationDate
if (this.saveObj && this.saveObj.ReserveClassId > 0) { if (this.saveObj && this.saveObj.ReserveClassId > 0) {
GetReserveClass({ GetReserveClass({
ReserveClassId: this.saveObj.ReserveClassId ReserveClassId: this.saveObj.ReserveClassId
}).then(res => { }).then(res => {
if (res.Code == 1) { if (res.Code == 1) {
this.objOption.ReserveClassId = res.Data.ReserveClassId; this.objOption.ReserveClassId = res.Data.ReserveClassId;
this.objOption.TeacherId = res.Data.TeacherId; this.objOption.TeacherId = res.Data.TeacherId;
this.objOption.ClassDate = res.Data.ClassDateStr; this.objOption.ClassDate = res.Data.ClassDateStr;
......
...@@ -73,7 +73,7 @@ ...@@ -73,7 +73,7 @@
</q-card> </q-card>
</template> </template>
<reserveForm v-if="isShowReserve" :save-obj="reserveObj" @close="closeReserveForm" @success="refreshPage"> <reserveForm v-if="isShowReserve" :saveObj="reserveObj" @close="closeReserveForm" @success="refreshPage">
</reserveForm> </reserveForm>
</div> </div>
</template> </template>
...@@ -207,11 +207,7 @@ return timeStr; ...@@ -207,11 +207,7 @@ return timeStr;
}, },
//编辑试听 //编辑试听
editVisitor(obj) { editVisitor(obj) {
if (obj) {
this.reserveObj = obj this.reserveObj = obj
} else {
this.reserveObj = null
}
this.isShowReserve = true; this.isShowReserve = true;
}, },
//关闭弹窗 //关闭弹窗
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment