Commit bff1ff2e authored by frank.xa.zhang's avatar frank.xa.zhang

fixed main page-- frank

parent 1ba97ecc
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
$scope.expanded = false; $scope.expanded = false;
$scope.showOrgs = true; $scope.showOrgs = true;
$scope.ShowSingle=false; $scope.ShowSingle = false;
$scope.startDate = new Date(2019, 0, 1); $scope.startDate = new Date(2019, 0, 1);
$scope.endDate = new Date(2019, 11, 31); $scope.endDate = new Date(2019, 11, 31);
...@@ -1990,7 +1990,7 @@ ...@@ -1990,7 +1990,7 @@
// console.log($scope.DataGridSource); // console.log($scope.DataGridSource);
// console.log($scope.orgUserGridOptions); // console.log($scope.orgUserGridOptions);
$scope.oldData = angular.copy(data); $scope.oldData = angular.copy(data);
// $scope.setGridHeight(); $scope.setGridHeight();
} }
}); });
}; };
...@@ -3240,7 +3240,7 @@ ...@@ -3240,7 +3240,7 @@
bindingOptions: { bindingOptions: {
dataSource: 'DataGridSource' dataSource: 'DataGridSource'
}, },
height:700, // height:700,
showBorders: true, showBorders: true,
paging: { paging: {
pageSize: constant.page.logPageSize pageSize: constant.page.logPageSize
...@@ -3828,8 +3828,15 @@ ...@@ -3828,8 +3828,15 @@
//showUserTab(); //showUserTab();
checkUserPermission(); checkUserPermission();
loadDatagrid(); loadDatagrid();
$scope.location = $scope.$root.currentLanguage;
$timeout(function () { $timeout(function () {
$scope.isLoadComplete = true; $scope.isLoadComplete = true;
if ($scope.location) {
$scope.showHeader = false;
}
else {
$scope.showHeader = true;
}
}, 500); }, 500);
})(); })();
} }
......
<div class="system-manage"> <div class="system-manage">
<div class="menu-header"> <div class="menu-header" ng-if="showHeader">
<div class="menu-title">{{'OrganizationManage' | translate}}</div> <div class="menu-title">{{'OrganizationManage' | translate}}</div>
<div class="menu-log"> <div class="menu-log">
<!--<a class="btn btn-not-important" href="javascript:void(0)" ng-click="showOperateLogPop()"> </a>--> <!--<a class="btn btn-not-important" href="javascript:void(0)" ng-click="showOperateLogPop()"> </a>-->
......
...@@ -21,8 +21,12 @@ ...@@ -21,8 +21,12 @@
var contentHeaderHeight = parseInt($(contentHeader).css('height').replace('px', '')); var contentHeaderHeight = parseInt($(contentHeader).css('height').replace('px', ''));
var pageHeight = parseInt($(pageWrapSelector).css('height').replace('px', '')); var pageHeight = parseInt($(pageWrapSelector).css('height').replace('px', ''));
var menuHeight = parseInt($(menuSelector).css('height').replace('px', '')); var menuHeight = 0;
var height = pageHeight - menuHeight - contentHeaderHeight - 40 + 'px'; if (!scope.location) {
menuHeight = parseInt($(menuSelector).css('height').replace('px', ''));
}
var height = pageHeight - menuHeight - contentHeaderHeight - 50 + 'px';
$(dxGridSelctor).css('max-height', height); $(dxGridSelctor).css('max-height', height);
}; };
...@@ -40,13 +44,13 @@ ...@@ -40,13 +44,13 @@
// $rootScope.$broadcast(enums.vatEvent.layoutChanged, {}); // $rootScope.$broadcast(enums.vatEvent.layoutChanged, {});
//}, 700); //}, 700);
} }
}) })
} }
}; };
} }
]); ]);
infrastructureModule.directive('taxPayerNumberUnique', ['$q','orgService',function ($q, orgService) { infrastructureModule.directive('taxPayerNumberUnique', ['$q', 'orgService', function ($q, orgService) {
return { return {
require: 'ngModel', require: 'ngModel',
link: function (scope, elm, attrs, ctrl) { link: function (scope, elm, attrs, ctrl) {
...@@ -78,7 +82,7 @@ infrastructureModule.directive('taxPayerNumberUnique', ['$q','orgService',functi ...@@ -78,7 +82,7 @@ infrastructureModule.directive('taxPayerNumberUnique', ['$q','orgService',functi
} }
}]); }]);
infrastructureModule.directive('codeUnique', ['$q','orgService',function ($q, orgService) { infrastructureModule.directive('codeUnique', ['$q', 'orgService', function ($q, orgService) {
return { return {
require: 'ngModel', require: 'ngModel',
link: function (scope, elm, attrs, ctrl) { link: function (scope, elm, attrs, ctrl) {
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
@orange-color: #D55C1B; @orange-color: #D55C1B;
@org-content-min-height: 664px; @org-content-min-height: 664px;
@orgpage-tree-container-heght: 500px; @orgpage-tree-container-heght: 500px;
@orgpage-tree-container-max-heght: 700px; @orgpage-tree-container-max-heght: 780px;
@container-margin: 5px; @container-margin: 5px;
@left-container: 273px; @left-container: 273px;
@gutter-width: 25px; @gutter-width: 25px;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment