Authored by bblu

修改

... ... @@ -116,7 +116,7 @@
<script src="<%=basePath %>script/common/genarate_left_panel.js" type="text/javascript"></script>
<script type="text/javascript">
var dialog1, dialog2;
var dialog1, dialog2, dialog3;
function initSwitch(cloudName) {
dialog1 = $("<div>").appendTo($("body"));
dialog1.dialog({
... ... @@ -162,6 +162,9 @@
className: "btn-success",
onclick: function () {
sendAjax("post", "switchConf", {}, "text", switchSuccess, errorFunc);
$(dialog2).dialog("hide");
toWait();
}
}]
}).find(".modal-body").css({
... ... @@ -187,6 +190,15 @@
function errorFunc() {
layer.msg("Token异常", {icon: 2});
}
function toWait() {
dialog3 = $("<div>").appendTo($("body"));
dialog3.dialog({
title: "提示",
backdrop: "static",
content: "正在切换,请稍后..."
});
}
</script>
</body>
</html>
... ...
$(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
... ...