Commit 137af0d9 authored by zhengke's avatar zhengke

修改

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