diff --git a/application/renshi/controller/Student.php b/application/renshi/controller/Student.php index 914e86f0..94f86a62 100644 --- a/application/renshi/controller/Student.php +++ b/application/renshi/controller/Student.php @@ -351,7 +351,6 @@ class Student extends Base // 保存或更新信息 $data = $student->saveAll($students); - // $cnt = $data->count(); $data ? $data = ['msg'=>'数据同步成功','val'=>1] : ['msg'=>'数据同步失败','val'=>0]; diff --git a/application/renshi/view/student/index.html b/application/renshi/view/student/index.html index 2b664f1e..1dba2cd7 100644 --- a/application/renshi/view/student/index.html +++ b/application/renshi/view/student/index.html @@ -88,7 +88,7 @@ {type:'checkbox', fixed: 'left'}, {field: 'xingming', title: '姓名',sort: true}, {field: 'sex', title: '性别',sort: true}, - {field: "age",title: '周岁',sort: true,templet:function(d){ + {field: "shengri",title: '周岁',sort: true,templet:function(d){ return d.age; }}, {field: 'school', title: '学校',minWidth:200,sort: true,templet:function(d){