--修复bug
This commit is contained in:
parent
58469239ca
commit
0698be5104
|
@ -1,15 +1,22 @@
|
||||||
/// <reference path="d.ts/includes.d.ts"/>
|
/// <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/developer/ts/developerNavigation.d.ts"/>
|
||||||
/// <reference path="d.ts/kubernetes/ts/kubernetesInterfaces.d.ts"/>
|
/// <reference path="d.ts/kubernetes/ts/kubernetesInterfaces.d.ts"/>
|
||||||
/// <reference path="d.ts/kubernetes/ts/utilHelpers.d.ts"/>
|
/// <reference path="d.ts/kubernetes/ts/utilHelpers.d.ts"/>
|
||||||
/// <reference path="d.ts/configs/ts/customAlert.d.ts"/>
|
/// <reference path="d.ts/configs/ts/customAlert.d.ts"/>
|
||||||
/// <reference path="d.ts/kubernetes/ts/readPlacedivision.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/kubernetes/ts/kubernetesHelpers.d.ts"/>
|
||||||
/// <reference path="d.ts/developer/ts/developerHelpers.d.ts"/>
|
/// <reference path="d.ts/developer/ts/developerHelpers.d.ts"/>
|
||||||
/// <reference path="d.ts/developer/ts/dataManagerHelper.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/developer/ts/developerPlugin.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/dataManagerModel.d.ts"/>
|
||||||
/// <reference path="d.ts/developer/ts/developerEnrichers.d.ts"/>
|
/// <reference path="d.ts/developer/ts/developerEnrichers.d.ts"/>
|
||||||
|
@ -18,7 +25,6 @@
|
||||||
/// <reference path="d.ts/developer/ts/home.d.ts"/>
|
/// <reference path="d.ts/developer/ts/home.d.ts"/>
|
||||||
/// <reference path="d.ts/developer/ts/jenkinsJob.d.ts"/>
|
/// <reference path="d.ts/developer/ts/jenkinsJob.d.ts"/>
|
||||||
/// <reference path="d.ts/developer/ts/jenkinsJobs.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/kubernetes/ts/kubernetesModel.d.ts"/>
|
||||||
/// <reference path="d.ts/developer/ts/jenkinsLog.d.ts"/>
|
/// <reference path="d.ts/developer/ts/jenkinsLog.d.ts"/>
|
||||||
/// <reference path="d.ts/developer/ts/jenkinsMetrics.d.ts"/>
|
/// <reference path="d.ts/developer/ts/jenkinsMetrics.d.ts"/>
|
||||||
|
@ -31,12 +37,6 @@
|
||||||
/// <reference path="d.ts/developer/ts/projects.d.ts"/>
|
/// <reference path="d.ts/developer/ts/projects.d.ts"/>
|
||||||
/// <reference path="d.ts/developer/ts/workspace.d.ts"/>
|
/// <reference path="d.ts/developer/ts/workspace.d.ts"/>
|
||||||
/// <reference path="d.ts/developer/ts/workspaces.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/kubernetes/ts/apps.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/breadcrumbs.d.ts"/>
|
||||||
/// <reference path="d.ts/kubernetes/ts/build.d.ts"/>
|
/// <reference path="d.ts/kubernetes/ts/build.d.ts"/>
|
||||||
|
@ -77,7 +77,6 @@
|
||||||
/// <reference path="d.ts/kubernetes/ts/sharedControllers.d.ts"/>
|
/// <reference path="d.ts/kubernetes/ts/sharedControllers.d.ts"/>
|
||||||
/// <reference path="d.ts/kubernetes/ts/tabs.d.ts"/>
|
/// <reference path="d.ts/kubernetes/ts/tabs.d.ts"/>
|
||||||
/// <reference path="d.ts/kubernetes/ts/templates.d.ts"/>
|
/// <reference path="d.ts/kubernetes/ts/templates.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/systemHelpers.d.ts"/>
|
||||||
/// <reference path="d.ts/system/ts/systemPlugin.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/regionalismCodeSearch.d.ts"/>
|
||||||
|
@ -86,3 +85,4 @@
|
||||||
/// <reference path="d.ts/system/ts/systemCodeSearch.d.ts"/>
|
/// <reference path="d.ts/system/ts/systemCodeSearch.d.ts"/>
|
||||||
/// <reference path="d.ts/system/ts/systemList.d.ts"/>
|
/// <reference path="d.ts/system/ts/systemList.d.ts"/>
|
||||||
/// <reference path="d.ts/system/ts/systemVerification.d.ts"/>
|
/// <reference path="d.ts/system/ts/systemVerification.d.ts"/>
|
||||||
|
/// <reference path="d.ts/navigation/ts/navigationPlugin.d.ts"/>
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -14,7 +14,6 @@ module Developer {
|
||||||
($scope, KubernetesModel: Kubernetes.KubernetesModelService, DataModel:Developer.DataModelService, ConfigsModel:Configs.ConfigsModelService, KubernetesState, $templateCache:ng.ITemplateCacheService, $location:ng.ILocationService, $routeParams, $http, $timeout, KubernetesApiURL, $element, ngDialog) => {
|
($scope, KubernetesModel: Kubernetes.KubernetesModelService, DataModel:Developer.DataModelService, ConfigsModel:Configs.ConfigsModelService, KubernetesState, $templateCache:ng.ITemplateCacheService, $location:ng.ILocationService, $routeParams, $http, $timeout, KubernetesApiURL, $element, ngDialog) => {
|
||||||
$scope.model=DataModel;
|
$scope.model=DataModel;
|
||||||
$scope.replicasModel = KubernetesModel;
|
$scope.replicasModel = KubernetesModel;
|
||||||
console.log("==============================");
|
|
||||||
init($scope, $location, $routeParams);
|
init($scope, $location, $routeParams);
|
||||||
$scope.options = DataModel.paramOptions;
|
$scope.options = DataModel.paramOptions;
|
||||||
$scope.pageSizeChoses = DataModel.paramOptions.pagerSizeOption;
|
$scope.pageSizeChoses = DataModel.paramOptions.pagerSizeOption;
|
||||||
|
|
|
@ -125,9 +125,18 @@ module System{
|
||||||
var filter = [];
|
var filter = [];
|
||||||
if($scope.tableData && $scope.tableData.length > 0){
|
if($scope.tableData && $scope.tableData.length > 0){
|
||||||
angular.forEach($scope.tableData, (item) => {
|
angular.forEach($scope.tableData, (item) => {
|
||||||
if($scope.checkboxes.items[item.id])
|
if($scope.checkboxes.items[item.id]){
|
||||||
|
item["index"] = item.cityName + "_" + item.districtName + "_" + item.sysName + "_" + item.year + "_版本" + item.dataVersion;
|
||||||
filter.push(item);
|
filter.push(item);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
UI.multiItemConfirmActionDialog(<UI.MultiItemConfirmActionOptions>{
|
||||||
|
collection: filter,
|
||||||
|
index: 'index',
|
||||||
|
onClose: (result:boolean) => {
|
||||||
|
if(result){
|
||||||
$http({
|
$http({
|
||||||
url: "/java/console/api/checkout/deleteList",
|
url: "/java/console/api/checkout/deleteList",
|
||||||
method: "POST",
|
method: "POST",
|
||||||
|
@ -143,7 +152,6 @@ module System{
|
||||||
}else{
|
}else{
|
||||||
result = $scope.tableData;
|
result = $scope.tableData;
|
||||||
}
|
}
|
||||||
|
|
||||||
$scope.tableParams.settings({
|
$scope.tableParams.settings({
|
||||||
dataset: result
|
dataset: result
|
||||||
});
|
});
|
||||||
|
@ -151,6 +159,16 @@ module System{
|
||||||
throw "请求失败"
|
throw "请求失败"
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
title: '是否需要删除采集数据?',
|
||||||
|
action: '以下采集数据文件将会被删除:',
|
||||||
|
okText: '删除',
|
||||||
|
okClass: 'btn-danger sj_btn_cir',
|
||||||
|
custom: "该删除操作将会彻底删除数据文件,是否删除,请确认!",
|
||||||
|
customClass: "alert alert-warning sj_alert-warning",
|
||||||
|
cancelText: "取消",
|
||||||
|
cancelClass: 'sj_btn_grey'
|
||||||
|
}).open();
|
||||||
}
|
}
|
||||||
|
|
||||||
$scope.check = () => {
|
$scope.check = () => {
|
||||||
|
@ -207,7 +225,7 @@ module System{
|
||||||
/*
|
/*
|
||||||
如果是Oracle数据,先启动oracle数据
|
如果是Oracle数据,先启动oracle数据
|
||||||
*/
|
*/
|
||||||
if(oracleDB.length >= 0){
|
if(oracleDB.length > 0){
|
||||||
angular.forEach(oracleDB, (item) =>{
|
angular.forEach(oracleDB, (item) =>{
|
||||||
Kubernetes.createRC({
|
Kubernetes.createRC({
|
||||||
name: item._key,
|
name: item._key,
|
||||||
|
@ -241,8 +259,7 @@ module System{
|
||||||
method: "POST",
|
method: "POST",
|
||||||
data: selectedItems
|
data: selectedItems
|
||||||
}).success((data, header, config, status) => {
|
}).success((data, header, config, status) => {
|
||||||
console.log(data);
|
$scope.tableData = data.data;
|
||||||
/*$scope.tableData = data.data;
|
|
||||||
var result = [];
|
var result = [];
|
||||||
if($scope.y != 'all'){
|
if($scope.y != 'all'){
|
||||||
angular.forEach($scope.tableData, (item) =>{
|
angular.forEach($scope.tableData, (item) =>{
|
||||||
|
@ -255,7 +272,7 @@ module System{
|
||||||
|
|
||||||
$scope.tableParams.settings({
|
$scope.tableParams.settings({
|
||||||
dataset: result
|
dataset: result
|
||||||
});*/
|
});
|
||||||
}).error((data, header, config, status) => {
|
}).error((data, header, config, status) => {
|
||||||
throw "请求失败"
|
throw "请求失败"
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue