Browse Source

[진료관리 - 상세] excel 다운로드 버튼 추가.

sjpark 4 năm trước cách đây
mục cha
commit
42086f9181
1 tập tin đã thay đổi với 3 bổ sung4 xóa
  1. 3 4
      src/main/webapp/WEB-INF/jsp/clinic/info.jsp

+ 3 - 4
src/main/webapp/WEB-INF/jsp/clinic/info.jsp

@@ -704,7 +704,7 @@ function gotoPatientInfo() {
 }
 
 function getExcel(type) {
-	const phrType = (type === "") ? $("#phrTypeSelect option:selected").val() : type;
+	const phrType = (type === "") ? "all" : type;
 
 	const url = "./excel?patientIdx=" + mPatientIdx + "&phrType=" + phrType;
 	window.open(url);
@@ -1198,9 +1198,8 @@ $(document).ready(function() {
                 <div id="home" class="card">
                   <div class="row mb-3">
                     <div class="col-12">
-                      <!-- <div class="text-right"> -->
-                      <button class="btn btn-lg btn-secondary" onclick="gotoList()"><i class="mdi mdi-backburger"></i> 대시보드</button>
-                      <!-- </div> -->
+                      <button class="btn btn-lg btn-secondary mr-2" onclick="gotoList()"><i class="mdi mdi-backburger"></i> 대시보드</button>
+                      <button id="downloadData" type="button" class="btn btn-lg btn-success" onclick="getExcel('');"><i class="mdi mdi-file-excel-outline"></i> 건강정보 다운로드</button>
                     </div>
                   </div>
                   <div class="toggle">