Commit ac52081b by 赵增煜

禁用详情页的删除编辑按钮

parent 88712760
...@@ -122,7 +122,7 @@ protected function detail($id) ...@@ -122,7 +122,7 @@ protected function detail($id)
$show->field('patient_id_card'); $show->field('patient_id_card');
$show->field('doctor_name'); $show->field('doctor_name');
$show->field('diagnosis'); $show->field('diagnosis');
$show->field('drug_info')->display(function ($drugInfoJson) { $show->field('drug_info')->as(function ($drugInfoJson) {
// 尝试将 $drugInfoJson 解码为数组 // 尝试将 $drugInfoJson 解码为数组
$drugInfoArray = json_decode($drugInfoJson, true); $drugInfoArray = json_decode($drugInfoJson, true);
// 检查解码是否成功且 $drugInfoArray 是一个数组 // 检查解码是否成功且 $drugInfoArray 是一个数组
......
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