|
@@ -12,10 +12,16 @@ let compleRationMain = {
|
|
|
let libName = rstData[i].dispName;
|
|
|
$("#comple_ration_table").append(
|
|
|
"<tr id='tempId'>" +
|
|
|
- "<td><a href='/stdGljRepository/glj'>"+libName+"</a></td></tr>"
|
|
|
+ "<td><a href='javascript:void(0);'>"+libName+"</a></td></tr>"
|
|
|
);
|
|
|
var newHref = "/complementaryRation/ration?repository="+id;
|
|
|
- $("#tempId td:first a").attr("href", newHref);
|
|
|
+ $("#tempId td:first a").click(function () {
|
|
|
+ let newHref = "/complementaryRation/ration?repository="+id;
|
|
|
+ let newTab = window.open('about:blank');
|
|
|
+ CommonAjax.get(newHref, [], function () {
|
|
|
+ newTab.location.href = newHref;
|
|
|
+ });
|
|
|
+ });
|
|
|
$("#tempId").attr("id", id);
|
|
|
}
|
|
|
}
|