-新增功能

Web_Manager_Develope
wu ming 8 years ago
parent 228f229745
commit 3a23cc0b79

File diff suppressed because one or more lines are too long

@ -0,0 +1,7 @@
/// <reference path="../../includes.d.ts" />
/// <reference path="systemPlugin.d.ts" />
/// <reference path="systemHelpers.d.ts" />
/// <reference path="../../configs/ts/configsDataService.d.ts" />
declare module System {
var RegionalismCodeController: ng.IModule;
}

@ -0,0 +1,7 @@
/// <reference path="../../includes.d.ts" />
/// <reference path="systemPlugin.d.ts" />
/// <reference path="systemHelpers.d.ts" />
/// <reference path="../../configs/ts/configsDataService.d.ts" />
declare module System {
var SystemCodeController: ng.IModule;
}

@ -0,0 +1,9 @@
/// <reference path="../../includes.d.ts" />
/// <reference path="../../developer/ts/developerNavigation.d.ts" />
declare module System {
var pluginName: string;
var context: string;
var pluginPath: string;
var templatePath: string;
function shareInit($scope: any): void;
}

@ -0,0 +1,6 @@
/// <reference path="../../includes.d.ts" />
/// <reference path="systemPlugin.d.ts" />
/// <reference path="systemHelpers.d.ts" />
declare module System {
var SystemListController: ng.IModule;
}

@ -0,0 +1,10 @@
/// <reference path="../../includes.d.ts" />
/// <reference path="systemHelpers.d.ts" />
declare module System {
var _module: ng.IModule;
var controller: (name: string, inlineAnnotatedConstructor: any[]) => ng.IModule;
var route: (templateName: string, reloadOnSearch?: boolean) => {
templateUrl: string;
reloadOnSearch: boolean;
};
}

31
defs.d.ts vendored

@ -1,24 +1,15 @@
/// <reference path="d.ts/includes.d.ts"/>
/// <reference path="d.ts/configs/ts/configPlugin.d.ts"/>
/// <reference path="d.ts/configs/ts/configsDataService.d.ts"/>
/// <reference path="d.ts/developer/ts/developerNavigation.d.ts"/>
/// <reference path="d.ts/kubernetes/ts/kubernetesInterfaces.d.ts"/>
/// <reference path="d.ts/kubernetes/ts/utilHelpers.d.ts"/>
/// <reference path="d.ts/configs/ts/customAlert.d.ts"/>
/// <reference path="d.ts/kubernetes/ts/readPlacedivision.d.ts"/>
/// <reference path="d.ts/configs/ts/configPlugin.d.ts"/>
/// <reference path="d.ts/configs/ts/configsDataService.d.ts"/>
/// <reference path="d.ts/configs/ts/ConfigsHelper.d.ts"/>
/// <reference path="d.ts/kubernetes/ts/kubernetesHelpers.d.ts"/>
/// <reference path="d.ts/developer/ts/developerHelpers.d.ts"/>
/// <reference path="d.ts/developer/ts/dataManagerHelper.d.ts"/>
/// <reference path="d.ts/configs/ts/ConfigsHelper.d.ts"/>
/// <reference path="d.ts/configs/ts/configsUtils.d.ts"/>
/// <reference path="d.ts/kubernetes/ts/kubernetesPlugin.d.ts"/>
/// <reference path="d.ts/kubernetes/ts/watcher.d.ts"/>
/// <reference path="d.ts/kubernetes/ts/term.d.ts"/>
/// <reference path="d.ts/configs/ts/shareController.d.ts"/>
/// <reference path="d.ts/configs/ts/glusterfsSetting.d.ts"/>
/// <reference path="d.ts/configs/ts/kubeClusterSetting.d.ts"/>
/// <reference path="d.ts/configs/ts/regionalismCodeSearch.d.ts"/>
/// <reference path="d.ts/configs/ts/systemCodeSearch.d.ts"/>
/// <reference path="d.ts/developer/ts/developerPlugin.d.ts"/>
/// <reference path="d.ts/developer/ts/dataManagerModel.d.ts"/>
/// <reference path="d.ts/developer/ts/developerEnrichers.d.ts"/>
@ -27,6 +18,7 @@
/// <reference path="d.ts/developer/ts/home.d.ts"/>
/// <reference path="d.ts/developer/ts/jenkinsJob.d.ts"/>
/// <reference path="d.ts/developer/ts/jenkinsJobs.d.ts"/>
/// <reference path="d.ts/kubernetes/ts/kubernetesPlugin.d.ts"/>
/// <reference path="d.ts/kubernetes/ts/kubernetesModel.d.ts"/>
/// <reference path="d.ts/developer/ts/jenkinsLog.d.ts"/>
/// <reference path="d.ts/developer/ts/jenkinsMetrics.d.ts"/>
@ -39,6 +31,20 @@
/// <reference path="d.ts/developer/ts/projects.d.ts"/>
/// <reference path="d.ts/developer/ts/workspace.d.ts"/>
/// <reference path="d.ts/developer/ts/workspaces.d.ts"/>
/// <reference path="d.ts/configs/ts/configsUtils.d.ts"/>
/// <reference path="d.ts/kubernetes/ts/watcher.d.ts"/>
/// <reference path="d.ts/kubernetes/ts/term.d.ts"/>
/// <reference path="d.ts/configs/ts/shareController.d.ts"/>
/// <reference path="d.ts/configs/ts/glusterfsSetting.d.ts"/>
/// <reference path="d.ts/configs/ts/kubeClusterSetting.d.ts"/>
/// <reference path="d.ts/configs/ts/regionalismCodeSearch.d.ts"/>
/// <reference path="d.ts/configs/ts/systemCodeSearch.d.ts"/>
/// <reference path="d.ts/navigation/ts/navigationPlugin.d.ts"/>
/// <reference path="d.ts/system/ts/systemHelpers.d.ts"/>
/// <reference path="d.ts/system/ts/systemPlugin.d.ts"/>
/// <reference path="d.ts/system/ts/regionalismCodeSearch.d.ts"/>
/// <reference path="d.ts/system/ts/systemCodeSearch.d.ts"/>
/// <reference path="d.ts/system/ts/systemList.d.ts"/>
/// <reference path="d.ts/kubernetes/ts/apps.d.ts"/>
/// <reference path="d.ts/kubernetes/ts/breadcrumbs.d.ts"/>
/// <reference path="d.ts/kubernetes/ts/build.d.ts"/>
@ -79,4 +85,3 @@
/// <reference path="d.ts/kubernetes/ts/sharedControllers.d.ts"/>
/// <reference path="d.ts/kubernetes/ts/tabs.d.ts"/>
/// <reference path="d.ts/kubernetes/ts/templates.d.ts"/>
/// <reference path="d.ts/navigation/ts/navigationPlugin.d.ts"/>

File diff suppressed because one or more lines are too long

@ -249,7 +249,7 @@ gulp.task('connect', ['watch'], function() {
}, {
proto: "http",
port: "8080",
hostname: "192.168.191.9",
hostname: "192.168.191.5",
path: '/java/console/api',
targetPath: "/"
}];

@ -1,4 +1,4 @@
<div ng-controller="Configs.SystemCodeController">
<div ng-controller="System.SystemCodeController">
<div hawtio-breadcrumbs></div>
<div hawtio-tabs></div>
<div class="container-content ">

@ -0,0 +1,23 @@
<div ng-controller="System.RegionalismCodeController">
<div hawtio-breadcrumbs></div>
<div hawtio-tabs></div>
<div class="container-content ">
<div class="container-fluid sj_fluid">
<div ng-hide="model.regionalismInfo.length" class="align-center">
<p class="alert alert-info">当前没有可以查看的数据.</p>
</div>
<div ng-show="model.regionalismInfo.length">
<table ng-table="tableParams" class="table table-condensed table-bordered table-striped" show-filter="true">
<tr ng-repeat="row in $data">
<td title="'行政区划代码'" filter="{ code: 'text'}" sortable="'code'">
{{row.code}}</td>
<td title="'市'" filter="{ cityName: 'text'}" sortable="'cityName'">
{{row.cityName}}</td>
<td title="'区县'" filter="{ districtName: 'text'}" sortable="'districtName'">
{{row.districtName}}</td>
</tr>
</table>
</div>
</div>
</div>
</div>

@ -0,0 +1,21 @@
<div ng-controller="System.SystemCodeController">
<div hawtio-breadcrumbs></div>
<div hawtio-tabs></div>
<div class="container-content ">
<div class="container-fluid sj_fluid">
<div ng-hide="model.systemInfo.length" class="align-center">
<p class="alert alert-info">当前没有可以查看的数据.</p>
</div>
<div ng-show="model.systemInfo.length">
<table ng-table="tableParams" class="table table-condensed table-bordered table-striped" show-filter="true">
<tr ng-repeat="row in $data">
<td title="'系统编码'" filter="{ code: 'text'}" sortable="'code'">
{{row.code}}</td>
<td title="'系统名称'" filter="{ systemName: 'text'}" sortable="'systemName'">
{{row.systemName}}</td>
</tr>
</table>
</div>
</div>
</div>
</div>

@ -0,0 +1,4 @@
<div ng-controller="System.SystemListController">
<div hawtio-tabs></div>
<div class="container-content "></div>
</div>

