fix v2-manager.html header display

master
luoyang 6 years ago
parent f7a229cddd
commit e1e6f8a8c5

@ -9,22 +9,22 @@ define(['angular', 'angularSanitize', 'angularAnimate', 'angularMessages', 'uiRo
var getRoleMenulist = function () { var getRoleMenulist = function () {
var roleMenu = []; var roleMenu = [];
if ((window.currentUser.role.toString(2) | 1) >0){ if ((window.currentUser.role.toString(2) & 1) >0){
roleMenu.push("administrator"); roleMenu.push("administrator");
} }
if ((window.currentUser.role.toString(2) | 10) >0){ if ((window.currentUser.role.toString(2) & 10) >0){
roleMenu.push("compliance"); roleMenu.push("compliance");
} }
if ((window.currentUser.role.toString(2) | 100) >0){ if ((window.currentUser.role.toString(2) & 100) >0){
roleMenu.push("bduser"); roleMenu.push("bduser");
} }
if ((window.currentUser.role.toString(2) | 1000) >0){ if ((window.currentUser.role.toString(2) & 1000) >0){
roleMenu.push("accountant"); roleMenu.push("accountant");
} }
if ((window.currentUser.role.toString(2) | 1000000) >0){ if ((window.currentUser.role.toString(2) & 1000000) >0){
roleMenu.push("director"); roleMenu.push("director");
} }
if ((window.currentUser.role.toString(2) | 10000000) >0){ if ((window.currentUser.role.toString(2) & 10000000) >0){
roleMenu.push("sitemanager"); roleMenu.push("sitemanager");
} }
if ((window.currentUser.role.toString(2) & 100000000) >0){ if ((window.currentUser.role.toString(2) & 100000000) >0){
@ -64,8 +64,14 @@ define(['angular', 'angularSanitize', 'angularAnimate', 'angularMessages', 'uiRo
app.controller('managerIndexCtrl', ['$scope', '$rootScope', '$http', '$log', '$timeout', '$interval', '$uibModal', '$filter', 'myLoginLogView', 'commonDialog', app.controller('managerIndexCtrl', ['$scope', '$rootScope', '$http', '$log', '$timeout', '$interval', '$uibModal', '$filter', 'myLoginLogView', 'commonDialog',
function ($scope, $rootScope, $http, $log, $timeout, $interval, $uibModal, $filter, myLoginLogView, commonDialog) { function ($scope, $rootScope, $http, $log, $timeout, $interval, $uibModal, $filter, myLoginLogView, commonDialog) {
if (sessionStorage.getItem('roleNum') =='N'){ if (sessionStorage.getItem('roleNum') =='N'){
$scope.headerDisplay = false; if (window.location.hash == "" || window.location.hash == "#/home") {
$scope.copyright = false; $scope.headerDisplay = false;
$scope.copyright = false;
}else {
$scope.headerDisplay = true;
$scope.copyright = true;
}
}else { }else {
$scope.headerDisplay = true; $scope.headerDisplay = true;
$scope.copyright = true; $scope.copyright = true;

Loading…
Cancel
Save