FO 로딩바 추가
This commit is contained in:
@@ -18,7 +18,6 @@ import app.module.admin.usecase.household.tab.dailyRecord.getDailyRecordStatusDe
|
|||||||
import java.util.Optional;
|
import java.util.Optional;
|
||||||
|
|
||||||
import org.springframework.beans.factory.annotation.Value;
|
import org.springframework.beans.factory.annotation.Value;
|
||||||
import org.springframework.jdbc.core.JdbcTemplate;
|
|
||||||
import org.springframework.stereotype.Repository;
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
@Repository
|
@Repository
|
||||||
|
|||||||
@@ -1598,6 +1598,17 @@ hr::before {
|
|||||||
border-radius: 3.2rem 0rem 0rem 0rem;
|
border-radius: 3.2rem 0rem 0rem 0rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.loading {
|
||||||
|
position: absolute;
|
||||||
|
left: 50%;
|
||||||
|
top: 50%;
|
||||||
|
-webkit-transform: translate(-50%, -50%);
|
||||||
|
transform: translate(-50%, -50%);
|
||||||
|
width: 4.8rem !important;
|
||||||
|
height: 4.8rem !important;
|
||||||
|
z-index: 3200;
|
||||||
|
}
|
||||||
|
|
||||||
/*약관 폰트 가이드 규칙*/
|
/*약관 폰트 가이드 규칙*/
|
||||||
.term-wrap .modal-content-inner {
|
.term-wrap .modal-content-inner {
|
||||||
margin-top: 3.2rem;
|
margin-top: 3.2rem;
|
||||||
|
|||||||
@@ -323,10 +323,13 @@ var ajaxUtil = {
|
|||||||
if (ajaxUtil.loadingStatus) {
|
if (ajaxUtil.loadingStatus) {
|
||||||
ajaxUtil.loadingStatus = false;
|
ajaxUtil.loadingStatus = false;
|
||||||
// TODO : 로딩바 숨김
|
// TODO : 로딩바 숨김
|
||||||
|
document.querySelector('#loadingBar').style.display = 'none';
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
_showWaiting:function(){
|
_showWaiting:function(){
|
||||||
ajaxUtil.loadingStatus = true;
|
ajaxUtil.loadingStatus = true;
|
||||||
// TODO : 로딩바 활성화
|
// TODO : 로딩바 활성화
|
||||||
|
document.querySelector('#loadingBar').style.display = 'block';
|
||||||
|
debugger
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
@@ -5,6 +5,7 @@
|
|||||||
|
|
||||||
<body>
|
<body>
|
||||||
<div id="wrap">
|
<div id="wrap">
|
||||||
|
<div class="loading" id="loadingBar" style="display: none"><i class="ico-spinner" aria-hidden="true"></i></div>
|
||||||
<section th:replace="~{common/components :: header(true)}"></section>
|
<section th:replace="~{common/components :: header(true)}"></section>
|
||||||
|
|
||||||
<div id="container" layout:fragment="content">
|
<div id="container" layout:fragment="content">
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
|
|
||||||
<body>
|
<body>
|
||||||
<div id="wrap">
|
<div id="wrap">
|
||||||
|
<div class="loading" id="loadingBar" style="display: none"><i class="ico-spinner" aria-hidden="true"></i></div>
|
||||||
<section th:replace="~{common/components :: header(true)}"></section>
|
<section th:replace="~{common/components :: header(true)}"></section>
|
||||||
|
|
||||||
<div id="container" layout:fragment="content">
|
<div id="container" layout:fragment="content">
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
|
|
||||||
<body>
|
<body>
|
||||||
<div id="wrap">
|
<div id="wrap">
|
||||||
|
<div class="loading" id="loadingBar" style="display: none"><i class="ico-spinner" aria-hidden="true"></i></div>
|
||||||
<section th:replace="~{common/components :: header(false)}"></section>
|
<section th:replace="~{common/components :: header(false)}"></section>
|
||||||
|
|
||||||
<div id="container" layout:fragment="content">
|
<div id="container" layout:fragment="content">
|
||||||
|
|||||||
@@ -303,6 +303,7 @@
|
|||||||
|
|
||||||
let formData = new FormData();
|
let formData = new FormData();
|
||||||
formData.append('file', file);
|
formData.append('file', file);
|
||||||
|
|
||||||
ajaxUtil._showWaiting();
|
ajaxUtil._showWaiting();
|
||||||
$.ajax({
|
$.ajax({
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
|
|||||||
Reference in New Issue
Block a user