Showing
1 changed file
with
27 additions
and
8 deletions
@@ -251,14 +251,33 @@ | @@ -251,14 +251,33 @@ | ||
251 | 251 | ||
252 | singleSpecialLbProjectBuild(resultAreaId,jsonLbResult); | 252 | singleSpecialLbProjectBuild(resultAreaId,jsonLbResult); |
253 | }else{ | 253 | }else{ |
254 | - textAreaAppend(resultAreaId,"lb最多只有一台主机,原流程直接发布!"); | ||
255 | - | ||
256 | - jsonLbResult.deployIps="";//要发布ip为空,则根据配置文件查找全部机器 | ||
257 | - var d=deployYohoSearchService(resultAreaId,jsonLbResult); | ||
258 | - d.then(function () { | ||
259 | - textAreaAppend(resultAreaId,"发布成功,完成!!"); | ||
260 | - document.getElementById("task-info-div_"+projectName).innerHTML = "<strong>发布成功</strong>"; | ||
261 | - return ; | 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"); | ||
270 | + textAreaAppend(resultAreaId,"lb最多只有一台主机,原流程直接发布!"); | ||
271 | + | ||
272 | + jsonLbResult.deployIps="";//要发布ip为空,则根据配置文件查找全部机器 | ||
273 | + var d=deployYohoSearchService(resultAreaId,jsonLbResult); | ||
274 | + d.then(function () { | ||
275 | + textAreaAppend(resultAreaId,"发布成功,完成!!"); | ||
276 | + document.getElementById("task-info-div_"+projectName).innerHTML = "<strong>发布成功</strong>"; | ||
277 | + return ; | ||
278 | + }); | ||
279 | + } | ||
280 | + }] | ||
262 | }); | 281 | }); |
263 | } | 282 | } |
264 | }else{ | 283 | }else{ |
-
Please register or login to post a comment