fix v2-manager.html permission

master
luoyang 6 years ago
parent ac7836da81
commit 28a5d26c4f

@ -6,16 +6,17 @@
</style> </style>
<div class="content-wrapper autoheight" style="margin-left: 0px"> <div class="content-wrapper autoheight" style="margin-left: 0px">
<div class="content" style="background-color: #FFF"> <div class="content" style="background-color: #FFF">
<!--
<div class="list-group"> <div class="list-group">
<!--<div class="row" ng-if="('partnerapply'|withModule) && (currentUser.org_id==null||currentUser.org_id==1)">--> <div class="row" ng-if="('partnerapply'|withModule) && (currentUser.org_id==null||currentUser.org_id==1)">
<!--<div class="col-sm-2 col-lg-2 col-xs-6">--> <div class="col-sm-2 col-lg-2 col-xs-6">
<!--<div class="description-block">--> <div class="description-block">
<!--<label>待处理事项</label>--> <label>待处理事项</label>
<!--</div>--> </div>
<!--</div>--> </div>
<!--</div>--> </div>
<div class="row"> <div class="row">
<!--<div class="col-sm-2 col-lg-2 col-xs-6"> <div class="col-sm-2 col-lg-2 col-xs-6">
<a ui-sref="sysconfig" ui-sref-opts="{reload:true}"> <a ui-sref="sysconfig" ui-sref-opts="{reload:true}">
<div class="description-block"> <div class="description-block">
<img src="/static/images/main_menu/to_be_treated_1.png"/> <img src="/static/images/main_menu/to_be_treated_1.png"/>
@ -24,10 +25,11 @@
</div> </div>
</div> </div>
</a> </a>
</div>-->
</div> </div>
</div> </div>
<div class="list-group"> </div>
-->
<div class="list-group" ng-if="role!='administrator' && role!='developer' && roll!='sitemanager'">
<div class="row"> <div class="row">
<div class="col-sm-2 col-lg-2 col-xs-6" id="partners"> <div class="col-sm-2 col-lg-2 col-xs-6" id="partners">
<div class="description-block"> <div class="description-block">
@ -98,7 +100,7 @@
</div> </div>
</div> </div>
</div> </div>
<div class="list-group"> <div class="list-group" ng-if="role!='administrator' && role!='developer' && roll!='sitemanager'">
<div class="row" > <div class="row" >
<div class="col-sm-2 col-lg-2 col-xs-6" id="transaction"> <div class="col-sm-2 col-lg-2 col-xs-6" id="transaction">
<div class="description-block"> <div class="description-block">
@ -159,7 +161,7 @@
</div> </div>
</div> </div>
</div> </div>
<div class="list-group"> <div class="list-group" ng-if="role=='riskmanager'">
<div class="row" ng-if="('clientrate'|withModule)||('monitor'|withModule) || ('customerRankingAnalysisApp'|withModule)"> <div class="row" ng-if="('clientrate'|withModule)||('monitor'|withModule) || ('customerRankingAnalysisApp'|withModule)">
<div class="col-sm-2 col-lg-2 col-xs-6" id="risk"> <div class="col-sm-2 col-lg-2 col-xs-6" id="risk">
<div class="description-block"> <div class="description-block">
@ -230,7 +232,7 @@
</div> </div>
</div> </div>
</div> </div>
<div class="list-group"> <div class="list-group" ng-if="role=='compliance'">
<div class="row"> <div class="row">
<div class="col-sm-2 col-lg-2 col-xs-6"> <div class="col-sm-2 col-lg-2 col-xs-6">
<div class="description-block"> <div class="description-block">
@ -304,7 +306,7 @@
</div> </div>
<div class="list-group"> <div class="list-group" ng-if="role=='salesmanager'">
<div class="row" ng-if="('citypartner'|withModule)||('org'|withModule)||(('org_sale'|withModule)&&(currentUser.org_id==null||currentUser.org_id==1 ||('1000000000000'|withRole)))||('orgcommission'|withModule)" > <div class="row" ng-if="('citypartner'|withModule)||('org'|withModule)||(('org_sale'|withModule)&&(currentUser.org_id==null||currentUser.org_id==1 ||('1000000000000'|withRole)))||('orgcommission'|withModule)" >
<div class="col-sm-2 col-lg-2 col-xs-6" id="citypartners"> <div class="col-sm-2 col-lg-2 col-xs-6" id="citypartners">
<div class="description-block"> <div class="description-block">
@ -367,7 +369,7 @@
--> -->
</div> </div>
</div> </div>
<div class="list-group"> <div class="list-group" ng-if="role=='bduser' || role=='salesmanager' || role=='director'">
<div class="row" ng-if="('1000'|withRole)|| ('bdsale'|withModule) || ('bdprize'|withModule)"> <div class="row" ng-if="('1000'|withRole)|| ('bdsale'|withModule) || ('bdprize'|withModule)">
<div class="col-sm-2 col-lg-2 col-xs-6" id="bd"> <div class="col-sm-2 col-lg-2 col-xs-6" id="bd">
<div class="description-block"> <div class="description-block">
@ -427,7 +429,7 @@
</a></div> </a></div>
</div> </div>
</div> </div>
<div class="list-group"> <div class="list-group" ng-if="role=='sitemanager'">
<div class="row" ng-if="('1011110'|withRole) || currentUser.org_id==null"> <div class="row" ng-if="('1011110'|withRole) || currentUser.org_id==null">
<div class="col-sm-2 col-lg-2 col-xs-6"> <div class="col-sm-2 col-lg-2 col-xs-6">
<div class="description-block" id="art"> <div class="description-block" id="art">
@ -550,7 +552,7 @@
</div>--> </div>-->
</div> </div>
</div> </div>
<div class="list-group"> <div class="list-group" ng-if="role=='sitemanager'">
<div class="row" ng-if="('0100001'|withRole)"> <div class="row" ng-if="('0100001'|withRole)">
<div class="col-sm-2 col-lg-2 col-xs-6"> <div class="col-sm-2 col-lg-2 col-xs-6">
<div class="description-block" id="cms"> <div class="description-block" id="cms">
@ -591,7 +593,7 @@
</div> </div>
</div> </div>
</div> </div>
<div class="list-group"> <div class="list-group" ng-if="role=='accountant' || role=='director'">
<div class="row" ng-if="('settleReport'|withModule)||('platformRevenue'|withModule) ||('austrac'|withModule) ||('1000'|withRole)"> <div class="row" ng-if="('settleReport'|withModule)||('platformRevenue'|withModule) ||('austrac'|withModule) ||('1000'|withRole)">
<div class="col-sm-2 col-lg-2 col-xs-6" id="staff"> <div class="col-sm-2 col-lg-2 col-xs-6" id="staff">
<div class="description-block"> <div class="description-block">
@ -660,7 +662,7 @@
</a></div> </a></div>
</div> </div>
</div> </div>
<div class="list-group"> <div class="list-group" ng-if="role=='accountant' || role=='director'">
<div class="row" > <div class="row" >
<div class="col-sm-2 col-lg-2 col-xs-6" id="clearing"> <div class="col-sm-2 col-lg-2 col-xs-6" id="clearing">
<div class="description-block"> <div class="description-block">
@ -735,7 +737,7 @@
</a></div> </a></div>
</div> </div>
</div> </div>
<div class="list-group"> <div class="list-group" ng-if="role=='administrator'">
<div class="row" ng-if="('org'|withModule)||('manager_accounts'|withModule)||('sysconfig'|withModule)"> <div class="row" ng-if="('org'|withModule)||('manager_accounts'|withModule)||('sysconfig'|withModule)">
<div class="col-sm-2 col-lg-2 col-xs-6" id="org"> <div class="col-sm-2 col-lg-2 col-xs-6" id="org">
<div class="description-block"> <div class="description-block">
@ -792,7 +794,7 @@
</a></div> </a></div>
</div> </div>
</div> </div>
<div class="list-group"> <div class="list-group" ng-if="role=='administrator'">
<div class="row" ng-if="(('10'|withRole)&&('merchantIdManage'|withModule)) || (('device'|withModule)) ||('sysconfig'|withModule)"> <div class="row" ng-if="(('10'|withRole)&&('merchantIdManage'|withModule)) || (('device'|withModule)) ||('sysconfig'|withModule)">
<div class="col-sm-2 col-lg-2 col-xs-6" id="setting"> <div class="col-sm-2 col-lg-2 col-xs-6" id="setting">
<div class="description-block"> <div class="description-block">
@ -831,7 +833,7 @@
</a></div> </a></div>
</div> </div>
</div> </div>
<div class="list-group"> <div class="list-group" ng-if="role=='developer'">
<div class="row" ng-if="('log'|withModule) || ('dev'|withModule)"> <div class="row" ng-if="('log'|withModule) || ('dev'|withModule)">
<div class="col-sm-2 col-lg-2 col-xs-6" id="develop"> <div class="col-sm-2 col-lg-2 col-xs-6" id="develop">
<div class="description-block"> <div class="description-block">

@ -10,6 +10,8 @@ define(['angular', 'uiRouter', 'uiBootstrap'], function (angular) {
}]); }]);
app.controller('listMenuCtrl', ['$scope', '$http', '$filter','$uibModal','$location', '$anchorScroll','$stateParams', function ($scope, $http,$filter, $uibModal,$location, $anchorScroll,$stateParams) { app.controller('listMenuCtrl', ['$scope', '$http', '$filter','$uibModal','$location', '$anchorScroll','$stateParams', function ($scope, $http,$filter, $uibModal,$location, $anchorScroll,$stateParams) {
$scope.role = $stateParams["role"];
var gotohash = function (role) { var gotohash = function (role) {
switch (role) { switch (role) {
case "Compliance" : case "Compliance" :

Loading…
Cancel
Save