Przeglądaj źródła

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

xuxueli 6 lat temu
rodzic
commit
e6453fa621

+ 1 - 1
doc/XXL-JOB官方文档.md Wyświetl plik

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

+ 9 - 32
xxl-job-admin/src/main/resources/static/js/jobinfo.index.1.js Wyświetl plik

@@ -227,28 +227,15 @@ $(function() {
227 227
 				dataType : "json",
228 228
 				success : function(data){
229 229
 					if (data.code == 200) {
230
-
231
-						layer.open({
232
-							title: I18n.system_tips,
233
-                            btn: [ I18n.system_ok ],
234
-							content: typeName + I18n.system_success ,
235
-							icon: '1',
236
-							end: function(layero, index){
237
-								if (needFresh) {
238
-									//window.location.reload();
239
-									jobTable.fnDraw(false);
240
-								}
241
-							}
242
-						});
230
+                        layer.msg( typeName + I18n.system_success );
231
+                        if (needFresh) {
232
+                            //window.location.reload();
233
+                            jobTable.fnDraw(false);
234
+                        }
243 235
 					} else {
244
-						layer.open({
245
-							title: I18n.system_tips,
246
-                            btn: [ I18n.system_ok ],
247
-							content: (data.msg || typeName + I18n.system_fail ),
248
-							icon: '2'
249
-						});
236
+                        layer.msg( data.msg || typeName + I18n.system_fail );
250 237
 					}
251
-				},
238
+				}
252 239
 			});
253 240
 		});
254 241
 	});
@@ -276,19 +263,9 @@ $(function() {
276 263
                 if (data.code == 200) {
277 264
                     $('#jobTriggerModal').modal('hide');
278 265
 
279
-                    layer.open({
280
-                        title: I18n.system_tips,
281
-                        btn: [ I18n.system_ok ],
282
-                        content: I18n.jobinfo_opt_run + I18n.system_success ,
283
-                        icon: '1'
284
-                    });
266
+                    layer.msg( I18n.jobinfo_opt_run + I18n.system_success );
285 267
                 } else {
286
-                    layer.open({
287
-                        title: I18n.system_tips,
288
-                        btn: [ I18n.system_ok ],
289
-                        content: (data.msg || I18n.jobinfo_opt_run + I18n.system_fail ),
290
-                        icon: '2'
291
-                    });
268
+                    layer.msg( data.msg || I18n.jobinfo_opt_run + I18n.system_fail );
292 269
                 }
293 270
             }
294 271
         });