parent
85a9d2dfae
commit
3ac5b5516e
@ -1,5 +1,5 @@
|
||||
/// <reference path="../../includes.d.ts" />
|
||||
/// <reference path="configPlugin.d.ts" />
|
||||
declare module Configs {
|
||||
var EableEdit: ng.IModule;
|
||||
var TableEdit: ng.IModule;
|
||||
}
|
||||
|
@ -1,5 +1,6 @@
|
||||
/// <reference path="../../includes.d.ts" />
|
||||
/// <reference path="developerNavigation.d.ts" />
|
||||
/// <reference path="developerHelpers.d.ts" />
|
||||
declare module Developer {
|
||||
function createCurrentSubNavBar($scope: any, $location: any, $routeParams: any): any;
|
||||
}
|
||||
|
@ -1,5 +1,7 @@
|
||||
/// <reference path="../../includes.d.ts" />
|
||||
/// <reference path="developerPlugin.d.ts" />
|
||||
/// <reference path="dataManagerModel.d.ts" />
|
||||
/// <reference path="dataManagerHelper.d.ts" />
|
||||
declare module Developer {
|
||||
var KubeTaskController: ng.IModule;
|
||||
}
|
||||
|
File diff suppressed because one or more lines are too long
@ -1,7 +1,65 @@
|
||||
/// <reference path="../../includes.ts"/>
|
||||
/// <reference path="developerPlugin.ts"/>
|
||||
/// <reference path="dataManagerModel.ts"/>
|
||||
/// <reference path="dataManagerHelper.ts"/>
|
||||
module Developer {
|
||||
export var KubeTaskController = controller("KubeTaskController", ["$scope", ($scope) => {
|
||||
export var KubeTaskController = controller("KubeTaskController", ["$scope", "$location", "$routeParams", "DataModel", "$templateCache", ($scope, $location, $routeParams, DataModel, $templateCache) => {
|
||||
$scope.model = DataModel;
|
||||
$scope.subTabConfig = Developer.createCurrentSubNavBar($scope, $location, $routeParams);
|
||||
$scope.model.data = [{_key: 2, name: "南京市-玄武区", labels:{system: 34, batch: 2}, status: 1, process:75},
|
||||
{_key: 4, name: "南京市-雨花区", labels:{system: 14, batch: 1}, status: 0, process:0},
|
||||
{_key: 5, name: "南京市-六合区", labels:{system: 76, batch: 1}, status: 2, process:100},
|
||||
{_key: 6, name: "南京市-浦口区", labels:{system: 76, batch: 1}, status: 3, process:97}];
|
||||
|
||||
$scope.tableConfig = {
|
||||
data: 'model.data',
|
||||
showSelectionCheckbox: false,
|
||||
enableRowClickSelection: false,
|
||||
multiSelect: true,
|
||||
selectedItems: [],
|
||||
filterOptions: {
|
||||
filterText: $location.search()["q"] || ''
|
||||
},
|
||||
columnDefs: [{
|
||||
field: "_key",
|
||||
displayName: '编码',
|
||||
customSortField: (field) =>{
|
||||
return field.id;
|
||||
}
|
||||
},
|
||||
{
|
||||
field: "name",
|
||||
displayName: '市-区/县'
|
||||
},
|
||||
{
|
||||
field: "systemName",
|
||||
displayName: '系统名称'
|
||||
},
|
||||
{
|
||||
field: "labels",
|
||||
displayName: '数据标签',
|
||||
cellTemplate: $templateCache.get("dataLabelsTemplate.html")
|
||||
},
|
||||
{
|
||||
field: "status",
|
||||
displayName: '迁移状态',
|
||||
cellTemplate: $templateCache.get("taskStatus.html")
|
||||
},
|
||||
{
|
||||
field: "process",
|
||||
displayName: '迁移进度',
|
||||
cellTemplate: $templateCache.get("taskProcess.html")
|
||||
},
|
||||
{
|
||||
field: "entity",
|
||||
displayName: '操作',
|
||||
cellTemplate: $templateCache.get("taskEdit.html")
|
||||
}
|
||||
]};
|
||||
|
||||
|
||||
$scope.$on("deleteRow", (event, data) =>{
|
||||
console.log("删除任务");
|
||||
});
|
||||
}]);
|
||||
}
|
||||
|
@ -1,16 +0,0 @@
|
||||
<div ng-controller="Developer.KubeTaskController">
|
||||
<div class="row">
|
||||
<div hawtio-breadcrumbs></div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div hawtio-tabs></div>
|
||||
</div>
|
||||
<div class="container-content ">
|
||||
<div class="row align-center mb10" ng-hide="model.oracleParam.length">
|
||||
<p class="alert alert-info">当前没有可以查看的任务列表!</p>
|
||||
</div>
|
||||
<div class="row mb10" ng-show="model.oracleParam.length">
|
||||
<table class="table table-bordered table-striped sj_content_table" hawtio-simple-table="tableConfig" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
Loading…
Reference in new issue