pull/109/head
Mr Chen 6 years ago
parent 73aa71e859
commit ffdf015874
  1. 5
      plugins/openresty/js/openresty.js
  2. 6
      route/static/app/public.js

@ -74,6 +74,7 @@ function orPluginOpService(a, b, v) {
}); });
} else { } else {
orPluginOpServiceOp(a,b,c,d,a,v); orPluginOpServiceOp(a,b,c,d,a,v);
} }
}); });
}) })
@ -98,6 +99,10 @@ function orPluginOpServiceOp(a,b,c,d,a,v){
if( g.status && g.data != 'ok' ) { if( g.status && g.data != 'ok' ) {
layer.msg(g.data, {icon: 2,time: 3000,shade: 0.3,shadeClose: true}); layer.msg(g.data, {icon: 2,time: 3000,shade: 0.3,shadeClose: true});
} }
setTimeout(function(){
location.reload();
},2000);
},'json').error(function() { },'json').error(function() {
layer.close(e); layer.close(e);
layer.msg('操作异常!', {icon: 2}); layer.msg('操作异常!', {icon: 2});

@ -1536,6 +1536,7 @@ function pluginOpService(a, b, v) {
$.post("/plugins/run", c, function(g) { $.post("/plugins/run", c, function(g) {
layer.close(e); layer.close(e);
var f = g.data == 'ok' ? msgTpl('{1}{2}服务已{3}',[a,v,d]) : msgTpl('{1}{2}服务{3}失败!',[a,v,d]); var f = g.data == 'ok' ? msgTpl('{1}{2}服务已{3}',[a,v,d]) : msgTpl('{1}{2}服务{3}失败!',[a,v,d]);
layer.msg(f, {icon: g.data == 'ok' ? 1 : 2}); layer.msg(f, {icon: g.data == 'ok' ? 1 : 2});
@ -1551,6 +1552,10 @@ function pluginOpService(a, b, v) {
layer.msg(g.data, {icon: 2,time: 3000,shade: 0.3,shadeClose: true}); layer.msg(g.data, {icon: 2,time: 3000,shade: 0.3,shadeClose: true});
} }
setTimeout(function(){
location.reload();
},2000);
},'json').error(function() { },'json').error(function() {
layer.close(e); layer.close(e);
layer.msg('操作异常!', {icon: 1}); layer.msg('操作异常!', {icon: 1});
@ -1558,7 +1563,6 @@ function pluginOpService(a, b, v) {
}) })
} }
//配置修改 --- start //配置修改 --- start
function pluginConfig(_name, version, func){ function pluginConfig(_name, version, func){
if ( typeof(version) == 'undefined' ){ if ( typeof(version) == 'undefined' ){

Loading…
Cancel
Save