配置全量更新时的异常处理增加服务端的异常状态,增加国际化参数。

This commit is contained in:
zhangwei
2018-12-03 11:48:16 +08:00
parent 388f2d3c0b
commit 90a64dfbb2
9 changed files with 70 additions and 60 deletions

View File

@@ -78,6 +78,7 @@
netAddress:"The class C type of IP addresses must has the same network number bit field",
addrPoolUnique:"Address Pool already exists.",
asnNoUnique:"ASN already exists.",
areaUnique:"Area already exists."
areaUnique:"Area already exists.",
config_sync_tip:"The system is being maintained and temporarily inaccessible."
});
}(jQuery));

View File

@@ -78,6 +78,7 @@
netAddress:"Тип IP-адресов класса C должен иметь один и тот же номер сети бит поля.",
addrPoolUnique:"Address Pool уже существует.",
asnNoUnique:"ASN уже существует.",
areaUnique:"Регион уже существует."
areaUnique:"Регион уже существует.",
config_sync_tip:"Система находится под техническим обслуживанием и временно недоступна."
});
}(jQuery));

View File

@@ -78,6 +78,7 @@
netAddress:"C类IP地址网络位必须相同",
addrPoolUnique:"地址池已存在",
asnNoUnique:"ASN号已存在",
areaUnique:"该区域已存在"
areaUnique:"该区域已存在",
config_sync_tip:"系统正在维护中,暂时不可访问!"
});
}(jQuery));

View File

@@ -1560,7 +1560,7 @@ function getConfigSyncStatus(){
id:'syncStatusTip',
zIndex: 9999
};
var tipId = top.$.jBox.tip("The system is being maintained and temporarily inaccessible.",'loading',{opacity:0.5,persistent:true});
var tipId = top.$.jBox.tip($.validator.messages.config_sync_tip,'loading',{opacity:0.5,persistent:true});
var t1 = setInterval(function() {
currentStatus = getSyncStatus();
if(currentStatus==3 || currentStatus==-1 || currentStatus==-2){//3表示同步完成-1表示服务端同步失败-2表示界面端同步失败