教师个人信息增加担任班主任情况
This commit is contained in:
1 parent
4ed2f7f020
commit
1c124d399e
2 files changed
+30
-19
No files matched your search
@@ -42,18 +42,24 @@ class BanZhuRen extends BaseModel
|
||||
// 查询任职结束时间
|
||||
public function getJieShuAttr()
|
||||
{
|
||||
$str = '';
|
||||
// 根据当前记录时间查询结束时间
|
||||
$js = $this
|
||||
->where('banji_id', $this->banji_id)
|
||||
->where('bfdate', '>', $this->getData('bfdate'))
|
||||
->order(['bfdate' => 'asc'])
|
||||
->find();
|
||||
if($js)
|
||||
$str = '现在';
|
||||
|
||||
if($this->glBanji->biye === true)
|
||||
{
|
||||
$str = $js->bfdate;
|
||||
$str = $this->glBanji->ruxuenian . '-8-1';
|
||||
}else{
|
||||
// 根据当前记录时间查询结束时间
|
||||
$js = $this
|
||||
->where('banji_id', $this->banji_id)
|
||||
->where('bfdate', '>', $this->getData('bfdate'))
|
||||
->order(['bfdate' => 'asc'])
|
||||
->find();
|
||||
if($js)
|
||||
{
|
||||
$str = $js->bfdate;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return $str;
|
||||
}
|
||||
|
||||
@@ -130,7 +136,7 @@ class BanZhuRen extends BaseModel
|
||||
->order(['update_time'=>'desc'])
|
||||
->with([
|
||||
'glBanji' => function ($query) {
|
||||
$query->field('id, ruxuenian, paixu')->append(['banJiTitle, biye']);
|
||||
$query->field('id, ruxuenian, paixu')->append(['banJiTitle', 'biye']);
|
||||
}
|
||||
])
|
||||
->append(['jieShu'])
|
||||
|
||||
@@ -255,7 +255,7 @@
|
||||
}},
|
||||
]]
|
||||
});
|
||||
|
||||
|
||||
//第三个实例
|
||||
bzr = table.render(options); //获取数据并渲染
|
||||
var bzr =table.render({
|
||||
@@ -267,17 +267,22 @@
|
||||
}
|
||||
,cols: [[ //表头
|
||||
{field:'id', type:'numbers',sort:true,width:100,title:'序号'}
|
||||
,{field: 'title',sort:true, title: '开始时间', minWidth:200}
|
||||
,{field: 'title',sort:true, title: '班级名称', minWidth:200}
|
||||
,{field: 'bianhao',sort:true, title: '学科'}
|
||||
,{field: 'jddengji_id', title: '鉴定结果', sort: true, minWidth:100,templet:function(d){
|
||||
,{field: 'bfdate',sort:true, title: '任职时间', minWidth:200,templet:function(d){
|
||||
var str='';
|
||||
if(d.ktJdDengji)
|
||||
str = d.bfdate + ' ~ ' + d.jieShu;
|
||||
return str;
|
||||
}}
|
||||
,{field: 'banji_id',sort:true, title: '任职班级', minWidth:200,templet:function(d){
|
||||
var str='';
|
||||
if(d.glBanji)
|
||||
{
|
||||
str = d.ktJdDengji.title;
|
||||
if(d.glBanji.banJiTitle)
|
||||
{
|
||||
str = d.glBanji.banJiTitle;
|
||||
}
|
||||
}
|
||||
return str;
|
||||
}},
|
||||
}}
|
||||
]]
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user