linwu 4 달 전
부모
커밋
f933f6af86
1개의 변경된 파일4개의 추가작업 그리고 3개의 파일을 삭제
  1. 4 3
      public/themes/default/views/app/company/resume/resume_health_apply.blade.php

+ 4 - 3
public/themes/default/views/app/company/resume/resume_health_apply.blade.php

@@ -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);
                     }