mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-06 01:52:48 +08:00
feat: 初步完成详情生成
This commit is contained in:
@@ -1,2 +1,6 @@
|
||||
|
||||
$this->assign('{{var_name}}', $this->model::{{name}}, true);
|
||||
${{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);
|
||||
|
||||
Reference in New Issue
Block a user