|
@@ -50,6 +50,17 @@ function getColumns(){ |
|
@@ -50,6 +50,17 @@ function getColumns(){ |
50
|
};
|
50
|
};
|
51
|
}
|
51
|
}
|
52
|
},
|
52
|
},
|
|
|
53
|
+ /* {
|
|
|
54
|
+ title : "aws组名",
|
|
|
55
|
+ field : "awsGroupName",
|
|
|
56
|
+ hidden:true,
|
|
|
57
|
+ width : "20%",
|
|
|
58
|
+ styler : function(value, rowData, rowIndex){
|
|
|
59
|
+ return {
|
|
|
60
|
+ "vertical-align" : "middle"
|
|
|
61
|
+ };
|
|
|
62
|
+ }
|
|
|
63
|
+ },*/
|
53
|
{
|
64
|
{
|
54
|
title : "主机",
|
65
|
title : "主机",
|
55
|
field : "ip",
|
66
|
field : "ip",
|
|
@@ -179,6 +190,7 @@ function getColumns(){ |
|
@@ -179,6 +190,7 @@ function getColumns(){ |
179
|
$("<button onclick=\"changeServer(\'"
|
190
|
$("<button onclick=\"changeServer(\'"
|
180
|
+ rowData.id + "\',\'"
|
191
|
+ rowData.id + "\',\'"
|
181
|
+ rowData.name + "\',\'"
|
192
|
+ rowData.name + "\',\'"
|
|
|
193
|
+ + rowData.awsGroupName + "\',\'"
|
182
|
+ tmp_protectedFromCount + "\',\'"
|
194
|
+ tmp_protectedFromCount + "\',\'"
|
183
|
+ rowData.desired + "\',\'"
|
195
|
+ rowData.desired + "\',\'"
|
184
|
+ rowData.min + "\',\'"
|
196
|
+ rowData.min + "\',\'"
|
|
@@ -198,6 +210,7 @@ function getColumns(){ |
|
@@ -198,6 +210,7 @@ function getColumns(){ |
198
|
|
210
|
|
199
|
//修改前原始数据,用于判断是否需要调用修改接口
|
211
|
//修改前原始数据,用于判断是否需要调用修改接口
|
200
|
var scalingGroupName;
|
212
|
var scalingGroupName;
|
|
|
213
|
+var aws_scalingGroupName;
|
201
|
var souScalingGroupId;
|
214
|
var souScalingGroupId;
|
202
|
var souProtectedFromCount;
|
215
|
var souProtectedFromCount;
|
203
|
var souDesiredCapacity;
|
216
|
var souDesiredCapacity;
|
|
@@ -210,8 +223,9 @@ var souInstanceIps; |
|
@@ -210,8 +223,9 @@ var souInstanceIps; |
210
|
var newInstanceIps;
|
223
|
var newInstanceIps;
|
211
|
var souProjectNames;
|
224
|
var souProjectNames;
|
212
|
//修改伸缩组
|
225
|
//修改伸缩组
|
213
|
-function changeServer(scalingGroupId, groupName, protectedFromCount, desiredCapacity, minSize, maxSize){
|
226
|
+function changeServer(scalingGroupId, groupName,awsGroupName, protectedFromCount, desiredCapacity, minSize, maxSize){
|
214
|
scalingGroupName = groupName;
|
227
|
scalingGroupName = groupName;
|
|
|
228
|
+ aws_scalingGroupName=awsGroupName;
|
215
|
souScalingGroupId = scalingGroupId;
|
229
|
souScalingGroupId = scalingGroupId;
|
216
|
souProtectedFromCount = protectedFromCount;
|
230
|
souProtectedFromCount = protectedFromCount;
|
217
|
souDesiredCapacity = desiredCapacity;
|
231
|
souDesiredCapacity = desiredCapacity;
|
|
@@ -295,6 +309,7 @@ function changeOk(){ |
|
@@ -295,6 +309,7 @@ function changeOk(){ |
295
|
if(1 == $("#cloudType").val()||2 == $("#cloudType").val()){
|
309
|
if(1 == $("#cloudType").val()||2 == $("#cloudType").val()){
|
296
|
cloudParms.scalingGroupId = souScalingGroupId;
|
310
|
cloudParms.scalingGroupId = souScalingGroupId;
|
297
|
cloudParms.scalingGroupName = scalingGroupName;//aws需要以伸缩组名作为主键
|
311
|
cloudParms.scalingGroupName = scalingGroupName;//aws需要以伸缩组名作为主键
|
|
|
312
|
+ cloudParms.awsScalingGroupName=aws_scalingGroupName;
|
298
|
cloudParms.minSize = parseInt(minSize);
|
313
|
cloudParms.minSize = parseInt(minSize);
|
299
|
cloudParms.maxSize = parseInt(maxSize);
|
314
|
cloudParms.maxSize = parseInt(maxSize);
|
300
|
cloudParms.desiredCapacity = parseInt(desiredCapacity);
|
315
|
cloudParms.desiredCapacity = parseInt(desiredCapacity);
|