数据列表模块优化

This commit is contained in:
devil
2020-05-31 22:06:40 +08:00
parent 7ebf0d2c70
commit 89579a91fe
8 changed files with 300 additions and 66 deletions

View File

@ -44,12 +44,14 @@ class ViewInclude extends Controller
* @date 2020-05-25
* @desc description
* @param [string] $template [模板地址]
* @param [mixed] $params [参数数据]
* @param [mixed] $data [请求数据]
* @param [mixed] $params [请求参数]
* @return [string] [模板内容]
*/
public function Run($template, $params = [])
public function Run($template, $data = [], $params = [])
{
$this->assign('module_data', $params);
$this->assign('module_data', $data);
$this->assign('module_params', $params);
return $this->fetch($template);
}
}