0
This commit is contained in:
1 parent
687e086c31
commit
2b33e838bd
4 files changed
+22
-7
No files matched your search
@@ -171,13 +171,21 @@ class Index extends Base
|
||||
{
|
||||
|
||||
// 获取教师信息
|
||||
$list = Teacher::field('id,xingming,sex,quanpin,shoupin,shengri,zhiwu,zhicheng,xueli,biye,worktime,zhuanye,danwei')
|
||||
->get($id);
|
||||
$list['data'] = Teacher::field('id,xingming,sex,quanpin,shoupin,shengri,zhiwu,zhicheng,xueli,biye,worktime,zhuanye,danwei')
|
||||
->find($id);
|
||||
|
||||
// 设置页面标题
|
||||
$list['set'] = array(
|
||||
'webtitle'=>'编辑单位',
|
||||
'butname'=>'修改',
|
||||
'formpost'=>'PUT',
|
||||
'url'=>'/teacher/'.$id,
|
||||
);
|
||||
|
||||
// 模板赋值
|
||||
$this->assign('list',$list);
|
||||
|
||||
return $this->fetch();
|
||||
// 渲染
|
||||
return $this->fetch('create');
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -82,9 +82,9 @@ layui.use(['table','laypage','form','cjgl'], function(){
|
||||
{field: 'sex', title: '性别',sort: true},
|
||||
{field: "shengri",title: '周岁',sort: true,templet:function(d){
|
||||
var str='';
|
||||
if(d.dw_xingzhi)
|
||||
if(d.age)
|
||||
{
|
||||
str = d.dw_xingzhi.title;
|
||||
str = d.age;
|
||||
}
|
||||
return str;
|
||||
}},
|
||||
@@ -104,7 +104,14 @@ layui.use(['table','laypage','form','cjgl'], function(){
|
||||
}
|
||||
return str;
|
||||
}},
|
||||
{field: 'worktime', title: '工龄', sort: true},
|
||||
{field: 'worktime', title: '工龄', sort: true,templet:function(d){
|
||||
var str='';
|
||||
if(d.gongling)
|
||||
{
|
||||
str = d.gongling;
|
||||
}
|
||||
return str;
|
||||
}},
|
||||
{field: 'zhuanye', title: '专业', sort: true},
|
||||
{field: 'danwei', title: '单位', sort: true},
|
||||
{field: 'status', title: '状态',templet:'#status', sort: true},
|
||||
|
||||
Binary file not shown.
Loaded 3 of 4 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user