Quellcode durchsuchen

交互优化,尽量避免新开页面窗口;仅WebIDE支持新开页,并提供窗口快速关闭按钮;

xuxueli vor 6 Jahren
Ursprung
Commit
164c5bb2b4
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 2 2
      xxl-job-admin/src/main/resources/static/js/jobinfo.index.1.js

+ 2 - 2
xxl-job-admin/src/main/resources/static/js/jobinfo.index.1.js Datei anzeigen

126
 	                			var codeBtn = "";
126
 	                			var codeBtn = "";
127
                                 if ('BEAN' != row.glueType) {
127
                                 if ('BEAN' != row.glueType) {
128
 									var codeUrl = base_url +'/jobcode?jobId='+ row.id;
128
 									var codeUrl = base_url +'/jobcode?jobId='+ row.id;
129
-									codeBtn = '<button class="btn btn-warning btn-xs" type="button" onclick="javascript:window.open(\'' + codeUrl + '\')" >GLUE</button>  '
129
+									codeBtn = '<a href="'+ codeUrl +'" target="_blank" > <button class="btn btn-warning btn-xs" type="button" >GLUE</button> </a> '
130
 								}
130
 								}
131
 
131
 
132
 								// html
132
 								// html
134
 								var html = '<p id="'+ row.id +'" >'+
134
 								var html = '<p id="'+ row.id +'" >'+
135
 									'<button class="btn btn-primary btn-xs job_trigger" type="button">'+ I18n.jobinfo_opt_run +'</button>  '+
135
 									'<button class="btn btn-primary btn-xs job_trigger" type="button">'+ I18n.jobinfo_opt_run +'</button>  '+
136
                                     start_stop +
136
                                     start_stop +
137
-									'<button class="btn btn-primary btn-xs" type="job_del" type="button" onclick="javascript:window.open(\'' + logUrl + '\', \'_self\' )" >'+ I18n.jobinfo_opt_log +'</button><br>  '+
137
+									'<a href="'+ logUrl +'"> <button class="btn btn-primary btn-xs" type="job_del" type="button" >'+ I18n.jobinfo_opt_log +'</button> </a> <br>  '+
138
 									'<button class="btn btn-warning btn-xs update" type="button">'+ I18n.system_opt_edit +'</button>  '+
138
 									'<button class="btn btn-warning btn-xs update" type="button">'+ I18n.system_opt_edit +'</button>  '+
139
 									codeBtn +
139
 									codeBtn +
140
 									'<button class="btn btn-danger btn-xs job_operate" _type="job_del" type="button">'+ I18n.system_opt_del +'</button>  '+
140
 									'<button class="btn btn-danger btn-xs job_operate" _type="job_del" type="button">'+ I18n.system_opt_del +'</button>  '+