diff --git a/d.ts/configs/ts/ConfigsHelper.d.ts b/d.ts/configs/ts/ConfigsHelper.d.ts index 3f0e5b72..cf3e58ea 100644 --- a/d.ts/configs/ts/ConfigsHelper.d.ts +++ b/d.ts/configs/ts/ConfigsHelper.d.ts @@ -1,6 +1,7 @@ /// /// /// +/// declare module Configs { class OperateType { static DELETE: string; diff --git a/d.ts/developer/ts/fileMigrationTask.d.ts b/d.ts/developer/ts/fileMigrationTask.d.ts index d2610a76..dd244e61 100644 --- a/d.ts/developer/ts/fileMigrationTask.d.ts +++ b/d.ts/developer/ts/fileMigrationTask.d.ts @@ -2,6 +2,7 @@ /// /// /// +/// declare module Developer { var KubeTaskController: ng.IModule; } diff --git a/d.ts/kubernetes/ts/kubernetesHelpers.d.ts b/d.ts/kubernetes/ts/kubernetesHelpers.d.ts index 60713d48..9e927f09 100644 --- a/d.ts/kubernetes/ts/kubernetesHelpers.d.ts +++ b/d.ts/kubernetes/ts/kubernetesHelpers.d.ts @@ -206,7 +206,7 @@ declare module Kubernetes { function currentUserName(): any; function createNamespace(ns: any, client?: any): void; function createRC(obj: any, onCompleteFn?: any): void; - function connectOracle($http: any, $timeout: any, url: any, operation: any, rcName: any, delayTime: any): void; + function connectOracle($http: any, $timeout: any, url: any, operation: any, replicas: any, delayTime: any): void; function getOracleStatus(labels: any): number; function getExtractStatus(labels: any): number; function getOracleName(name: string): string; diff --git a/data_manager.rar b/data_manager.rar deleted file mode 100644 index 8b36357c..00000000 Binary files a/data_manager.rar and /dev/null differ diff --git a/defs.d.ts b/defs.d.ts index 70ce9398..a217d10a 100644 --- a/defs.d.ts +++ b/defs.d.ts @@ -1,14 +1,14 @@ /// /// /// +/// +/// /// /// /// /// /// /// -/// -/// /// /// /// @@ -34,6 +34,7 @@ /// /// /// +/// /// /// /// @@ -76,4 +77,3 @@ /// /// /// -/// diff --git a/plugins/configs/ts/ConfigsHelper.ts b/plugins/configs/ts/ConfigsHelper.ts index 57c27bb3..bc39ebd4 100644 --- a/plugins/configs/ts/ConfigsHelper.ts +++ b/plugins/configs/ts/ConfigsHelper.ts @@ -1,6 +1,7 @@ /// /// /// +/// module Configs{ export class OperateType{ public static get DELETE():string {return "delete"} @@ -57,8 +58,7 @@ module Configs{ } export function shareInit($scope, $location, $routeParams){ - $scope.subTabConfig = createConfigBreadcrumbs($scope, $location, $routeParams); - $scope.model.updateAllData(); + $scope. subTabConfig = Developer.createCurrentSubNavBar($scope, $location, $routeParams); } export function createNewObejct(array:Array, obj){ @@ -98,7 +98,14 @@ module Configs{ $http({ method: "POST", url: RESTfulUrl, - params: resource + params: resource, + headers: { 'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8'}, + transformRequest: function(obj) { + var str = []; + for(var p in obj) + str.push(encodeURIComponent(p) + "=" + encodeURIComponent(obj[p])); + return str.join("&"); + }, }).success(function(data, status, headers, config) { //成功之后做一些事情 if(angular.isFunction(fn)) diff --git a/plugins/configs/ts/fileMigrationTask.html b/plugins/configs/ts/fileMigrationTask.html deleted file mode 100644 index e69de29b..00000000 diff --git a/plugins/configs/ts/kubeClusterSetting.ts b/plugins/configs/ts/kubeClusterSetting.ts index 023a809c..ae272fa7 100644 --- a/plugins/configs/ts/kubeClusterSetting.ts +++ b/plugins/configs/ts/kubeClusterSetting.ts @@ -2,12 +2,12 @@ /// /// /// + module Configs{ export var KubeController = controller('KubeController', ["$scope", "$templateCache", "$location", "$routeParams", "$http", "$timeout","ConfigsModel", - ($scope, $templateCache:ng.ITemplateCacheService, $location, $routeParams, $http, $timeout, ConfigsModel) => { - - $scope.model= ConfigsModel; + ($scope, $templateCache:ng.ITemplateCacheService, $location, $routeParams, $http, $timeout, ConfigsModel) => { + $scope.model= ConfigsModel; $scope.tableConfig={ data: 'model.oracleParam', selectedItems: [], @@ -81,7 +81,7 @@ module Configs{ $scope.onSubmit = () => { $scope.edit = false; $scope.add = false; - oracleInfoOperate($http, "/java/console/api/oracle", OperateType.UPDATE, createOracleInfo($scope.tableForm, $scope.rowId), (result, status) => { + oracleInfoOperate($http, "/java/console/api/oracle", OperateType.UPDATE, createOracleInfo($scope.tableForm, $scope.rowId), (result, status) => { if(status===200){ $scope.model.updateOracleParam(); }else{ diff --git a/plugins/developer/html/workspaces.html b/plugins/developer/html/workspaces.html index ac332bba..be6334cd 100644 --- a/plugins/developer/html/workspaces.html +++ b/plugins/developer/html/workspaces.html @@ -1,15 +1,14 @@ -
+
-
- -
+
- +