|
@@ -50,6 +50,7 @@
|
|
|
</div>
|
|
|
|
|
|
<!-- footer -->
|
|
|
+{{template "mask"}}
|
|
|
{{template "dialog"}}
|
|
|
{{template "footer"}}
|
|
|
|
|
@@ -172,7 +173,7 @@ $(function () {
|
|
|
})
|
|
|
function del(_id){
|
|
|
showConfirm("确定释放实例?", function() {
|
|
|
- $.ajax({
|
|
|
+ $.ajax({
|
|
|
url:"/admin/distribution/deleteInstance",
|
|
|
type:"post",
|
|
|
data:{"InstanceId":_id},
|
|
@@ -188,14 +189,14 @@ function del(_id){
|
|
|
}
|
|
|
function upInstanceIds(){
|
|
|
showConfirm("更新实例?", function() {
|
|
|
- $.ajax({
|
|
|
+ com.maskShow("正在更新实例...");
|
|
|
+ $.ajax({
|
|
|
url:"/admin/distribution/upstatus",
|
|
|
type:"post",
|
|
|
success:function(r){
|
|
|
- if(r.rep){
|
|
|
+ if(r.rep){
|
|
|
ttable.ajax.reload();
|
|
|
- }else{
|
|
|
- showTip("更新实例", 1000, function() {});
|
|
|
+ com.maskHide();
|
|
|
}
|
|
|
}
|
|
|
})
|
|
@@ -204,12 +205,14 @@ function upInstanceIds(){
|
|
|
|
|
|
function deploy(){
|
|
|
showConfirm("部署应用?", function() {
|
|
|
+ com.maskShow("正在部署应用...");
|
|
|
$.ajax({
|
|
|
url:"/admin/distribution/deploy",
|
|
|
type:"post",
|
|
|
success:function(r){
|
|
|
if(r.rep){
|
|
|
ttable.ajax.reload();
|
|
|
+ com.maskHide();
|
|
|
}else{
|
|
|
showTip("部署失败", 1000, function() {});
|
|
|
}
|
|
@@ -220,12 +223,14 @@ function deploy(){
|
|
|
|
|
|
function rangetask(){
|
|
|
showConfirm("启动抽取?", function() {
|
|
|
- $.ajax({
|
|
|
+ com.maskShow("正在部署应用...");
|
|
|
+ $.ajax({
|
|
|
url:"/admin/distribution/rangetask",
|
|
|
type:"post",
|
|
|
success:function(r){
|
|
|
if(r.rep){
|
|
|
ttable.ajax.reload();
|
|
|
+ com.maskHide();
|
|
|
}else{
|
|
|
showTip("启动抽取失败", 1000, function() {});
|
|
|
}
|