|
@@ -580,9 +580,9 @@ function gotoList() {
|
|
|
location.href = url;
|
|
|
}
|
|
|
|
|
|
-function getExcel() {
|
|
|
+function getExcel(type = null) {
|
|
|
const patientIdx = ${patientIdx};
|
|
|
- const phrType = $("#phrTypeSelect option:selected").val();
|
|
|
+ const phrType = (type !== null) ? type : $("#phrTypeSelect option:selected").val();
|
|
|
|
|
|
const url = "./excel?patientIdx=" + patientIdx + "&phrType=" + phrType;
|
|
|
window.open(url);
|
|
@@ -1082,6 +1082,7 @@ $(document).ready(function() {
|
|
|
- 임상증상 <label class="ml-1">
|
|
|
<button type="button" class="btn btn-primary ml-2" data-toggle="modal" data-target="#defaultModalPrimary_2">증상추가</button>
|
|
|
</label>
|
|
|
+ <button class="btn btn-success text-right" style="float:right;" onclick="getExcel('symptom');">Excel 다운로드</button>
|
|
|
</h1>
|
|
|
</div>
|
|
|
<div class="card-body">
|
|
@@ -1123,6 +1124,7 @@ $(document).ready(function() {
|
|
|
<h1 class="h4">
|
|
|
- 의료진 메모
|
|
|
<button type="button" class="btn btn-primary ml-2" data-toggle="modal" data-target="#defaultModalPrimaryMemo">메모추가</button>
|
|
|
+ <button class="btn btn-success text-right" style="float:right;" onclick="getExcel('memo');">Excel 다운로드</button>
|
|
|
</h1>
|
|
|
</div>
|
|
|
<div class="card-body">
|