Showing
1 changed file
with
19 additions
and
0 deletions
@@ -251,6 +251,22 @@ | @@ -251,6 +251,22 @@ | ||
251 | 251 | ||
252 | singleSpecialLbProjectBuild(resultAreaId,jsonLbResult); | 252 | singleSpecialLbProjectBuild(resultAreaId,jsonLbResult); |
253 | }else{ | 253 | }else{ |
254 | + var dialog = $("<div>").appendTo($("body")); | ||
255 | + dialog.dialog({ | ||
256 | + title: "提示", | ||
257 | + backdrop: "static", | ||
258 | + content: "负载均衡查询到一台或者没有机器实例,通过原流程发布", | ||
259 | + buttons: [{ | ||
260 | + text: "否", | ||
261 | + className: "btn-info", | ||
262 | + onclick: function () { | ||
263 | + dialog.dialog("hide"); | ||
264 | + } | ||
265 | + }, { | ||
266 | + text: "是", | ||
267 | + className: "btn-danger", | ||
268 | + onclick: function () { | ||
269 | + dialog.dialog("hide"); | ||
254 | textAreaAppend(resultAreaId,"lb最多只有一台主机,原流程直接发布!"); | 270 | textAreaAppend(resultAreaId,"lb最多只有一台主机,原流程直接发布!"); |
255 | 271 | ||
256 | jsonLbResult.deployIps="";//要发布ip为空,则根据配置文件查找全部机器 | 272 | jsonLbResult.deployIps="";//要发布ip为空,则根据配置文件查找全部机器 |
@@ -261,6 +277,9 @@ | @@ -261,6 +277,9 @@ | ||
261 | return ; | 277 | return ; |
262 | }); | 278 | }); |
263 | } | 279 | } |
280 | + }] | ||
281 | + }); | ||
282 | + } | ||
264 | }else{ | 283 | }else{ |
265 | if(reps!=null){ | 284 | if(reps!=null){ |
266 | textAreaAppend(resultAreaId,"lb检查出错,"+projectName+"项目发布终止!"+reps.message); | 285 | textAreaAppend(resultAreaId,"lb检查出错,"+projectName+"项目发布终止!"+reps.message); |
-
Please register or login to post a comment