--汇总新Bug修复

This commit is contained in:
wu ming 2016-10-14 16:51:07 +08:00
parent 7183b0bfdd
commit 228f229745
6 changed files with 80 additions and 17 deletions

View File

@ -69,4 +69,5 @@ declare module Kubernetes {
function checkIsStartSuccess(replicationControllers: Array<any>): any[];
function checkForMigration(replicationControllers: Array<KubePod>, transferTasks: Array<any>, selectItem: Array<any>): string;
function eliminateChechBoxClick(): void;
function alreadyExitInFolder(selectedItems: Array<any>, selectNode: any): boolean;
}

File diff suppressed because one or more lines are too long

View File

@ -249,7 +249,7 @@ gulp.task('connect', ['watch'], function() {
}, {
proto: "http",
port: "8080",
hostname: "192.168.191.5",
hostname: "192.168.191.9",
path: '/java/console/api',
targetPath: "/"
}];

View File

@ -140,7 +140,7 @@ module Developer {
var length =$scope.options.getPageSizeNum();
var idx = $scope.model.getParamOption("currentPageNum");
if(idx < length){
//Kubernetes.eliminateChechBoxClick();
Kubernetes.eliminateChechBoxClick();
$scope.model.updateParamOption("currentPageNum", idx+1);
}
}
@ -217,7 +217,13 @@ module Developer {
/*
,$http:发生http异步请求url;
*/
*/
if(Kubernetes.alreadyExitInFolder($scope.tableConfig.selectedItems, $scope.selectNode)){
migrationClick.close();
Configs.customAlert("提示", "操作失败:" + "数据已在当前目录!", '',null, 0, "error");
return;
};
Configs.oracleInfoOperate($http, "/java/console/api/volume", Configs.OperateType.MOVE,
{
"name": migrationClick.selectedItem.name,

View File

@ -189,15 +189,20 @@ module Kubernetes {
$scope.reStartPrompt = (selected) => {
function startSelected(selected:Array<KubePod>, next:KubePod){
if(next){
if(next.$replicas === 0)
Kubernetes.resizeController($http, KubernetesApiURL, next, 1, () => {
Kubernetes.connectOracle($http, $timeout, "/java/console/api/connectOracle", "reStart", next, 200);
startSelected(selected, selected.shift());
});
console.log(getLabels(next).status);
if(next.$replicas === 0){
Kubernetes.resizeController($http, KubernetesApiURL, next, 1, () => {
Kubernetes.connectOracle($http, $timeout, "/java/console/api/connectOracle", "reStart", next, 200);
startSelected(selected, selected.shift());
});
}else{
if(getLabels(next).status == "1")
Kubernetes.connectOracle($http, $timeout, "/java/console/api/connectOracle", "reStart", next, 200);
startSelected(selected, selected.shift());
}
}
}
startSelected(selected, selected.shift());
startSelected(selected, selected.shift());
};
$scope.extractClick = {

View File

@ -347,9 +347,28 @@ module Kubernetes {
export function eliminateChechBoxClick(){
console.log($("#tableConfig thead tr td input:checkbox"));
if($("#tableConfig thead tr td input:checkbox").is(':checked')){
console.log($("#tableConfig > thead > tr input:checkbox").is(':checked'));
if($("#tableConfig > thead > tr input:checkbox").is(':checked')){
}
}
/*
*/
export function alreadyExitInFolder(selectedItems: Array<any>, selectNode){
var childNodes = selectNode.childNodes;
for(var i in selectedItems) {
var itemName = selectedItems[i].regionalismCode + "_" + selectedItems[i].systemCode;
for (var j in childNodes) {
if(childNodes[j].name == itemName){
var childrens = childNodes[j].childNodes;
for(var k in childrens)
if(childrens[k].name == selectedItems[i].dataVersion)
return true;
}
}
}
return false;
}
}