@ -0,0 +1,19 @@
/// <reference path="../../includes.ts"/>
/// <reference path="systemPlugin.ts"/>
/// <reference path="systemHelpers.ts"/>\
/// <reference path="../../configs/ts/configsDataService.ts"/>
module System{
export var RegionalismCodeController = controller('RegionalismCodeController', ["$scope", "$templateCache", "$location", "$routeParams", "$http", "$timeout", 'ConfigsModel', 'NgTableParams',
($scope, $templateCache:ng.ITemplateCacheService, $location, $routeParams, $http, $timeout, ConfigsModel, NgTableParams) =>{
shareInit($scope);
$scope.model = ConfigsModel;
$scope.tableParams = new NgTableParams({count: 25}, {
counts: [25, 50, 100],
dataset: $scope.model.regionalismInfo
});
}]);
}

@ -0,0 +1,19 @@
/// <reference path="../../includes.ts"/>
/// <reference path="systemPlugin.ts"/>
/// <reference path="systemHelpers.ts"/>\
/// <reference path="../../configs/ts/configsDataService.ts"/>
module System{
export var SystemCodeController = controller('SystemCodeController', ["$scope", "$templateCache", "$location", "$routeParams", "$http", "$timeout", 'ConfigsModel', 'NgTableParams',
($scope, $templateCache:ng.ITemplateCacheService, $location, $routeParams, $http, $timeout, ConfigsModel, NgTableParams) =>{
shareInit($scope);
$scope.model = ConfigsModel;
$scope.tableParams = new NgTableParams({count: 25}, {
counts: [25, 50, 100],
dataset: $scope.model.systemInfo
});
}]);
}

@ -0,0 +1,39 @@
/// <reference path="../../includes.ts"/>
/// <reference path="../../developer/ts/developerNavigation.ts"/>
module System{
export var pluginName = "System";
export var context = "/system";
export var pluginPath = "plugins/system/"
export var templatePath = pluginPath + 'html/';
export function shareInit($scope){
//创建二级子菜单
$scope.subTabConfig = Developer.activateCurrent([
{
href: UrlHelpers.join(context, 'system-list'),
label: '信息系统清单',
title: '查看信息系统清单'
},
{
href: UrlHelpers.join(context, 'system-verification'),
label: '信息系统校验',
title: '校验信息系统'
},
{
href: UrlHelpers.join(context, 'system-help'),
label: '帮助',
title: '行政区划代码或系统代码检索',
items: [{
href: UrlHelpers.join(context, 'system-help', 'regionalism-search'),
title: '行政区划代码检索',
label: '行政区划检索'
},
{
href: UrlHelpers.join(context, 'system-help', 'system-search'),
title: '系统代码检索',
label: '系统代码检索'
}]
}]);
}
}

@ -0,0 +1,9 @@
/// <reference path="../../includes.ts"/>
/// <reference path="systemPlugin.ts"/>
/// <reference path="systemHelpers.ts"/>
module System{
export var SystemListController = controller('SystemListController', ['$scope', ($scope) => {
shareInit($scope);
}])
}

@ -0,0 +1,42 @@
/// <reference path="../../includes.ts"/>
/// <reference path="systemHelpers.ts"/>
module System{
export var _module = angular.module(pluginName, ['hawtio-core', 'hawtio-ui', 'ui.codemirror', 'ui.validate','kubernetesUI']);
export var controller = PluginHelpers.createControllerFunction(_module, pluginName);
export var route = PluginHelpers.createRoutingFunction(templatePath);
/*
*/
_module.config(['$provide', '$routeProvider', ($provide, $routeProvider) =>{
$routeProvider.when(UrlHelpers.join(context, '/'), route('systemList.html', false))
.when(UrlHelpers.join(context, 'system-list'), route('systemList.html', false))
.when(UrlHelpers.join(context, 'system-help'), route('regionalismCodeSearch.html', false))
.when(UrlHelpers.join(context, 'system-help', 'regionalism-search'), route('regionalismCodeSearch.html', false))
.when(UrlHelpers.join(context, 'system-help', 'system-search'), route('systemCodeSearch.html', false))
.when(context, {redirectTo: UrlHelpers.join(context, 'system-list')});
}]);
/*
*/
_module.run(['viewRegistry', '$templateCache', 'HawtioNav', '$compile', (viewRegistry, $templateCache:ng.ITemplateCacheService, HawtioNav, $compile:ng.ICompileService) => {
viewRegistry['config'] = templatePath + "shareLayout.html";
/*
*/
var builder = HawtioNav.builder();
var systemTab = builder.id('systemTab')
.rank(10)
.href(() => context)
.title(() => '信息系统')
//.isValid(() => !Core.isRemoteConnection())
.build();
HawtioNav.add(systemTab);
}]);
// 加载模块
hawtioPluginLoader.addModule(pluginName);
}

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save