feat: 实现基本的详情生成

This commit is contained in:
augushong
2026-01-05 22:59:12 +08:00
parent 528ff69897
commit 3fdea8b85b
20 changed files with 1430 additions and 15 deletions

View File

@@ -130,6 +130,23 @@ trait CurdTraitBase
return download($content, $export_file_name . date('YmdHis') . '.xlsx', true);
}
/**
* @\app\admin\service\annotation\NodeAnotation(title="详情")
*/
public function read($id)
{
$row = $this->model->find($id);
empty($row) && $this->error('数据不存在');
// 获取模型的标题(表注释)
$title = $row->title;
$this->assign('row', $row);
$this->assign('title', $title);
return $this->fetch();
}
/**
* @\app\admin\service\annotation\NodeAnotation(title="属性修改")
*/