diff --git a/application/renshi/controller/Index.php b/application/renshi/controller/Index.php index ae2e99f2..bfd1855a 100644 --- a/application/renshi/controller/Index.php +++ b/application/renshi/controller/Index.php @@ -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'); } diff --git a/application/renshi/view/index/index.html b/application/renshi/view/index/index.html index 487c43c1..e694d5f2 100644 --- a/application/renshi/view/index/index.html +++ b/application/renshi/view/index/index.html @@ -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}, diff --git a/public/uploads/student/20190413/1e8ffd816acde0e0d839fca5300c396e.xlsx b/public/uploads/student/20190413/1e8ffd816acde0e0d839fca5300c396e.xlsx new file mode 100644 index 00000000..0cd72fd0 Binary files /dev/null and b/public/uploads/student/20190413/1e8ffd816acde0e0d839fca5300c396e.xlsx differ diff --git a/public/uploads/student/20190413/9155a60c7b59c6ce4ebb448ea0263467.xlsx b/public/uploads/student/20190413/9155a60c7b59c6ce4ebb448ea0263467.xlsx new file mode 100644 index 00000000..0cd72fd0 Binary files /dev/null and b/public/uploads/student/20190413/9155a60c7b59c6ce4ebb448ea0263467.xlsx differ