mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-06 10:02:49 +08:00
feat: 完成基本的详情生成
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user