mirror of https://gitee.com/karson/fastadmin.git
parent
47b329822e
commit
62d77f9f96
|
|
@ -31,6 +31,11 @@ class Admin extends Backend
|
|||
|
||||
$groupName = AuthGroup::where('id', 'in', $this->childrenGroupIds)
|
||||
->column('id,name');
|
||||
foreach ($groupName as $k => &$v)
|
||||
{
|
||||
$v = __($v);
|
||||
}
|
||||
unset($v);
|
||||
|
||||
$this->view->assign('groupdata', $groupName);
|
||||
$this->assignconfig("admin", ['id' => $this->auth->id]);
|
||||
|
|
|
|||
|
|
@ -272,7 +272,7 @@ class Group extends Backend
|
|||
if (!$superadmin && !in_array($v['id'], $admin_rule_ids))
|
||||
continue;
|
||||
$state = array('selected' => in_array($v['id'], $current_rule_ids) && !in_array($v['id'], $hasChildrens));
|
||||
$nodelist[] = array('id' => $v['id'], 'parent' => $v['pid'] ? $v['pid'] : '#', 'text' => $v['title'], 'type' => 'menu', 'state' => $state);
|
||||
$nodelist[] = array('id' => $v['id'], 'parent' => $v['pid'] ? $v['pid'] : '#', 'text' => __($v['title']), 'type' => 'menu', 'state' => $state);
|
||||
}
|
||||
$this->success('', null, $nodelist);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -181,7 +181,7 @@
|
|||
console.log(installed);
|
||||
if (!installed) {
|
||||
$.ajax({
|
||||
url: "http://fast/api/statistics/installed",
|
||||
url: "{$Think.config.fastadmin.api_url}/statistics/installed",
|
||||
data: {
|
||||
version: "{:config('fastadmin.version')}",
|
||||
os: "{$Think.PHP_OS}",
|
||||
|
|
|
|||
Loading…
Reference in New Issue