|
@@ -38,15 +38,18 @@ class ToothLogController extends AdminController
|
|
return Grid::make(new ToothLog(), function (Grid $grid) use($id) {
|
|
return Grid::make(new ToothLog(), function (Grid $grid) use($id) {
|
|
//$grid->column('student_id');
|
|
//$grid->column('student_id');
|
|
$grid->column('student_id','学生信息')->display(function () {
|
|
$grid->column('student_id','学生信息')->display(function () {
|
|
- $str = "";
|
|
|
|
- $str .= "<div style='margin-right:10px;display: flex;align-items: center'>";
|
|
|
|
- $str .= '<img data-action="preview-img" src="' . $this->avatar . '" style="height:50px;width:50px;cursor:pointer;margin-right:10px;" class="img img-thumbnail">';
|
|
|
|
- $str .= '<div>';
|
|
|
|
- $str .= '<p style="margin-bottom: 5px">' . $this->username . '</p>';
|
|
|
|
- $str .= '<p style="margin-bottom: 0px">' . $this->mobile . '</p>';
|
|
|
|
- $str .= "</div>";
|
|
|
|
- $str .= "</div>";
|
|
|
|
- return $str;
|
|
|
|
|
|
+ $str = "";
|
|
|
|
+ $str .= "<div style='margin-right:10px;display: flex;align-items: center;padding-right:10px;'>";
|
|
|
|
+ $str .= '<img data-action="preview-img" src="' . $this->student_id . '" style="height:56px;width:56px;cursor:pointer;margin-right:10px;" class="img img-thumbnail">';
|
|
|
|
+ $str .= '<div>';
|
|
|
|
+ $str .= '<p style="margin:0px">姓名:小朋友</p>';
|
|
|
|
+ $str .= '<p style="margin:0px">出生年月:2023-01-01</p>';
|
|
|
|
+ $str .= '<p style="margin:0px">家庭住址:四川省成都市金牛区三泰魔方</p>';
|
|
|
|
+ $str .= '<p style="margin:0px">所属班级:黄桃班</p>';
|
|
|
|
+ $str .= '<p style="margin:0px">入园日期:2022-03-10</p>';
|
|
|
|
+ $str .= "</div>";
|
|
|
|
+ $str .= "</div>";
|
|
|
|
+ return $str;
|
|
});
|
|
});
|
|
$grid->column('log_time');
|
|
$grid->column('log_time');
|
|
$grid->column('desc')->limit(50);
|
|
$grid->column('desc')->limit(50);
|