From 6b1a2e731c02fd55e65c11fc8873f407469a3d6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=A7=E8=BF=9E=E5=B7=B4=E6=8E=8C?= Date: Wed, 3 Jul 2019 11:51:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AD=A6=E7=94=9F=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E4=B8=AD=E6=8C=89=E5=B9=B4=E9=BE=84=E6=8E=92=E5=BA=8F?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/renshi/controller/Student.php | 1 - application/renshi/view/student/index.html | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) 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){