Commit 137af0d9 authored by zhengke's avatar zhengke

修改

parent bfd561e0
...@@ -207,8 +207,9 @@ ...@@ -207,8 +207,9 @@
<div class="Cal_Content"> <div class="Cal_Content">
<div class="Cal_Inner" v-for="(item,index) in dataNum" :class="{'checkedPlan':ckedIndex==item}" @click="getItem(item)"> <div class="Cal_Inner" v-for="(item,index) in dataNum" :class="{'checkedPlan':ckedIndex==item}" @click="getItem(item)">
{{item}} {{item}}
<div v-if="getLessonStatus(item)==1" class="beikeStatus">部分</div> <div class="beikeStatus">
<div v-if="getLessonStatus(item)==2" class="beikeStatus">已备课</div> <span>{{getLessonStatus(item)}}</span>
</div>
</div> </div>
</div> </div>
<div class="Cal_Qiehuan" @click="getNextMonth()"> <div class="Cal_Qiehuan" @click="getNextMonth()">
...@@ -239,7 +240,6 @@ ...@@ -239,7 +240,6 @@
{{item.GuestStr}} {{item.GuestStr}}
</div> </div>
<div style="margin:20px 0 30px 0;"> <div style="margin:20px 0 30px 0;">
<span class="saveModule">存为模板</span>
<span class="beikeBtn" v-if="item.LessonPlanNum>0" style="background:#3FC4FF;">已备课</span> <span class="beikeBtn" v-if="item.LessonPlanNum>0" style="background:#3FC4FF;">已备课</span>
<span class="beikeBtn" v-else @click="goBeike(item)">备课</span> <span class="beikeBtn" v-else @click="goBeike(item)">备课</span>
</div> </div>
...@@ -268,8 +268,8 @@ ...@@ -268,8 +268,8 @@
tDay:0, //日 tDay:0, //日
ckedIndex:0,// 选中 ckedIndex:0,// 选中
msg: { msg: {
School_Id: 1, //学校 School_Id: 0, //学校
Teacher_Id: 2, //老师id Teacher_Id: 5, //老师id
StartTime: '', StartTime: '',
EndTime: '' EndTime: ''
}, },
...@@ -364,11 +364,22 @@ ...@@ -364,11 +364,22 @@
if(num<10){ if(num<10){
num='0'+num num='0'+num
} }
var Str = '';
this.dataList.forEach(x=>{ this.dataList.forEach(x=>{
if(x.DateDay==num){ if(parseInt(x.DateDay)==parseInt(num)){
return x.IsLessonStatus; console.log(x.IsLessonStatus);
if(x.IsLessonStatus==0){
Str='未备课'
}
if(x.IsLessonStatus==1){
Str='部分'
}
if(x.IsLessonStatus==2){
Str='已备课'
}
} }
}) })
return Str;
}, },
//跳转至备课 //跳转至备课
goBeike(item){ goBeike(item){
......
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