...
|
...
|
@@ -95,25 +95,25 @@ |
|
|
<div class="panel-body">
|
|
|
<button class="btn btn-large" id="switch_mysql-btn" style="background-color: green">mysql</button>
|
|
|
===》
|
|
|
<button class="btn btn-large" id="switch_redis-btn">redis(先)</button>
|
|
|
<button class="btn btn-large" id="switch_redis-btn">redis(目标DC)</button>
|
|
|
===》
|
|
|
<button class="btn btn-large" id="switch_internel_dns-btn">内部DNS(先)</button>
|
|
|
<button class="btn btn-large" id="switch_internel_dns-btn">内部DNS(目标DC)</button>
|
|
|
===》
|
|
|
<button class="btn btn-large" id="switch_cobar-btn">cobar(先)</button>
|
|
|
<button class="btn btn-large" id="switch_cobar-btn">cobar(目标DC)</button>
|
|
|
===》
|
|
|
<button class="btn btn-large" id="switch_lua-btn">lua</button>
|
|
|
===》
|
|
|
<button class="btn btn-large" id="switch_dnspod-btn">dnspod</button>
|
|
|
===》
|
|
|
<button class="btn btn-large" id="java-btn">java重启(先)</button>
|
|
|
<button class="btn btn-large" id="java-btn">java重启(目标DC)</button>
|
|
|
===》
|
|
|
<button class="btn btn-large" id="switch_redis_next-btn">redis(后)</button>
|
|
|
<button class="btn btn-large" id="switch_redis_next-btn">redis(源DC)</button>
|
|
|
===》
|
|
|
<button class="btn btn-large" id="switch_internel_dns_next-btn">内部DNS(后)</button>
|
|
|
<button class="btn btn-large" id="switch_internel_dns_next-btn">内部DNS(源DC)</button>
|
|
|
===》
|
|
|
<button class="btn btn-large" id="switch_cobar_next-btn">cobar(后)</button>
|
|
|
<button class="btn btn-large" id="switch_cobar_next-btn">cobar(源DC)</button>
|
|
|
===》
|
|
|
<button class="btn btn-large" id="java_next-btn">java重启(后)</button>
|
|
|
<button class="btn btn-large" id="java_next-btn">java重启(源DC)</button>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="panel">
|
...
|
...
|
@@ -223,7 +223,7 @@ |
|
|
$("#java-btn").removeClass("btn-success");
|
|
|
$("#java_next-btn").removeClass("btn-success");
|
|
|
|
|
|
switchWait = toWait("正在切换(先),请耐心等候...");
|
|
|
switchWait = toWait("正在切换(目标DC),请耐心等候...");
|
|
|
doExe(array, 0, toCloud);
|
|
|
}else{
|
|
|
alert("短信验证码错误或者失效");
|
...
|
...
|
@@ -265,7 +265,7 @@ |
|
|
}
|
|
|
},
|
|
|
error: function () {
|
|
|
var div = "<div>切换(先)请求异常</div>";
|
|
|
var div = "<div>切换(目标DC)请求异常</div>";
|
|
|
$("#detail-div").append(div);
|
|
|
|
|
|
switchWait.modal('hide');
|
...
|
...
|
@@ -274,7 +274,7 @@ |
|
|
}
|
|
|
|
|
|
function javaRestart(toCloud){
|
|
|
var wait = toWait("正在重启java(先),请耐心等候...");
|
|
|
var wait = toWait("正在重启java(目标DC),请耐心等候...");
|
|
|
var commond;
|
|
|
if(toCloud="toAws"){
|
|
|
commond="aws";
|
...
|
...
|
@@ -296,17 +296,17 @@ |
|
|
$("#java-btn").addClass("btn-success");
|
|
|
|
|
|
var div = "<div class=\"alert alert-info alert-block\">";
|
|
|
div = div + "<h4 class=\"alert-heading\">java重启(先):</h4>";
|
|
|
div = div + "<h4 class=\"alert-heading\">java重启(目标DC):</h4>";
|
|
|
div = div + "成功</div>";
|
|
|
$("#detail-div").append(div);
|
|
|
|
|
|
wait.modal('hide');
|
|
|
|
|
|
switchWait = toWait("正在切换(后),请耐心等候...");
|
|
|
switchWait = toWait("正在切换(源DC),请耐心等候...");
|
|
|
doExeNext(array_next, 0, toCloud);
|
|
|
},
|
|
|
error: function () {
|
|
|
var div = "<div>java重启(先)请求异常</div>";
|
|
|
var div = "<div>java重启(目标DC)请求异常</div>";
|
|
|
$("#detail-div").append(div);
|
|
|
|
|
|
wait.modal('hide');
|
...
|
...
|
@@ -343,7 +343,7 @@ |
|
|
}
|
|
|
},
|
|
|
error: function () {
|
|
|
var div = "<div>切换(后)请求异常</div>";
|
|
|
var div = "<div>切换(源DC)请求异常</div>";
|
|
|
$("#detail-div").append(div);
|
|
|
|
|
|
switchWait.modal('hide');
|
...
|
...
|
@@ -352,7 +352,7 @@ |
|
|
}
|
|
|
|
|
|
function javaRestartNext(toCloud){
|
|
|
var wait = toWait("正在重启java(后),请耐心等候...");
|
|
|
var wait = toWait("正在重启java(源DC),请耐心等候...");
|
|
|
var commond;
|
|
|
if(toCloud="toAws"){
|
|
|
commond="qcloud";
|
...
|
...
|
@@ -374,14 +374,14 @@ |
|
|
$("#java_next-btn").addClass("btn-success");
|
|
|
|
|
|
var div = "<div class=\"alert alert-info alert-block\">";
|
|
|
div = div + "<h4 class=\"alert-heading\">java重启(后):</h4>";
|
|
|
div = div + "<h4 class=\"alert-heading\">java重启(源DC):</h4>";
|
|
|
div = div + "成功</div>";
|
|
|
$("#detail-div").append(div);
|
|
|
|
|
|
wait.modal('hide');
|
|
|
},
|
|
|
error: function () {
|
|
|
var div = "<div>java重启(先)请求异常</div>";
|
|
|
var div = "<div>java重启(源DC)请求异常</div>";
|
|
|
$("#detail-div").append(div);
|
|
|
|
|
|
wait.modal('hide');
|
...
|
...
|
|