任务启、停、删除、触发等轻操作提示改为toast方式

This commit is contained in:
xuxueli 2019-04-20 14:00:38 +08:00
parent 65ca201780
commit e6453fa621
2 changed files with 10 additions and 33 deletions

View File

@ -1435,7 +1435,7 @@ Tips: 历史版本(V1.3.x)目前已经Release至稳定版本, 进入维护阶段
- 11、精简项目取消第三方依赖如 commons-collections4 ; - 11、精简项目取消第三方依赖如 commons-collections4 ;
- 12、执行器回调日志落盘方案复用RPC序列化方案并移除Jackson依赖 - 12、执行器回调日志落盘方案复用RPC序列化方案并移除Jackson依赖
- 13、底层Log调优应用正常终止取消异常栈信息打印 - 13、底层Log调优应用正常终止取消异常栈信息打印
- 14、交互优化尽量避免新开页面窗口仅WebIDE支持新开页并提供窗口快速关闭按钮 - 14、交互优化尽量避免新开页面窗口仅WebIDE支持新开页并提供窗口快速关闭按钮任务启、停、删除、触发等轻操作提示改为toast方式
- 15、任务暂停、删除优化避免quartz delete不完整导致任务脏数据 - 15、任务暂停、删除优化避免quartz delete不完整导致任务脏数据
- 16、任务回调、心跳注册成功日志优化非核心常规日志调整为debug级别降低冗余日志输出 - 16、任务回调、心跳注册成功日志优化非核心常规日志调整为debug级别降低冗余日志输出
- 17、调整首页报表默认区间为本周避免日志量太大查询缓慢 - 17、调整首页报表默认区间为本周避免日志量太大查询缓慢

View File

@ -227,28 +227,15 @@ $(function() {
dataType : "json", dataType : "json",
success : function(data){ success : function(data){
if (data.code == 200) { if (data.code == 200) {
layer.msg( typeName + I18n.system_success );
layer.open({ if (needFresh) {
title: I18n.system_tips, //window.location.reload();
btn: [ I18n.system_ok ], jobTable.fnDraw(false);
content: typeName + I18n.system_success , }
icon: '1',
end: function(layero, index){
if (needFresh) {
//window.location.reload();
jobTable.fnDraw(false);
}
}
});
} else { } else {
layer.open({ layer.msg( data.msg || typeName + I18n.system_fail );
title: I18n.system_tips,
btn: [ I18n.system_ok ],
content: (data.msg || typeName + I18n.system_fail ),
icon: '2'
});
} }
}, }
}); });
}); });
}); });
@ -276,19 +263,9 @@ $(function() {
if (data.code == 200) { if (data.code == 200) {
$('#jobTriggerModal').modal('hide'); $('#jobTriggerModal').modal('hide');
layer.open({ layer.msg( I18n.jobinfo_opt_run + I18n.system_success );
title: I18n.system_tips,
btn: [ I18n.system_ok ],
content: I18n.jobinfo_opt_run + I18n.system_success ,
icon: '1'
});
} else { } else {
layer.open({ layer.msg( data.msg || I18n.jobinfo_opt_run + I18n.system_fail );
title: I18n.system_tips,
btn: [ I18n.system_ok ],
content: (data.msg || I18n.jobinfo_opt_run + I18n.system_fail ),
icon: '2'
});
} }
} }
}); });