feat: 增加日志一键删除 数据导出

This commit is contained in:
Ying
2022-08-23 18:12:37 +08:00
parent ad13904549
commit f7f24964c3
6 changed files with 18 additions and 8 deletions

View File

@@ -55,13 +55,6 @@ class Admin extends AdminController
{
parent::__construct();
$this->model = new AdminModel();
$this->jobs = Jobs::select()->toArray();
$this->group = AdminGroupModel::select()->toArray();
$this->department = Department::getListTree();
foreach ($this->group as $k => $v) {
$this->group[$k]['title'] = __($v['title']);
}
}
/**
@@ -123,6 +116,10 @@ class Admin extends AdminController
return $this->success('查询成功', null, $list, $count);
}
$this->jobs = Jobs::select()->toArray();
$this->group = AdminGroupModel::select()->toArray();
$this->department = Department::getListTree();
return view('/system/admin/index', [
'jobs' => $this->jobs,
'group' => $this->group,