|
|
$(function () {});
|
|
|
|
|
|
var dialog1, dialog2, dialog3;
|
|
|
var dialog1, dialog2, dialog3, dialog4;
|
|
|
function initSwitch(cloudName, target, onlineOrGray) {
|
|
|
var arr = getNoChangeIpArr(cloudName, onlineOrGray);
|
|
|
if (undefined === arr || null === arr || 0 === arr.length) {
|
...
|
...
|
@@ -58,6 +58,9 @@ function viewToChangeSuccess(resp) { |
|
|
cloudName: data.data.cloudName
|
|
|
};
|
|
|
sendAjax("post", "switchNginxConf", param, "text", switchSuccess, errorFunc);
|
|
|
|
|
|
$(dialog3).dialog("hide");
|
|
|
toWait();
|
|
|
}
|
|
|
}]
|
|
|
}).find(".modal-body").css({
|
...
|
...
|
@@ -121,4 +124,13 @@ function sendAjax(type, url, data, dataType, success, error) { |
|
|
|
|
|
function errorFunc() {
|
|
|
layer.msg("Token异常", {icon: 2});
|
|
|
}
|
|
|
|
|
|
function toWait() {
|
|
|
dialog4 = $("<div>").appendTo($("body"));
|
|
|
dialog4.dialog({
|
|
|
title: "提示",
|
|
|
backdrop: "static",
|
|
|
content: "正在切换,请稍后..."
|
|
|
});
|
|
|
} |
|
|
\ No newline at end of file |
...
|
...
|
|