用户和页面设计导出权限处理

feat/task1-c-wallet
gongfuxiang 2022-04-21 18:55:21 +08:00
parent 12dc026e4c
commit aa100a5b9e
2 changed files with 13 additions and 0 deletions

View File

@ -177,6 +177,13 @@ class Design extends Common
*/
public function Download()
{
// 是否有权限
if(!AdminIsPower())
{
return $this->error('无权限');
}
// 下载数据
$ret = DesignService::DesignDownload($this->data_request);
if(isset($ret['code']) && $ret['code'] != 0)
{

View File

@ -120,6 +120,12 @@ class User extends Common
*/
public function ExcelExport()
{
// 是否有权限
if(!AdminIsPower())
{
return $this->error('无权限');
}
// 获取数据列表
$data_params = [
'where' => $this->form_where,