Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
d73e0781
Commit
d73e0781
authored
Jan 24, 2018
by
zfc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
权限4
parent
6435afd8
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
246 additions
and
24 deletions
+246
-24
Auth.php
application/index/controller/Auth.php
+21
-4
auth_rule_box.html
application/index/view/auth/auth_rule_box.html
+148
-0
auth_rule_index.html
application/index/view/auth/auth_rule_index.html
+5
-6
AuthRule.php
application/model/AuthRule.php
+12
-0
route.php
application/route.php
+8
-6
auth_rule_box.js
public/resource/js/auth_rule_box.js
+29
-0
main.js
public/resource/js/main.js
+3
-1
auth_rule_box_template_tpl.html
public/resource/template/auth_rule_box_template_tpl.html
+15
-0
auth_rule_index_template_tpl.html
public/resource/template/auth_rule_index_template_tpl.html
+5
-7
No files found.
application/index/controller/Auth.php
View file @
d73e0781
...
@@ -217,16 +217,14 @@ class Auth extends Basic
...
@@ -217,16 +217,14 @@ class Auth extends Basic
}
}
//权限列表
//权限列表
public
function
authRuleList
(){
public
function
authRuleList
(){
$table
=
new
authRule
;
$data
[
'status'
]
=
200
;
$data
[
'status'
]
=
200
;
$data
[
'msg'
]
=
''
;
$data
[
'msg'
]
=
''
;
$params
=
$this
->
request
->
param
();
$params
=
$this
->
request
->
param
();
$pageNo
=
empty
(
$params
[
'pageNo'
])
?
1
:
$params
[
'pageNo'
];
$pageNo
=
empty
(
$params
[
'pageNo'
])
?
1
:
$params
[
'pageNo'
];
$pageSize
=
empty
(
$params
[
'pageSize'
])
?
20
:
$params
[
'pageSize'
];
$pageSize
=
empty
(
$params
[
'pageSize'
])
?
20
:
$params
[
'pageSize'
];
$table
=
new
authRule
;
//条件
//条件
$field
=
'a.id,a.name,a.title,a.depend_flag,a.type,a.pid,a.icon,a.sort,a.is_menu,a.status,b.name as name2'
;
$field
=
"a.id,a.name,a.title,a.depend_flag,a.type,a.pid,a.icon,a.sort,if(a.is_menu,'是','否')is_menu,a.status,ifnull(b.title,'顶级') as title2"
;
$where
=
'a.status=1'
;
$where
=
'a.status=1'
;
$order
=
'a.pid asc,a.sort asc'
;
$order
=
'a.pid asc,a.sort asc'
;
$join
=
[[
'auth_rule b'
,
' a.pid=b.id'
,
'left'
]];
$join
=
[[
'auth_rule b'
,
' a.pid=b.id'
,
'left'
]];
...
@@ -237,6 +235,24 @@ class Auth extends Basic
...
@@ -237,6 +235,24 @@ class Auth extends Basic
return
$this
->
response
(
200
,
'成功'
,
$data
);
return
$this
->
response
(
200
,
'成功'
,
$data
);
}
}
//编辑权限窗口
public
function
AuthRuleBox
(){
return
view
(
'auth_rule_box'
);
}
//分类列表
public
function
AuthClass
(){
$table
=
new
AuthRule
;
$data
[
'status'
]
=
200
;
$data
[
'msg'
]
=
''
;
$field
=
"a.id,a.title,a.pid,a.sort"
;
$where
=
'a.status=1'
;
$order
=
'a.pid asc,a.sort asc'
;
$data
[
'list'
]
=
$table
->
authRuleList2
(
$order
,
$field
,
''
,
$where
);
//echo $table->getLastSql();
//prt(collection($data['list'])->toArray());//转化arr
return
$this
->
response
(
200
,
'成功'
,
$data
);
}
}
}
\ No newline at end of file
application/index/view/auth/auth_rule_box.html
0 → 100644
View file @
d73e0781
{layout name="global/frame_tpl" /}
<!--关联js元素-->
<input
type=
"hidden"
class=
"page-load"
id=
"auth_rule_box"
/>
<!--关联js元素-->
<div
class=
"box box-solid"
style=
"min-height: 1426px; width: 1035px; float: left; margin-left: 20px;"
>
<div
class=
"box-body"
>
<div
class=
"builder formbuilder-box"
>
<div
class=
"row"
>
<div
style=
"padding: 20px;margin-left:30px;border-radius:3px;"
class=
"col-md-11"
>
<form
class=
"form-builder form-horizontal"
method=
"post"
action=
"http://me.tp.com/admin.php/admin/auth/ruleedit/id/1.html?_pjax=%23pjax-container"
>
<fieldset>
<div
style=
"display:none;"
class=
"form-group item_id "
>
<label
class=
"col-md-2 control-label"
for=
"id"
>
ID
</label>
<div
class=
"col-md-4"
>
<input
type=
"hidden"
value=
"1"
name=
"id"
id=
"id"
class=
"form-control"
>
</div>
<div
class=
"col-md-5 help-block"
><i
class=
"fa fa-info-circle color-info1"
></i>
ID
</div></div>
<div
class=
"form-group item_title "
>
<label
class=
"col-md-2 control-label"
for=
"title"
>
标题
</label>
<div
class=
"col-md-4"
>
<input
type=
"text"
value=
"仪表盘"
name=
"title"
class=
"form-control"
>
</div>
<div
class=
"col-md-5 help-block"
><i
class=
"fa fa-info-circle color-info1"
></i>
用于后台显示的配置标题
</div></div>
<div
class=
"form-group item_depend_flag "
>
<!--<label class="col-md-2 control-label" for="depend_flag">所属模块</label>-->
<!--<div class="col-md-4">-->
<!--<select class="form-control" id="depend_flag" name="depend_flag">-->
<!--<option value="">请选择</option> <option selected="" value="admin">后台模块</option>-->
<!--<option value="home">前台模块</option>-->
<!--<option value="user">用户中心</option>-->
<!--</select>-->
<!--</div>-->
<!--<div class="col-md-6 help-block"><i class="fa fa-info-circle color-info1"></i> 所属的模块,模块菜单必须选择,否则无法导出</div></div>-->
<div
class=
"form-group item_pid "
>
<label
class=
"col-md-2 control-label"
>
上级菜单
</label>
<div
class=
"col-md-4"
>
<select
class=
"form-control"
name=
"pid"
id=
"pid"
>
</select>
</div>
</div>
<!--<div class="form-group item_icon ">-->
<!--<label class="col-md-2 control-label" for="icon">字体图标</label>-->
<!--<div class="col-md-6">-->
<!--<div id="icon-picker" class="input-group input">-->
<!--<span class="input-group-btn">-->
<!--<button onclick="filter_icon(this);" type="button" class="btn btn-raised btn-default btn-sm"><i class="fa fa-info-circle"></i> 选择图标</button>-->
<!--</span>-->
<!--<input type="text" value="fa-tachometer" id="icon" name="icon" class="form-control iconpicker">-->
<!--</div>-->
<!--</div>-->
<!--</div>-->
<script
type=
"text/javascript"
>
// function setIconFilter(filter) {
// $('#icon').val(filter);
// layer.closeAll('iframe');
// }
</script>
<div
class=
"form-group item_name "
>
<label
class=
"col-md-2 control-label"
for=
"name"
>
链接
</label>
<div
class=
"col-md-4"
>
<input
type=
"text"
value=
"admin/dashboard/index"
name=
"name"
class=
"form-control"
>
</div>
<div
class=
"col-md-5 help-block"
><i
class=
"fa fa-info-circle color-info1"
></i>
链接
</div></div>
<!--
如果选项的值是自定义数组(必须定义key为title的元素)需要解析,如果选项的值是常规字符串直接显示
此处主要是用来给option定义更多的属性,比如data-ia=1,那么option应为
$option = array('title' => 标题, 'data-id' => 1);
-->
<div
class=
"form-group item_is_menu "
>
<label
class=
"col-md-2 control-label"
for=
"is_menu"
>
后台菜单
</label>
<div
class=
"col-md-8"
>
<div
class=
"oh mb-10 pl-5"
>
<div
class=
"radio radio-primary fl mr-10"
>
<label
class=
"radio-label1"
for=
"is_menu1"
>
<div
class=
"iradio_minimal-blue checked"
style=
"position: relative;"
aria-checked=
"false"
aria-disabled=
"false"
>
<input
type=
"radio"
checked=
""
value=
"1"
id=
"is_menu1"
name=
"is_menu"
style=
""
>
</div>
是
</label>
</div>
<div
class=
"radio radio-primary fl mr-10"
>
<label
class=
"radio-label2"
for=
"is_menu0"
>
<div
class=
"iradio_minimal-blue"
style=
"position: relative;"
aria-checked=
"false"
aria-disabled=
"false"
>
<input
type=
"radio"
checked=
""
value=
"1"
id=
"is_menu1"
name=
"is_menu"
style=
""
>
</div>
否
</label>
</div>
</div>
<div
class=
"help-block "
><i
class=
"fa fa-info-circle color-info1"
></i>
是否标记为后台菜单
</div>
</div>
</div>
<!--
如果选项的值是自定义数组(必须定义key为title的元素)需要解析,如果选项的值是常规字符串直接显示
此处主要是用来给option定义更多的属性,比如data-ia=1,那么option应为
$option = array('title' => 标题, 'data-id' => 1);
-->
<div
class=
"form-group item_sort "
>
<label
class=
"col-md-2 control-label"
for=
"sort"
>
排序
</label>
<div
class=
"col-md-4"
>
<input
type=
"number"
value=
"1"
name=
"sort"
class=
"form-control"
>
</div>
<div
class=
"col-md-5 help-block"
><i
class=
"fa fa-info-circle color-info1"
></i>
排序
</div></div>
<hr>
<div
class=
"form-group"
>
<div
class=
"col-md-10 col-xs-offset-2 mt-10 tc"
>
<div
class=
"col-md-3 col-xs-6"
>
<button
target-form=
"form-builder"
type=
"submit"
class=
"btn btn-block btn-primary submit ajax-post "
>
确定
</button>
</div>
<div
class=
"col-md-3 col-xs-6"
>
<button
class=
"btn btn-block btn-default return"
onclick=
"javascript:history.back(-1);return false;"
>
返回
</button>
</div>
</div>
</div>
</fieldset>
</form>
</div>
</div>
</div>
</div>
</div>
\ No newline at end of file
application/index/view/auth/auth_rule_index.html
View file @
d73e0781
...
@@ -34,10 +34,10 @@
...
@@ -34,10 +34,10 @@
<div
class=
"col-xs-12 col-sm-12 button-list clearfix"
>
<div
class=
"col-xs-12 col-sm-12 button-list clearfix"
>
<!-- 工具栏按钮 -->
<!-- 工具栏按钮 -->
<!--<div class="form-group">-->
<!--<div class="form-group">-->
<a
href=
"/
admin.php/admin/auth/ruleedit/pid/0
.html"
class=
"btn btn-primary btn-sm"
title=
"新增"
>
新增
</a>
<a
href=
"/
index/authRuleBox
.html"
class=
"btn btn-primary btn-sm"
title=
"新增"
>
新增
</a>
<a
href=
"/
admin.php/admin/auth/
setstatus/status/resume/model/auth_rule.html"
model=
"auth_rule"
class=
"btn btn-success ajax-post confirm btn-sm"
target-form=
"ids"
title=
"启用"
>
启用
</a>
<a
href=
"/setstatus/status/resume/model/auth_rule.html"
model=
"auth_rule"
class=
"btn btn-success ajax-post confirm btn-sm"
target-form=
"ids"
title=
"启用"
>
启用
</a>
<a
href=
"/
admin.php/admin/auth/
setstatus/status/forbid/model/auth_rule.html"
model=
"auth_rule"
class=
"btn btn-warning ajax-post confirm btn-sm"
target-form=
"ids"
title=
"禁用"
>
禁用
</a>
<a
href=
"/setstatus/status/forbid/model/auth_rule.html"
model=
"auth_rule"
class=
"btn btn-warning ajax-post confirm btn-sm"
target-form=
"ids"
title=
"禁用"
>
禁用
</a>
<a
href=
"/
admin.php/admin/auth/setstatus/
status/delete/model/auth_rule.html"
model=
"auth_rule"
class=
"btn btn-danger ajax-post confirm btn-sm"
target-form=
"ids"
title=
"删除"
>
删除
</a>
<a
href=
"/status/delete/model/auth_rule.html"
model=
"auth_rule"
class=
"btn btn-danger ajax-post confirm btn-sm"
target-form=
"ids"
title=
"删除"
>
删除
</a>
<!--<a onclick="move_menuparent()" title="<i class="fa fa-exchange"></i> 移动位置" class="btn btn-info btn-sm" target-form="ids"><i class="fa fa-exchange"></i> 移动位置</a> -->
<!--<a onclick="move_menuparent()" title="<i class="fa fa-exchange"></i> 移动位置" class="btn btn-info btn-sm" target-form="ids"><i class="fa fa-exchange"></i> 移动位置</a> -->
<!--<a model="auth_rule" href="/admin.php/admin/auth/rule_sort/pid/0.html" class="btn btn-info btn-sm" name="排序" title="<i class="fa fa-sort"></i> 排序"><i class="fa fa-sort"></i> 排序</a> -->
<!--<a model="auth_rule" href="/admin.php/admin/auth/rule_sort/pid/0.html" class="btn btn-info btn-sm" name="排序" title="<i class="fa fa-sort"></i> 排序"><i class="fa fa-sort"></i> 排序</a> -->
<!--<!– </div>–>-->
<!--<!– </div>–>-->
...
@@ -58,7 +58,6 @@
...
@@ -58,7 +58,6 @@
<th>
名称
</th>
<th>
名称
</th>
<th>
上级菜单
</th>
<th>
上级菜单
</th>
<th>
URL
</th>
<th>
URL
</th>
<th>
来源标识
</th>
<th>
排序
</th>
<th>
排序
</th>
<th>
菜单
</th>
<th>
菜单
</th>
<th>
状态
</th>
<th>
状态
</th>
...
@@ -87,5 +86,5 @@
...
@@ -87,5 +86,5 @@
</section>
</section>
</div>
application/model/AuthRule.php
View file @
d73e0781
...
@@ -38,6 +38,18 @@ class AuthRule extends Model
...
@@ -38,6 +38,18 @@ class AuthRule extends Model
return
$this
->
where
(
$params
)
->
count
();
return
$this
->
where
(
$params
)
->
count
();
}
}
//查询不带分页
public
function
authRuleList2
(
$order
=
''
,
$field
=
''
,
$join
=
''
,
$where
=
''
){
$data
=
$this
->
field
(
$field
)
->
alias
(
'a'
)
->
join
(
$join
)
->
where
(
$where
)
->
order
(
$order
)
->
select
();
return
$data
;
}
//查询带分页
public
function
authRuleList
(
$p
=
1
,
$pageSize
=
20
,
$order_
=
''
,
$field
=
''
,
$join
=
''
,
$where
=
''
){
public
function
authRuleList
(
$p
=
1
,
$pageSize
=
20
,
$order_
=
''
,
$field
=
''
,
$join
=
''
,
$where
=
''
){
$data
=
$this
->
field
(
$field
)
$data
=
$this
->
field
(
$field
)
->
alias
(
'a'
)
->
alias
(
'a'
)
...
...
application/route.php
View file @
d73e0781
...
@@ -77,13 +77,15 @@ Route::group('index', [
...
@@ -77,13 +77,15 @@ Route::group('index', [
'getVersionList'
=>
[
'index/version/getVersionList'
,[
'method'
=>
'post'
]],
'getVersionList'
=>
[
'index/version/getVersionList'
,[
'method'
=>
'post'
]],
'addVersion'
=>
[
'index/version/addVersion'
,[
'method'
=>
'post'
]],
'addVersion'
=>
[
'index/version/addVersion'
,[
'method'
=>
'post'
]],
'getAuth'
=>
[
'index/auth/getAuth'
,
[
'method'
=>
'get'
]],
//角色列表
'getAuth'
=>
[
'index/auth/getAuth'
,
[
'method'
=>
'get'
]],
//角色列表
'roleedit'
=>
[
'index/auth/roleEdit'
,
[
'method'
=>
'get'
]],
//
编辑角色页面
'roleedit'
=>
[
'index/auth/roleEdit'
,
[
'method'
=>
'get'
]],
//--
编辑角色页面
'access'
=>
[
'index/auth/access'
,
[
'method'
=>
'get'
]],
//
权限分配角色
'access'
=>
[
'index/auth/access'
,
[
'method'
=>
'get'
]],
//--
权限分配角色
'addAuth'
=>
[
'index/auth/addAuth'
,
[
'method'
=>
'post'
]],
//
添加角色
'addAuth'
=>
[
'index/auth/addAuth'
,
[
'method'
=>
'post'
]],
//--
添加角色
'accessLook'
=>
[
'index/auth/accessLook'
,
[
'method'
=>
'post'
]],
//
查看编辑角色权限
'accessLook'
=>
[
'index/auth/accessLook'
,
[
'method'
=>
'post'
]],
//--
查看编辑角色权限
'setStatus'
=>
[
'index/auth/setStatus'
,
[
'method'
=>
'post'
]],
//
设置角色的状态
'setStatus'
=>
[
'index/auth/setStatus'
,
[
'method'
=>
'post'
]],
//--
设置角色的状态
'authRuleIndex'
=>
[
'index/auth/authRuleIndex'
,
[
'method'
=>
'get'
]],
//权限列表界面
'authRuleIndex'
=>
[
'index/auth/authRuleIndex'
,
[
'method'
=>
'get'
]],
//权限列表界面
'authRuleList'
=>
[
'index/auth/authRuleList'
,
[
'method'
=>
'get'
]],
//权限列表
'authRuleList'
=>
[
'index/auth/authRuleList'
,
[
'method'
=>
'get'
]],
//--规则列表
'authRuleBox'
=>
[
'index/auth/authRuleBox'
,
[
'method'
=>
'get'
]],
//--编辑规则
'authClass'
=>
[
'index/auth/authClass'
,
[
'method'
=>
'get'
]],
//--规则分类列表
'accessUser'
=>
[
'index/auth/accessUser'
,
[
'method'
=>
'get'
]],
//成员授权
'accessUser'
=>
[
'index/auth/accessUser'
,
[
'method'
=>
'get'
]],
//成员授权
'BusinessDistrict'
=>
[
'index/BusinessDistrict/index'
,
[
'method'
=>
'get'
]],
//商圈列表
'BusinessDistrict'
=>
[
'index/BusinessDistrict/index'
,
[
'method'
=>
'get'
]],
//商圈列表
'editBusinessDistrict'
=>
[
'index/BusinessDistrict/edit'
,
[
'method'
=>
'get | post'
]],
//编辑商圈
'editBusinessDistrict'
=>
[
'index/BusinessDistrict/edit'
,
[
'method'
=>
'get | post'
]],
//编辑商圈
...
...
public/resource/js/auth_rule_box.js
0 → 100644
View file @
d73e0781
define
([
'doT'
,
'text!temp/auth_rule_box_template_tpl.html'
,
'css!style/home.css'
,
'bootstrapJs'
],
function
(
doT
,
template
)
{
authRule
=
{
init
:
function
()
{
//初始化dot
$
(
"body"
).
append
(
template
);
authRule
.
getList
();
authRule
.
event
();
},
event
:
function
()
{
},
getList
:
function
(
pageNo
){
$
.
ajax
({
url
:
'/index/AuthClass.html'
,
type
:
'GET'
,
async
:
true
,
dataType
:
'json'
,
success
:
function
(
data
)
{
var
temp
=
document
.
getElementById
(
'auth_class_tpl'
).
innerHTML
;
var
doTempl
=
doT
.
template
(
temp
);
$
(
"#pid"
).
html
(
doTempl
(
data
.
data
.
list
));
//赋值
}
})
}
}
return
authRule
;
});
\ No newline at end of file
public/resource/js/main.js
View file @
d73e0781
...
@@ -16,6 +16,7 @@ require.config ({
...
@@ -16,6 +16,7 @@ require.config ({
'pagination'
:
'lib/js/Pagination'
,
'pagination'
:
'lib/js/Pagination'
,
'paginationStart'
:
'lib/js/zw.pagination'
,
'paginationStart'
:
'lib/js/zw.pagination'
,
'blow-up'
:
'lib/js/blow-up'
,
'blow-up'
:
'lib/js/blow-up'
,
},
},
'shim'
:
{
'shim'
:
{
'jquery'
:
{
'jquery'
:
{
...
@@ -47,7 +48,8 @@ require.config ({
...
@@ -47,7 +48,8 @@ require.config ({
'blow-up'
:
{
'blow-up'
:
{
'deps'
:
[
'jquery'
],
'deps'
:
[
'jquery'
],
'exports'
:
'blow-up'
'exports'
:
'blow-up'
}
},
},
},
'map'
:
{
'map'
:
{
'*'
:
{
'*'
:
{
...
...
public/resource/template/auth_rule_box_template_tpl.html
0 → 100644
View file @
d73e0781
<script
id=
"auth_class_tpl"
type=
"text/template"
>
<
option
selected
=
""
value
=
"0"
>
顶级菜单
<
/option
>
[
%
if
(
it
)
{
%
]
[
%
for
(
var
item
in
it
){
%
]
[
%
if
(
it
[
item
][
'pid'
]
!=
0
){
%
]
<
option
value
=
"45"
>&
nbsp
;
&
nbsp
;
└
[
%=
it
[
item
][
"title"
]
%
]
&
nbsp
;
<
/option
>
[
%
}
else
{
%
]
<
option
value
=
"1"
>
[
%=
it
[
item
][
"title"
]
%
]
&
nbsp
;
<
/option
>
[
%
}
%
]
[
%
}
%
]
[
%
}
%
]
</script>
\ No newline at end of file
public/resource/template/auth_rule_index_template_tpl.html
View file @
d73e0781
...
@@ -2,22 +2,20 @@
...
@@ -2,22 +2,20 @@
[
%
if
(
it
)
{
%
]
[
%
if
(
it
)
{
%
]
[
%
for
(
var
item
in
it
){
%
]
[
%
for
(
var
item
in
it
){
%
]
<
tr
>
<
tr
>
<
td
><
div
class
=
"icheckbox_minimal-blue"
style
=
"
position: relative;
"
aria
-
checked
=
"false"
aria
-
disabled
=
"false"
>
<
td
><
div
class
=
"icheckbox_minimal-blue"
style
=
""
aria
-
checked
=
"false"
aria
-
disabled
=
"false"
>
<
input
type
=
"checkbox"
name
=
"ids[]"
value
=
"1"
class
=
"ids"
style
=
""
>
<
input
type
=
"checkbox"
name
=
"ids[]"
value
=
"1"
class
=
"ids"
style
=
""
>
<
ins
class
=
"iCheck-helper "
style
=
""
>
<
/ins
>
<
/div
>
<
/div
>
<
/td
>
<
/td
>
<
td
>
[
%=
it
[
item
][
"id"
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"id"
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"title"
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"title"
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"
nam
e2"
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"
titl
e2"
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"
depend_flag
"
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"
name
"
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"sort"
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"sort"
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"is_menu"
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"is_menu"
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"status"
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"status"
]
%
]
<
/td
>
<
td
><
span
class
=
"fa fa-check text-success"
><
/span></
td
>
<
!--<
td
><
span
class
=
"fa fa-check text-success"
><
/span></
td
>--
>
<
td
>
<
td
>
<
a
style
=
"margin-right:6px;"
href
=
""
class
=
"btn btn-primary btn-xs"
title
=
"编辑"
>
编辑
<
/a
>
<
a
style
=
"margin-right:6px;"
href
=
"
/index/authRuleBox.html/group_id/[%= it[item]['id'] %]
"
class
=
"btn btn-primary btn-xs"
title
=
"编辑"
>
编辑
<
/a
>
<
a
style
=
"margin-right:6px;"
href
=
""
class
=
"btn btn-warning btn-xs ajax-get confirm"
title
=
"禁用"
>
禁用
<
/a
>
<
a
style
=
"margin-right:6px;"
href
=
""
class
=
"btn btn-warning btn-xs ajax-get confirm"
title
=
"禁用"
>
禁用
<
/a
>
<
/td
>
<
/td
>
<
/tr
>
<
/tr
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment