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;
|
||||
};
|
||||
}
|
File diff suppressed because one or more lines are too long
@ -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…
Reference in new issue