Commit b3b40f21 authored by zhengke's avatar zhengke

修改

parent 022c736e
...@@ -110,6 +110,14 @@ ...@@ -110,6 +110,14 @@
} }
}, },
mounted() { 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.initObj() this.initObj()
...@@ -126,13 +134,19 @@ ...@@ -126,13 +134,19 @@
this.objOption.TeacherId = res.Data.TeacherId; this.objOption.TeacherId = res.Data.TeacherId;
this.objOption.ClassDate = res.Data.ClassDateStr; this.objOption.ClassDate = res.Data.ClassDateStr;
this.objOption.ClassTime = res.Data.ClassTime; this.objOption.ClassTime = res.Data.ClassTime;
this.objOption.EndTime = res.Data.EndTime;
this.objOption.ClassRoomId = res.Data.ClassRoomId; this.objOption.ClassRoomId = res.Data.ClassRoomId;
this.objOption.ClassContent = res.Data.ClassContent; this.objOption.ClassContent = res.Data.ClassContent;
} else { } else {
this.objOption.TeacherId = 0; let nowDay = new Date();
this.objOption.ClassDate = ''; var year = nowDay.getFullYear(); //年
var month = nowDay.getMonth() + 1; //月
var day = nowDay.getDate(); //日
this.objOption.ClassDate = year + '-' + month + '-' + day;
this.objOption.TeacherId = '';
this.objOption.ClassTime = ''; this.objOption.ClassTime = '';
this.objOption.ClassRoomId = 0; this.objOption.EndTime = '';
this.objOption.ClassRoomId = '';
this.objOption.ClassContent = ''; this.objOption.ClassContent = '';
} }
}) })
......
...@@ -246,6 +246,11 @@ ...@@ -246,6 +246,11 @@
this.getClassRoomList(); this.getClassRoomList();
}, },
mounted() { mounted() {
let nowDay = new Date();
var year = nowDay.getFullYear(); //年
var month = nowDay.getMonth() + 1; //月
var day = nowDay.getDate(); //日
this.msg.StartClassDate = year + '-' + month + '-' + day;
this.getList() this.getList()
}, },
methods: { methods: {
......
...@@ -145,6 +145,12 @@ ...@@ -145,6 +145,12 @@
} }
}, },
mounted() { mounted() {
let nowDay = new Date();
var year = nowDay.getFullYear(); //年
var month = nowDay.getMonth() + 1; //月
var day = nowDay.getDate(); //日
this.msg.StartClassDate = year + '-' + month + '-' + day;
this.GetTeacherList(); this.GetTeacherList();
this.getClassRoomList(); this.getClassRoomList();
this.getList() this.getList()
......
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