@ -1,3 +1,11 @@
< style >
.isSelect{
color:#337ab7;
}
.tab-content a:hover {
color:#337ab7;
}
< / style >
< section class = "content-header" >
< h1 > Permission Config< / h1 >
< ol class = "breadcrumb" >
@ -23,23 +31,23 @@
< / li >
< / ul >
< 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 >
Administrator
< / 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 >
Compliance
< / 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 >
BD User
< / 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 >
Accountant
< / 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 >
Service
< / a >
@ -47,23 +55,23 @@
<!-- <i class="fa fa - university"></i> -->
<!-- Account Manager -->
<!-- </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 >
Director
< / 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 >
Markting
< / 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 >
Developer
< / 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 >
Risk Manager
< / 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 >
GUEST
< / a >
@ -71,10 +79,29 @@
<!-- <i class="fa fa - user - plus"></i> -->
<!-- Org Manager -->
<!-- </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 >
Sales Manager
< / 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')"> -->
<!-- <i class="fa fa - save"></i> -->
<!-- Data Content -->