|
|
|
@ -6,14 +6,10 @@
|
|
|
|
|
module Developer {
|
|
|
|
|
export var KubeTaskController = controller("KubeTaskController", ["$scope", "$http", "$location", "$routeParams", "DataModel", "$templateCache", ($scope, $http, $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.subTabConfig = Developer.createCurrentSubNavBar($scope, $location, $routeParams);
|
|
|
|
|
|
|
|
|
|
$scope.tableConfig = {
|
|
|
|
|
data: 'model.data',
|
|
|
|
|
data: 'model.transferTasks',
|
|
|
|
|
showSelectionCheckbox: false,
|
|
|
|
|
enableRowClickSelection: false,
|
|
|
|
|
multiSelect: true,
|
|
|
|
@ -68,10 +64,13 @@ module Developer {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$scope.$on("deleteRow", (event, data) =>{
|
|
|
|
|
console.log("确认删除");
|
|
|
|
|
console.log(data);
|
|
|
|
|
if(data.status === 1)
|
|
|
|
|
console.log("无法删除");
|
|
|
|
|
else{
|
|
|
|
|
Configs.oracleInfoOperate($http, "/java/console/api/task", Configs.OperateType.DELETE, data, (data, status) =>{
|
|
|
|
|
|
|
|
|
|
Configs.oracleInfoOperate($http, "/java/console/api/task/transfer", Configs.OperateType.DELETE, data, (data, status) =>{
|
|
|
|
|
if(status === 200)
|
|
|
|
|
console.log("删除成功");
|
|
|
|
|
});
|
|
|
|
|