切换导航条
此项目
正在载入...
登录
何书鹏
/
recruit
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
Karson
8 years ago
提交
62d77f9f9629ef0d8e7b40138595f1b4e8458acd
1 个父辈
47b32982
修复部分语言标识
修复前台首页统计错误
隐藏空白字符变更
内嵌
并排对比
正在显示
3 个修改的文件
包含
7 行增加
和
2 行删除
application/admin/controller/auth/Admin.php
application/admin/controller/auth/Group.php
application/index/view/index/index.html
application/admin/controller/auth/Admin.php
查看文件 @
62d77f9
...
...
@@ -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
]);
...
...
application/admin/controller/auth/Group.php
查看文件 @
62d77f9
...
...
@@ -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
);
}
...
...
application/index/view/index/index.html
查看文件 @
62d77f9
...
...
@@ -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}"
,
...
...
请
注册
或
登录
后发表评论