Browse Source

增加返回按钮

master
燕鹏 3 years ago
parent
commit
9fe48a6722
  1. 1
      ureport2-console/src/main/resources/ureport-asserts/icons/back.svg
  2. 3
      ureport2-console/src/main/resources/ureport-html/html-preview.html
  3. 5
      ureport2-js/src/preview.js

1
ureport2-console/src/main/resources/ureport-asserts/icons/back.svg

@ -0,0 +1 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1625628000370" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1190" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M510.9 60.7c-245.6 0-446.7 199.8-446.7 446.7C64.2 753 263.9 954 510.8 954s446.6-199.7 446.6-446.6c0.1-245.6-199.6-446.7-446.5-446.7zM760.5 694c-0.1 6.3-5.3 11.4-11.7 11.4-5.6 0-10.3-3.9-11.4-9.3-0.2-0.7-7.8-35.2-40.4-69.1-41.5-43.2-105.8-66.9-186.4-69v93.8c0 4.4-2.5 8.3-6.4 10.3-3.9 2-8.6 1.6-12.2-0.9L268.2 500.7c-1-0.7-1.9-1.6-2.6-2.6-3.7-5.2-2.5-12.3 2.6-16L492 321c3.6-2.6 8.3-2.9 12.2-1 3.9 2 6.3 5.9 6.4 10.3v99.6c23.2 0.9 46.3 4.4 68.7 10.3 46.4 12.2 85 33.4 114.6 63.2 45.6 45.6 68 109.8 66.6 190.6z" p-id="1191" fill="#1296db"></path></svg>

After

Width:  |  Height:  |  Size: 927 B

3
ureport2-console/src/main/resources/ureport-html/html-preview.html

@ -123,6 +123,9 @@ ${upSearchFormHtml}
<span id='pageLinkContainer'></span>
</span>
#end
<button type="button" class="btn btn-default ureport-back-btn" style="display:inline-block;padding:0;background:#f8f8f8;border:none;margin:3px;float: right" title="返回">
<img src='${contextPath}/ureport/res/ureport-asserts/icons/back.svg' width="22px" height="22px">
</button>
</div>
</div>
#end

5
ureport2-js/src/preview.js

@ -103,6 +103,11 @@ $(document).ready(function(){
const url=window._server+'/excel'+urlParameters;
window.open(url,'_blank');
});
$(`.ureport-back-btn`).click(function(){
console.log("nelson")
window.top.history.back()
debugger
});
// $(`.ureport-export-excel-paging`).click(function(){
// const urlParameters=buildLocationSearchParameters();
// const url=window._server+'/excel/paging'+urlParameters;

Loading…
Cancel
Save