Commit 992752eb by lujunyi

问诊人年龄

parent 2edf830e
...@@ -29,9 +29,7 @@ protected function grid() ...@@ -29,9 +29,7 @@ protected function grid()
return data_masking($content, 'idcard'); return data_masking($content, 'idcard');
}); });
$grid->column('gender', '性别')->using(PatientModel::SEX_MAP); $grid->column('gender', '性别')->using(PatientModel::SEX_MAP);
$grid->column('age', '年龄')->display(function ($value) { $grid->column('age', '年龄');
return getAgeByIdCard($this->id_card);
});
$grid->column('mobile')->display(function ($content) { $grid->column('mobile')->display(function ($content) {
return data_masking($content, 'mobile'); return data_masking($content, 'mobile');
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment