Bläddra i källkod

Merge remote-tracking branch 'origin/simplatform'

junekeunsong 4 år sedan
förälder
incheckning
46b425a8c6
1 ändrade filer med 3 tillägg och 3 borttagningar
  1. 3 3
      src/main/webapp/WEB-INF/jsp/clinic/info.jsp

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

@@ -580,9 +580,9 @@ function gotoList() {
 	location.href = url;
 }
 
-function getExcel(type = null) {
+function getExcel(type) {
 	const patientIdx = ${patientIdx};
-	const phrType = (type !== null) ? type : $("#phrTypeSelect option:selected").val();
+	const phrType = (type === "") ? $("#phrTypeSelect option:selected").val() : type;
 
 	const url = "./excel?patientIdx=" + patientIdx + "&phrType=" + phrType;
 	window.open(url);
@@ -1043,7 +1043,7 @@ $(document).ready(function() {
 										<div class="graph-area mb-4" style="height:300px;">
 											<canvas id="phrChart"></canvas>
 										</div>
-										<button class="btn btn-success" onclick="getExcel();">Excel 다운로드</button>
+										<button class="btn btn-success" onclick="getExcel('');">Excel 다운로드</button>
 										<h1 class="h4 text-right"><span class="small showLegend ml-2" data-toggle="modal" data-target="#legendGuide"><i class="mdi mdi-comment-question-outline"></i> 알람 표시 기준</span></h1>
 										<div class="table-responsive">
 											<table id="phrDataTable" class="table data-table text-center">