|
@@ -356,7 +356,9 @@ export default {
|
|
|
courseStartOnline: "",
|
|
|
courseStartOffline: "",
|
|
|
courseEnd: "",
|
|
|
- section: ""
|
|
|
+ section: "",
|
|
|
+ courseStart:'',
|
|
|
+ courseEnd:''
|
|
|
},
|
|
|
classTimeList: [],
|
|
|
centerForm: {
|
|
@@ -409,16 +411,7 @@ export default {
|
|
|
scetionList: [],
|
|
|
isGiveClass: false,
|
|
|
activeStartTime: null,
|
|
|
- courseOption: {
|
|
|
- disabledDate: time => {
|
|
|
- let startTime = this.leftForm.courseStart;
|
|
|
- if (startTime) {
|
|
|
- let date = new Date(startTime.replace(/-/, "/"));
|
|
|
- return time.getTime() < date.getTime();
|
|
|
- }
|
|
|
- return;
|
|
|
- }
|
|
|
- },
|
|
|
+ courseOption: null,
|
|
|
pickerOptions: null,
|
|
|
pickerOptions1: null,
|
|
|
leftFormRules: {
|
|
@@ -553,8 +546,19 @@ export default {
|
|
|
});
|
|
|
this.pickerOptions = this.beginDate();
|
|
|
this.pickerOptions1 = this.processDate();
|
|
|
-
|
|
|
-
|
|
|
+ this.courseOption = this.coursesDate();
|
|
|
+ },
|
|
|
+ coursesDate(){
|
|
|
+ let self = this;
|
|
|
+ return {
|
|
|
+ disabledDate: time => {
|
|
|
+ if (self.leftForm.courseStart) {
|
|
|
+ let date = new Date(self.leftForm.courseStart.replace(/-/, "/"));
|
|
|
+ return time.getTime() < date.getTime();
|
|
|
+ }
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ }
|
|
|
},
|
|
|
beginDate() {
|
|
|
let self = this;
|
|
@@ -1165,7 +1169,7 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
setCourse() {
|
|
|
- //
|
|
|
+
|
|
|
if (
|
|
|
this.hotType == "GIVE_CLASS" &&
|
|
|
this.isGiveClass &&
|