FO 로그인 input 수정
This commit is contained in:
@@ -14,5 +14,5 @@ public class ResearchersVisitDetailReqVO {
|
|||||||
private String visitDate;
|
private String visitDate;
|
||||||
private ManagementType managementType;
|
private ManagementType managementType;
|
||||||
private String content;
|
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-box;
|
||||||
display: -webkit-flex;
|
display: -webkit-flex;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
-webkit-box-align: center;
|
||||||
|
-webkit-align-items: center;
|
||||||
|
align-items: center;
|
||||||
gap: 0.8rem;
|
gap: 0.8rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -4827,7 +4830,7 @@ input[type=number] {
|
|||||||
-webkit-box-align: center;
|
-webkit-box-align: center;
|
||||||
-webkit-align-items: center;
|
-webkit-align-items: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
height: 16rem;
|
height: 32rem;
|
||||||
border: 1px solid gainsboro;
|
border: 1px solid gainsboro;
|
||||||
background-color: #ffffff;
|
background-color: #ffffff;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
@@ -4984,6 +4987,96 @@ input[type=number] {
|
|||||||
color: red;
|
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 checkbox */
|
||||||
.component-input {
|
.component-input {
|
||||||
/* component checkbox switch */
|
/* component checkbox switch */
|
||||||
|
|||||||
@@ -20,7 +20,18 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<th>방문일</th>
|
<th>방문일</th>
|
||||||
<td>
|
<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>
|
</td>
|
||||||
<th>관리분야</th>
|
<th>관리분야</th>
|
||||||
<td>
|
<td>
|
||||||
@@ -92,10 +103,21 @@
|
|||||||
const showHouseholdModal2 = (seq) => {
|
const showHouseholdModal2 = (seq) => {
|
||||||
const modal = document.querySelector(".modal02");
|
const modal = document.querySelector(".modal02");
|
||||||
modal.ui.open();
|
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(
|
ajaxUtil._ajaxMethod(
|
||||||
'/api/researcher/visitHousehold/'+seq,
|
'/api/researcher/visitHousehold/'+seq,
|
||||||
null,
|
null,
|
||||||
@@ -119,13 +141,15 @@
|
|||||||
const setFormData = (data) => {
|
const setFormData = (data) => {
|
||||||
// 폼 필드에 데이터 세팅
|
// 폼 필드에 데이터 세팅
|
||||||
const f = document.householdVisitReqForm;
|
const f = document.householdVisitReqForm;
|
||||||
if (data.visitDate) {
|
|
||||||
const visitDate = data.visitDate.substring(0, 10); // 'YYYY-MM-DD' 형식
|
if (datepickerInstance && data.visitDate) {
|
||||||
if (visitDatePicker) {
|
|
||||||
f.visitDate.value = visitDate; // 입력 필드 먼저 설정
|
console.log(data.visitDate);
|
||||||
visitDatePicker.setDate(visitDate); // Flatpickr 동기화
|
console.log(new Date(data.visitDate));
|
||||||
}
|
|
||||||
|
datepickerInstance.setDate(new Date(data.visitDate), { render: true });
|
||||||
}
|
}
|
||||||
|
|
||||||
if (data.managementType) {
|
if (data.managementType) {
|
||||||
f.managementType.value= data.managementType;
|
f.managementType.value= data.managementType;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,8 +21,8 @@
|
|||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="input-field">
|
<div class="input-field">
|
||||||
<input autofocus class="" id="floatingInput" name="username" placeholder="임가번호를 입력해 주세요" value="11111"
|
<input autofocus maxlength="5" id="floatingInput" pattern="[0-9]*" name="username" placeholder="임가번호를 입력해 주세요"
|
||||||
type="number" maxlength="5">
|
type="text" inputmode="numeric">
|
||||||
</div>
|
</div>
|
||||||
<ul class="input-info" id="username-error" style="display: none;">
|
<ul class="input-info" id="username-error" style="display: none;">
|
||||||
<li>임가번호를 입력해주세요</li>
|
<li>임가번호를 입력해주세요</li>
|
||||||
@@ -35,7 +35,7 @@
|
|||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="input-field">
|
<div class="input-field">
|
||||||
<input type="password" name="password" id="floatingPassword" placeholder="비밀번호 4자리를 입력해 주세요" value="1111" maxlength="4">
|
<input type="password" name="password" id="floatingPassword" placeholder="비밀번호 4자리를 입력해 주세요" maxlength="4">
|
||||||
</div>
|
</div>
|
||||||
<ul class="input-info" id="password-error" style="display: none;">
|
<ul class="input-info" id="password-error" style="display: none;">
|
||||||
<li>비밀번호를 입력해주세요</li>
|
<li>비밀번호를 입력해주세요</li>
|
||||||
@@ -95,7 +95,8 @@
|
|||||||
const userNameValue = floatingInput.value;
|
const userNameValue = floatingInput.value;
|
||||||
const errorContainer = document.getElementById('username-error');
|
const errorContainer = document.getElementById('username-error');
|
||||||
const parentComponent = floatingInput.closest('.component-input');
|
const parentComponent = floatingInput.closest('.component-input');
|
||||||
if (userNameValue.length < 5) {
|
const isNumeric = /^[0-9]+$/.test(userNameValue);
|
||||||
|
if (userNameValue.length < 5 || !isNumeric) {
|
||||||
parentComponent.classList.add('input-invalid');
|
parentComponent.classList.add('input-invalid');
|
||||||
errorContainer.style.display = 'block';
|
errorContainer.style.display = 'block';
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user