FO 로그인 input 수정
This commit is contained in:
@@ -14,5 +14,5 @@ public class ResearchersVisitDetailReqVO {
|
||||
private String visitDate;
|
||||
private ManagementType managementType;
|
||||
private String content;
|
||||
private String isGiftSentFlag;
|
||||
private String isGiftSent;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<rect x="2.75" y="3.75" width="14.5" height="12.5" rx="1.25" stroke="#212529" stroke-width="1.5"/>
|
||||
<path d="M3 7H17" stroke="#212529" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<path d="M6 2.4668V4.89148" stroke="#212529" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<path d="M14 2.4668V4.89148" stroke="#212529" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 532 B |
@@ -4704,6 +4704,9 @@ button.swiper-pagination-bullet {
|
||||
display: -webkit-box;
|
||||
display: -webkit-flex;
|
||||
display: flex;
|
||||
-webkit-box-align: center;
|
||||
-webkit-align-items: center;
|
||||
align-items: center;
|
||||
gap: 0.8rem;
|
||||
}
|
||||
|
||||
@@ -4827,7 +4830,7 @@ input[type=number] {
|
||||
-webkit-box-align: center;
|
||||
-webkit-align-items: center;
|
||||
align-items: center;
|
||||
height: 16rem;
|
||||
height: 32rem;
|
||||
border: 1px solid gainsboro;
|
||||
background-color: #ffffff;
|
||||
overflow: hidden;
|
||||
@@ -4984,6 +4987,96 @@ input[type=number] {
|
||||
color: red;
|
||||
}
|
||||
|
||||
.input-file-group input {
|
||||
display: none;
|
||||
}
|
||||
.input-file-group .file-txt {
|
||||
display: -webkit-box;
|
||||
display: -webkit-flex;
|
||||
display: flex;
|
||||
-webkit-box-align: center;
|
||||
-webkit-align-items: center;
|
||||
align-items: center;
|
||||
-webkit-box-pack: center;
|
||||
-webkit-justify-content: center;
|
||||
justify-content: center;
|
||||
width: 8rem;
|
||||
height: 3.6rem;
|
||||
background-color: #495057;
|
||||
color: #FFFFFF;
|
||||
font-size: 1.5rem;
|
||||
font-weight: 600;
|
||||
border-radius: 0.4rem;
|
||||
}
|
||||
.input-file-group .desc {
|
||||
margin-top: 0.8rem;
|
||||
display: block;
|
||||
text-align: left;
|
||||
font-size: 1.4rem;
|
||||
color: #868E96;
|
||||
}
|
||||
.input-file-group .file-list {
|
||||
margin-top: 1.6rem;
|
||||
text-align: left;
|
||||
}
|
||||
.input-file-group .file-list li {
|
||||
display: -webkit-box;
|
||||
display: -webkit-flex;
|
||||
display: flex;
|
||||
-webkit-box-align: center;
|
||||
-webkit-align-items: center;
|
||||
align-items: center;
|
||||
}
|
||||
.input-file-group .file-list li .btn-delete {
|
||||
margin-left: 0.4rem;
|
||||
padding: 0;
|
||||
width: 1.6rem;
|
||||
height: 1.6rem;
|
||||
background-image: url("../images/common/ico_close_white.svg");
|
||||
background-color: #CED4DA;
|
||||
background-repeat: no-repeat;
|
||||
background-size: 10px 10px;
|
||||
background-position: center;
|
||||
border-radius: 0.2rem;
|
||||
}
|
||||
.input-file-group .file-list li + li {
|
||||
margin-top: 0.8rem;
|
||||
}
|
||||
|
||||
input[type=datetime-local] {
|
||||
position: relative;
|
||||
background: url("../images/common/ico_calendar.svg") no-repeat right 16px center/20px auto;
|
||||
}
|
||||
|
||||
input[type=datetime-local]::-webkit-calendar-picker-indicator {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: transparent;
|
||||
color: transparent;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.date-range-group {
|
||||
display: -webkit-box;
|
||||
display: -webkit-flex;
|
||||
display: flex;
|
||||
-webkit-box-align: center;
|
||||
-webkit-align-items: center;
|
||||
align-items: center;
|
||||
gap: 0.6rem;
|
||||
}
|
||||
.date-range-group .component-input {
|
||||
width: -webkit-fit-content !important;
|
||||
width: -moz-fit-content !important;
|
||||
width: fit-content !important;
|
||||
}
|
||||
.date-range-group .component-input .input-field {
|
||||
width: 23rem;
|
||||
}
|
||||
|
||||
/* component checkbox */
|
||||
.component-input {
|
||||
/* component checkbox switch */
|
||||
|
||||
@@ -20,7 +20,18 @@
|
||||
<tr>
|
||||
<th>방문일</th>
|
||||
<td>
|
||||
<input id="visitDate" class="flatpickr" name="visitDate" type="text" placeholder="방문일을 선택하세요"/>
|
||||
<div class="component-datepicker">
|
||||
<div class="component-input">
|
||||
<div class="input-field">
|
||||
<input type="text" class="datepicker-btn-trigger" name="visitDate" id="visitDate" aria-label="시작일"
|
||||
placeholder="방문일을 입력해주세요" />
|
||||
<span class="input-field-btn datepicker-state">
|
||||
<span class="hide-txt">달력</span>
|
||||
<i class="ico-calendar ico-normal" aria-hidden="true"></i>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<th>관리분야</th>
|
||||
<td>
|
||||
@@ -92,10 +103,21 @@
|
||||
const showHouseholdModal2 = (seq) => {
|
||||
const modal = document.querySelector(".modal02");
|
||||
modal.ui.open();
|
||||
const $el = document.querySelector('.component-datepicker');
|
||||
const datepicker = etUI.components.DatepickerComp();
|
||||
datepicker.core.init($el, {
|
||||
dateSelectCallback: function (selectedDate) {
|
||||
console.log('선택된 날짜:', selectedDate);
|
||||
}
|
||||
});
|
||||
|
||||
datepickerInstance = datepicker.getDatepickerInstance();
|
||||
|
||||
// 초기 상태 오늘 날짜로
|
||||
if (datepickerInstance) {
|
||||
datepickerInstance.setDate(new Date(), { render: true });
|
||||
}
|
||||
|
||||
setTimeout(() => {
|
||||
initFlatpickr(); // Flatpickr 초기화 통합
|
||||
}, 0);
|
||||
ajaxUtil._ajaxMethod(
|
||||
'/api/researcher/visitHousehold/'+seq,
|
||||
null,
|
||||
@@ -119,13 +141,15 @@
|
||||
const setFormData = (data) => {
|
||||
// 폼 필드에 데이터 세팅
|
||||
const f = document.householdVisitReqForm;
|
||||
if (data.visitDate) {
|
||||
const visitDate = data.visitDate.substring(0, 10); // 'YYYY-MM-DD' 형식
|
||||
if (visitDatePicker) {
|
||||
f.visitDate.value = visitDate; // 입력 필드 먼저 설정
|
||||
visitDatePicker.setDate(visitDate); // Flatpickr 동기화
|
||||
}
|
||||
|
||||
if (datepickerInstance && data.visitDate) {
|
||||
|
||||
console.log(data.visitDate);
|
||||
console.log(new Date(data.visitDate));
|
||||
|
||||
datepickerInstance.setDate(new Date(data.visitDate), { render: true });
|
||||
}
|
||||
|
||||
if (data.managementType) {
|
||||
f.managementType.value= data.managementType;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user