@ -1,3 +1,11 @@
< style >
.isSelect{
color:#337ab7;
}
.tab-content a:hover {
color:#337ab7;
}
< / style >
< section class = "content-header" >
< section class = "content-header" >
< h1 > Permission Config< / h1 >
< h1 > Permission Config< / h1 >
< ol class = "breadcrumb" >
< ol class = "breadcrumb" >
@ -23,23 +31,23 @@
< / li >
< / li >
< / ul >
< / ul >
< div class = "tab-content" ui-view >
< div class = "tab-content" ui-view >
< a class = "btn btn-app" role= "button" ng-click = "authorizeRole('1')" >
< a class = "btn btn-app" ng-class= "{'isSelect':role=='1'}" role= "button" ng-click = "authorizeRole('1')" >
< i class = "fa fa-user-secret" > < / i >
< i class = "fa fa-user-secret" > < / i >
Administrator
Administrator
< / a >
< / a >
< a class = "btn btn-app" role= "button" ng-click = "authorizeRole('10')" >
< a class = "btn btn-app" ng-class= "{'isSelect':role=='10'}" role= "button" ng-click = "authorizeRole('10')" >
< i class = "fa fa-eye" > < / i >
< i class = "fa fa-eye" > < / i >
Compliance
Compliance
< / a >
< / a >
< a class = "btn btn-app" role= "button" ng-click = "authorizeRole('100')" >
< a class = "btn btn-app" ng-class= "{'isSelect':role=='100'}" role= "button" ng-click = "authorizeRole('100')" >
< i class = "fa fa-crosshairs" > < / i >
< i class = "fa fa-crosshairs" > < / i >
BD User
BD User
< / a >
< / a >
< a class = "btn btn-app" role= "button" ng-click = "authorizeRole('1000')" >
< a class = "btn btn-app" ng-class= "{'isSelect':role=='1000'}" role= "button" ng-click = "authorizeRole('1000')" >
< i class = "fa fa-balance-scale" > < / i >
< i class = "fa fa-balance-scale" > < / i >
Accountant
Accountant
< / a >
< / a >
< a class = "btn btn-app" role= "button" ng-click = "authorizeRole('10000')" >
< a class = "btn btn-app" ng-class= "{'isSelect':role=='10000'}" role= "button" ng-click = "authorizeRole('10000')" >
< i class = "fa fa-tty" > < / i >
< i class = "fa fa-tty" > < / i >
Service
Service
< / a >
< / a >
@ -47,23 +55,23 @@
<!-- <i class="fa fa - university"></i> -->
<!-- <i class="fa fa - university"></i> -->
<!-- Account Manager -->
<!-- Account Manager -->
<!-- </a> -->
<!-- </a> -->
< a class = "btn btn-app" role= "button" ng-click = "authorizeRole('1000000')" >
< a class = "btn btn-app" ng-class= "{'isSelect':role=='1000000'}" role= "button" ng-click = "authorizeRole('1000000')" >
< i class = "fa fa-line-chart" > < / i >
< i class = "fa fa-line-chart" > < / i >
Director
Director
< / a >
< / a >
< a class = "btn btn-app" role= "button" ng-click = "authorizeRole('10000000')" >
< a class = "btn btn-app" ng-class= "{'isSelect':role=='10000000'}" role= "button" ng-click = "authorizeRole('10000000')" >
< i class = "fa fa-map-o" > < / i >
< i class = "fa fa-map-o" > < / i >
Markting
Markting
< / a >
< / a >
< a class = "btn btn-app" role= "button" ng-click = "authorizeRole('100000000')" >
< a class = "btn btn-app" ng-class= "{'isSelect':role=='100000000'}" role= "button" ng-click = "authorizeRole('100000000')" >
< i class = "fa fa-code" > < / i >
< i class = "fa fa-code" > < / i >
Developer
Developer
< / a >
< / a >
< a class = "btn btn-app" role= "button" ng-click = "authorizeRole('10000000000')" >
< a class = "btn btn-app" ng-class= "{'isSelect':role=='10000000000'}" role= "button" ng-click = "authorizeRole('10000000000')" >
< i class = "fa fa-user" > < / i >
< i class = "fa fa-user" > < / i >
Risk Manager
Risk Manager
< / a >
< / a >
< a class = "btn btn-app" role= "button" ng-click = "authorizeRole('100000000000')" >
< a class = "btn btn-app" ng-class= "{'isSelect':role=='100000000000'}" role= "button" ng-click = "authorizeRole('100000000000')" >
< i class = "fa fa-tripadvisor" > < / i >
< i class = "fa fa-tripadvisor" > < / i >
GUEST
GUEST
< / a >
< / a >
@ -71,10 +79,29 @@
<!-- <i class="fa fa - user - plus"></i> -->
<!-- <i class="fa fa - user - plus"></i> -->
<!-- Org Manager -->
<!-- Org Manager -->
<!-- </a> -->
<!-- </a> -->
< a class = "btn btn-app" role= "button" ng-click = "authorizeRole('10000000000000')" >
< a class = "btn btn-app" ng-class= "{'isSelect':role=='10000000000000'}" role= "button" ng-click = "authorizeRole('10000000000000')" >
< i class = "fa fa-ticket" > < / i >
< i class = "fa fa-ticket" > < / i >
Sales Manager
Sales Manager
< / a >
< / a >
< div class = "box box-warning" >
< div class = "box-header with-border" > 权限
< button style = "float: right;" class = "btn btn-success" ng-click = "submitAuthorize()" > Submit< / button >
< / div >
< div class = "box-body table-responsive" >
< div class = "row" >
< div class = "col-sm-4 col-xs-1" >
< a role = "button" ng-class = "{active:mod.module_name==moduleName}" ng-click = "switchModule(mod.module_name)" class = "list-group-item" ng-repeat = "mod in modules.modules" ng-bind = "mod.module_name+' - '+mod.remark" > < / a >
< / div >
< div class = "col-sm-8 col-xs-1" >
< div ng-repeat = "mod in modules.modules| filter:filterAuthorized" >
< a role = "button" class = "list-group-item" ng-repeat = "func in mod.funcs" ng-bind = "func.func_id+(func.remark?'('+func.remark+')':'')"
ng-class="{active:authorized.indexOf(func.func_id)>=0}" ng-click="toggleAuthorize(func)">
< / a >
< / div >
< / div >
< / div >
< / div >
< / div >
<!-- <a class="btn btn - app" role="button" ng - click="authorizeRole('100000000000000')"> -->
<!-- <a class="btn btn - app" role="button" ng - click="authorizeRole('100000000000000')"> -->
<!-- <i class="fa fa - save"></i> -->
<!-- <i class="fa fa - save"></i> -->
<!-- Data Content -->
<!-- Data Content -->