|
@@ -78,10 +78,11 @@
|
|
|
$(document).ready(function () {
|
|
|
$("#download").click(function () {
|
|
|
let id = $(this).data('id');
|
|
|
- let attachment = $(this).data('attachment');
|
|
|
- $.getJSON("{{route('resume.health.download')}}", function (result) {
|
|
|
+ let url = $(this).data('url');
|
|
|
+ $.getJSON("{{route('resume.health.download')}}?id="+id, function (result) {
|
|
|
if (result.status == 1) {
|
|
|
- window.open('https://www.jucai.gov.cn'+attachment);
|
|
|
+ window.open('https://www.jucai.gov.cn'+url);
|
|
|
+ location.reload();
|
|
|
} else {
|
|
|
disapperTooltip('remind', result.msg);
|
|
|
}
|