feat: 完成基本的详情生成

This commit is contained in:
augushong
2026-01-09 00:02:33 +08:00
parent 0e92ab2363
commit d5be4cbbaa
8 changed files with 46 additions and 51 deletions

View File

@@ -1,6 +1,2 @@
${{var_name}}_list = [];
foreach ($this->model::{{name}} as $key => $value) {
${{var_name}}_list[] = ['value' => $key, 'label' => $value];
}
$this->assign('{{var_name}}', ${{var_name}}_list, true);
$this->assign('{{var_name}}', $this->model::{{name}}, true);