Commit 4a9545c8 authored by frank.xa.zhang's avatar frank.xa.zhang

move org to front -- frank

parent 0c231b42
...@@ -5,7 +5,7 @@ var app = angular.module('app', ['ui.tree', 'ui.bootstrap', 'ui.bootstrap.tpls', ...@@ -5,7 +5,7 @@ var app = angular.module('app', ['ui.tree', 'ui.bootstrap', 'ui.bootstrap.tpls',
'ngRoute', 'ngCookies', 'ngSanitize', 'ct.ui.router.extras', 'chieffancypants.loadingBar', 'ngDraggable', 'ngFileUpload', 'LocalStorageModule', 'exceptionless', 'ngRoute', 'ngCookies', 'ngSanitize', 'ct.ui.router.extras', 'chieffancypants.loadingBar', 'ngDraggable', 'ngFileUpload', 'LocalStorageModule', 'exceptionless',
'app.config', 'app.common', 'app.webservices', 'app.framework', 'app.vat', 'app.invoice', 'app.cit', "app.dataImport", 'app.assetsManage', 'app.taxDocumentManage','app.backlogManage', 'app.config', 'app.common', 'app.webservices', 'app.framework', 'app.vat', 'app.invoice', 'app.cit', "app.dataImport", 'app.assetsManage', 'app.taxDocumentManage','app.backlogManage',
'app.taxTaskManage', 'pasvaz.bindonce', 'app.vatDashboard', 'app.vatDongfeng', 'vs-repeat', 'ivh.treeview', 'angular-cache', 'app.cache', 'angularBootstrapNavTree', 'app.taxTaskManage', 'pasvaz.bindonce', 'app.vatDashboard', 'app.vatDongfeng', 'vs-repeat', 'ivh.treeview', 'angular-cache', 'app.cache', 'angularBootstrapNavTree',
'ngAnimate', 'cgNotify', 'dx', 'ngNumeraljs', 'app.noPermissionPage','app.dataImp','app.analysis']) 'ngAnimate', 'cgNotify', 'dx', 'ngNumeraljs', 'app.noPermissionPage','app.dataImp','app.analysis','app.infrastructure'])
//run blocks are executed after the injector is created and are the first //run blocks are executed after the injector is created and are the first
//methods that are executed in any Angular app. //methods that are executed in any Angular app.
.run(['$log', '$http', 'CacheFactory', 'userService', 'loginContext', '$rootScope', 'vatSessionService', '$q', function ($log, $http, CacheFactory, userService, loginContext, $rootScope, vatSessionService, $q) { .run(['$log', '$http', 'CacheFactory', 'userService', 'loginContext', '$rootScope', 'vatSessionService', '$q', function ($log, $http, CacheFactory, userService, loginContext, $rootScope, vatSessionService, $q) {
...@@ -280,6 +280,7 @@ var app = angular.module('app', ['ui.tree', 'ui.bootstrap', 'ui.bootstrap.tpls', ...@@ -280,6 +280,7 @@ var app = angular.module('app', ['ui.tree', 'ui.bootstrap', 'ui.bootstrap.tpls',
taxDocumentList: 'taxDocumentList', taxDocumentList: 'taxDocumentList',
backlogManage: 'backlogManage', backlogManage: 'backlogManage',
noPermissionPage: 'noPermissionPage', noPermissionPage: 'noPermissionPage',
infrastructure: 'infrastructure',
/// <summary> /// <summary>
/// async load translation tables into application for specified part names that required for the view. /// async load translation tables into application for specified part names that required for the view.
/// </summary> /// </summary>
......
...@@ -40,6 +40,14 @@ var commonModule = angular.module('app.common', ['pascalprecht.translate', 'ngAn ...@@ -40,6 +40,14 @@ var commonModule = angular.module('app.common', ['pascalprecht.translate', 'ngAn
type: 'text/css' type: 'text/css'
}]; }];
this.infrastructure = [{
url: '/bundles/infrastructure.js?v=' + version,
type: 'text/javascript'
}, {
url: '/bundles/infrastructure.less?v=' + version,
type: 'text/css'
}];
this.cit = [{ this.cit = [{
url: '/bundles/cit.js?v=' + version, url: '/bundles/cit.js?v=' + version,
type: 'text/javascript' type: 'text/javascript'
......
...@@ -160,4 +160,36 @@ var dataImportModule = angular.module('app.dataImport', []) ...@@ -160,4 +160,36 @@ var dataImportModule = angular.module('app.dataImport', [])
deepStateRedirect: true, deepStateRedirect: true,
sticky: true sticky: true
}); });
}]);
var infrastructureModule = angular.module('app.infrastructure', ["isteven-multi-select", 'ui.grid', 'ui.grid.selection', 'ui.grid.selection', 'ui.grid.treeView', 'dx', 'perfect_scrollbar', 'ngMaterial', 'app.common'])
.run(['$log', function ($log) {
$log.debug('app.infrastructure.run()...');
}])
.config(['$controllerProvider', '$compileProvider', '$filterProvider', '$provide', 'scriptDependencyProvider', '$stateProvider', '$stickyStateProvider',
function ($controllerProvider, $compileProvider, $filterProvider, $provide, scriptDependencyProvider, $stateProvider, $stickyStateProvider) {
'use strict';
// this is required to add controller/directive/filter/service after angular bootstrap
bindModule(infrastructureModule, $controllerProvider, $compileProvider, $filterProvider, $provide);
$stateProvider.state({
name: 'organization',
url: '/organization',
views: {
'@': {
controller: ['$scope', '$stateParams', 'appTranslation',
function ($scope, $stateParams, appTranslation) {
appTranslation.load([appTranslation.infrastructure]);
}],
template: '<organization-manage></organization-manage>'
}
},
resolve: scriptDependencyProvider.createDependenciesMap(scriptDependencyProvider.infrastructure),
deepStateRedirect: true,
sticky: true
});
$stickyStateProvider.enableDebug(true);
}]); }]);
\ No newline at end of file
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
$scope.expanded = false; $scope.expanded = false;
$scope.showOrgs = true; $scope.showOrgs = true;
$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);
...@@ -3239,6 +3240,7 @@ ...@@ -3239,6 +3240,7 @@
bindingOptions: { bindingOptions: {
dataSource: 'DataGridSource' dataSource: 'DataGridSource'
}, },
height:700,
showBorders: true, showBorders: true,
paging: { paging: {
pageSize: constant.page.logPageSize pageSize: constant.page.logPageSize
...@@ -3809,10 +3811,12 @@ ...@@ -3809,10 +3811,12 @@
$scope.showOrgs = false; $scope.showOrgs = false;
console.log(org); console.log(org);
$scope.selectCompany = org; $scope.selectCompany = org;
$scope.ShowSingle = true;
}; };
$scope.showAll = function () { $scope.showAll = function () {
$scope.showOrgs = true; $scope.showOrgs = true;
$scope.ShowSingle = false;
$scope.selectCompany = {}; $scope.selectCompany = {};
}; };
......
...@@ -73,7 +73,7 @@ ...@@ -73,7 +73,7 @@
</div> </div>
</div> </div>
</div> </div>
<div class="detail-info" ng-if="selectCompany.name"> <div class="detail-info" ng-if="ShowSingle">
<div class="company-detail"> <div class="company-detail">
<div class="org-title"> <div class="org-title">
<div class="company-detail-left"> <div class="company-detail-left">
...@@ -490,8 +490,8 @@ ...@@ -490,8 +490,8 @@
</div> </div>
<operate-log is-show="isShowLog"></operate-log> <operate-log is-show="isShowLog"></operate-log>
<!--<edit-organization-modal operate-type="orgOperateType" is-update="isOrgUpdate"--> <edit-organization-modal operate-type="orgOperateType" is-update="isOrgUpdate"
<!--selected-organization="selectedOrg" dimension-id="showAttributeDimensionID"></edit-organization-modal>--> selected-organization="selectedOrg" dimension-id="showAttributeDimensionID"></edit-organization-modal>
<!--<edit-equity-modal operate-type="equityEditOperateType" is-update="isEquityUpdate"--> <!--<edit-equity-modal operate-type="equityEditOperateType" is-update="isEquityUpdate"-->
<!--selected-organization="selectedOrg"></edit-equity-modal>--> <!--selected-organization="selectedOrg"></edit-equity-modal>-->
<!--<edit-equity-change-modal operate-type="equityChangeOperateType" is-update="isEquityChange"--> <!--<edit-equity-change-modal operate-type="equityChangeOperateType" is-update="isEquityChange"-->
......
...@@ -10,6 +10,7 @@ ...@@ -10,6 +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;
@container-margin: 5px; @container-margin: 5px;
@left-container: 273px; @left-container: 273px;
@gutter-width: 25px; @gutter-width: 25px;
...@@ -34,6 +35,29 @@ ...@@ -34,6 +35,29 @@
.system-manage { .system-manage {
background-color: @little-white; background-color: @little-white;
.menu-header {
height:60px;
background-color: white;
//左侧标题
.menu-title {
width: 200px;
height: 40px;
padding: 18px 0 0 30px;
font-size: medium;
display: inline-block;
float: left;
}
//右侧日志图标
.menu-log {
padding-left: 20px;
padding-top: 10px;
display: inline-block;
float: right;
margin-right: 15px;
}
}
.content-container { .content-container {
.org-manage-no-data { .org-manage-no-data {
width: 200px; width: 200px;
...@@ -86,6 +110,7 @@ ...@@ -86,6 +110,7 @@
margin-top: 9px; margin-top: 9px;
overflow-y: auto; overflow-y: auto;
height: calc(~"100% - 150px"); height: calc(~"100% - 150px");
max-height: @orgpage-tree-container-max-heght;
.orgpage-tree .angular-ui-tree-handle { .orgpage-tree .angular-ui-tree-handle {
margin-bottom: 0px; margin-bottom: 0px;
......
...@@ -644,11 +644,7 @@ var infrastructureModule = angular.module('app.infrastructure', ["isteven-multi- ...@@ -644,11 +644,7 @@ var infrastructureModule = angular.module('app.infrastructure', ["isteven-multi-
sticky: true sticky: true
}); });
$stickyStateProvider.enableDebug(true); $stickyStateProvider.enableDebug(true);
}]); }]);
//basicDataModule module create //basicDataModule module create
......
...@@ -28,8 +28,8 @@ ...@@ -28,8 +28,8 @@
</a> </a>
</div> </div>
<div class="nav-element-left" ng-if="menuEntityManagementShow"> <div class="nav-element-left" ng-if="menuEntityManagementShow">
<a ui-sref="entityManagement"> <a ui-sref="organization">
<span class="nav-icon-color">{{'MenuEntityManagement' | translate}}</span> <span class="nav-icon-color">{{'EntityManagement' | translate}}</span>
</a> </a>
</div> </div>
......
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