更新表单导出功能

This commit is contained in:
2020-07-15 21:04:49 +08:00
parent 918e62b8cf
commit 170d05b6c6
4 changed files with 7 additions and 4 deletions

View File

@@ -110,6 +110,9 @@ class Form extends Base {
* @return html 页面
*/
public function lists($form_id = '') {
if(!$form_id){
return $this->error('无此表单!');
}
$form = $this->modelInfo;
$list = $this->model->order('id desc')->paginate(25);
@@ -118,6 +121,7 @@ class Form extends Base {
'grid' => $this->modelInfo['grid_list'],
'meta_title' => $this->modelInfo['title'] . '列表',
'form_id' => $form_id,
'require' => ['jsname' => 'form', 'actionname' => 'lists'],
'list' => $list,
'page' => $list->render(),
);