...
|
...
|
@@ -50,6 +50,17 @@ function getColumns(){ |
|
|
};
|
|
|
}
|
|
|
},
|
|
|
/* {
|
|
|
title : "aws组名",
|
|
|
field : "awsGroupName",
|
|
|
hidden:true,
|
|
|
width : "20%",
|
|
|
styler : function(value, rowData, rowIndex){
|
|
|
return {
|
|
|
"vertical-align" : "middle"
|
|
|
};
|
|
|
}
|
|
|
},*/
|
|
|
{
|
|
|
title : "主机",
|
|
|
field : "ip",
|
...
|
...
|
@@ -179,6 +190,7 @@ function getColumns(){ |
|
|
$("<button onclick=\"changeServer(\'"
|
|
|
+ rowData.id + "\',\'"
|
|
|
+ rowData.name + "\',\'"
|
|
|
+ rowData.awsGroupName + "\',\'"
|
|
|
+ tmp_protectedFromCount + "\',\'"
|
|
|
+ rowData.desired + "\',\'"
|
|
|
+ rowData.min + "\',\'"
|
...
|
...
|
@@ -198,6 +210,7 @@ function getColumns(){ |
|
|
|
|
|
//修改前原始数据,用于判断是否需要调用修改接口
|
|
|
var scalingGroupName;
|
|
|
var aws_scalingGroupName;
|
|
|
var souScalingGroupId;
|
|
|
var souProtectedFromCount;
|
|
|
var souDesiredCapacity;
|
...
|
...
|
@@ -210,8 +223,9 @@ var souInstanceIps; |
|
|
var newInstanceIps;
|
|
|
var souProjectNames;
|
|
|
//修改伸缩组
|
|
|
function changeServer(scalingGroupId, groupName, protectedFromCount, desiredCapacity, minSize, maxSize){
|
|
|
function changeServer(scalingGroupId, groupName,awsGroupName, protectedFromCount, desiredCapacity, minSize, maxSize){
|
|
|
scalingGroupName = groupName;
|
|
|
aws_scalingGroupName=awsGroupName;
|
|
|
souScalingGroupId = scalingGroupId;
|
|
|
souProtectedFromCount = protectedFromCount;
|
|
|
souDesiredCapacity = desiredCapacity;
|
...
|
...
|
@@ -295,6 +309,7 @@ function changeOk(){ |
|
|
if(1 == $("#cloudType").val()||2 == $("#cloudType").val()){
|
|
|
cloudParms.scalingGroupId = souScalingGroupId;
|
|
|
cloudParms.scalingGroupName = scalingGroupName;//aws需要以伸缩组名作为主键
|
|
|
cloudParms.awsScalingGroupName=aws_scalingGroupName;
|
|
|
cloudParms.minSize = parseInt(minSize);
|
|
|
cloudParms.maxSize = parseInt(maxSize);
|
|
|
cloudParms.desiredCapacity = parseInt(desiredCapacity);
|
...
|
...
|
|