Merge branch 'susu' into dev
This commit is contained in:
@@ -14,11 +14,11 @@
|
||||
<tr>
|
||||
<th>제목<i class="ico-required-mark" role="img" aria-label="필수">*</i></th>
|
||||
<td colspan="3">
|
||||
<div class="component-input">
|
||||
<div class="input-field">
|
||||
<input type="text" name="title" id="title" placeholder="">
|
||||
</div>
|
||||
<div class="component-input">
|
||||
<div class="input-field">
|
||||
<input type="text" name="title" id="title" placeholder="">
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -28,20 +28,28 @@
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>첨부파일<i class="ico-required-mark" role="img" aria-label="필수">*</i></th>
|
||||
<th>첨부파일</th>
|
||||
<td colspan="3">
|
||||
<div class="input-file-group">
|
||||
<label for="file" class="input-file-btn">
|
||||
<input type="file" name="multipartAttachments" id="file" onchange="uiUtil.uploadFile('NOTICE', this);" >
|
||||
<span class="file-txt">파일첨부</span>
|
||||
</label>
|
||||
<p class="desc">첨부 가능 파일 형식: 문서(pdf, docx, xlsx, pptx, hwp), 이미지(jpg, jpeg, png, gif), 기타(zip,
|
||||
csv, txt) / 파일당 최대 5MB까지 등록 가능합니다.</p>
|
||||
<ul class="file-list input-group" id="noticeAttachments">
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</td>
|
||||
<!-- <td colspan="3">
|
||||
<div class="btns-row align-left publicFileInputs">
|
||||
<button type="button" class="btn btn-secondary" onclick="addFileInput();">
|
||||
<span class="btn-txt">다건 파일 첨부</span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</td>
|
||||
</td>-->
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th>게시기간<i class="ico-required-mark" role="img" aria-label="필수">*</i></th>
|
||||
<td colspan="2">
|
||||
@@ -57,11 +65,9 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th>노출여부<i class="ico-required-mark" role="img" aria-label="필수">*</i></th>
|
||||
<td>
|
||||
@@ -75,8 +81,6 @@
|
||||
<td></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
@@ -102,7 +106,6 @@
|
||||
|
||||
<script th:inline="javascript">
|
||||
|
||||
|
||||
$(".flatpickr").flatpickr({
|
||||
dateFormat: "Y-m-d\\TH:i",
|
||||
// altInput: true,
|
||||
@@ -111,6 +114,7 @@
|
||||
enableTime: true,
|
||||
time_24hr: true
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
<script th:inline="javascript">
|
||||
@@ -120,13 +124,11 @@
|
||||
history.back();
|
||||
}
|
||||
|
||||
|
||||
const gotoList = () => {
|
||||
location.href = '/communication/notices';
|
||||
}
|
||||
|
||||
|
||||
function addFileInput() {
|
||||
/* function addFileInput() {
|
||||
const inputGroup = $(`
|
||||
<div class="input-group w-50">
|
||||
<input class="form-control mb-2" type="file" name="multipartAttachments"
|
||||
@@ -142,7 +144,7 @@
|
||||
return inputGroup;
|
||||
|
||||
}
|
||||
|
||||
*/
|
||||
|
||||
const getNotice = () => {
|
||||
const f = document.reqForm;
|
||||
@@ -167,11 +169,10 @@
|
||||
f.visible.value = res.visible;
|
||||
|
||||
res.uploadFiles.forEach((uploadFile) => {
|
||||
|
||||
let inputGroup = addFileInput();
|
||||
inputGroup.append(`<input type="hidden" name="fileMappingId" value="${uploadFile.id}"/>`);
|
||||
uiUtil.showFileInfo(inputGroup.find('input[type=file]'), uploadFile, false);
|
||||
|
||||
let inputGroup = $('#noticeAttachments');
|
||||
/* let inputGroup = addFileInput();
|
||||
inputGroup.append(`<input type="hidden" name="fileMappingId" value="${uploadFile.id}"/>`);*/
|
||||
uiUtil.showFileInfo(inputGroup, uploadFile, false);
|
||||
});
|
||||
}
|
||||
});
|
||||
@@ -180,9 +181,6 @@
|
||||
// 상세정보 얻기
|
||||
getNotice();
|
||||
|
||||
|
||||
|
||||
|
||||
const goSave = () => {
|
||||
const f = document.reqForm;
|
||||
|
||||
|
||||
@@ -97,6 +97,22 @@
|
||||
</div>
|
||||
<div class="tab-content" data-tab-value="tab2" th:unless="${activeProfile != 'local'}">
|
||||
<div class="content-inner">
|
||||
<article class="summary-area">
|
||||
<ul>
|
||||
<li>
|
||||
<p>당월 1차 방문</p>
|
||||
<span><strong id="firstVisitCount">6</strong>/<strong class="totalHouseholdCount">6</strong>(<strong id="firstVisitPercentage">6</strong>%)</span>
|
||||
</li>
|
||||
<li>
|
||||
<p>당월 2차 방문</p>
|
||||
<span><strong id="secondVisitCount">6</strong>/<strong class="totalHouseholdCount">6</strong>(<strong id="secondVisitPercentage">6</strong>%)</span>
|
||||
</li>
|
||||
<li>
|
||||
<p>답례품 전달</p>
|
||||
<span><strong id="giftSentCount">6</strong>/<strong class="totalHouseholdCount">6</strong>(<strong id="giftSentPercentage">6</strong>%)</span>
|
||||
</li>
|
||||
</ul>
|
||||
</article>
|
||||
<section class="table-group">
|
||||
<div class="table-tit-group">
|
||||
<h3>총 <strong id="household-visit-totalElements"></strong>건</h3>
|
||||
@@ -108,24 +124,25 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>
|
||||
<input onchange="toggleCheckbox(this);" type="checkbox"/>
|
||||
</th>
|
||||
<th>임가번호</th>
|
||||
<th>경영주명</th>
|
||||
<th>방문일</th>
|
||||
<th>관리분야</th>
|
||||
<th>내용</th>
|
||||
<th>작성일</th>
|
||||
<th>답례품 전달</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="household-visit-list">
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>
|
||||
<input onchange="toggleCheckbox(this);" type="checkbox"/>
|
||||
</th>
|
||||
<th>임가번호</th>
|
||||
<th>경영주명</th>
|
||||
<th>방문일</th>
|
||||
<th>관리분야</th>
|
||||
<th>내용</th>
|
||||
<th>작성일</th>
|
||||
<th>답례품 전달</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="household-visit-list">
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
@@ -169,6 +186,7 @@
|
||||
if (!form.searchMonth.value) {
|
||||
form.searchMonth.value = '[[${currentMonth}]]'; // 기본값 복원
|
||||
}
|
||||
getVisitHouseholdPercentage();
|
||||
getHouseholdVisitList(0);
|
||||
}
|
||||
});
|
||||
@@ -241,6 +259,35 @@
|
||||
);
|
||||
}
|
||||
|
||||
// 임가 방문 퍼센트
|
||||
const getVisitHouseholdPercentage=()=>{
|
||||
const f = document.householdReqForm;
|
||||
|
||||
let dataObj = {
|
||||
seq: f.seq.value,
|
||||
searchMonth: f.searchMonth.value,
|
||||
};
|
||||
ajaxUtil._ajaxMethod(
|
||||
'/api/researcher/visitHousehold/percentage',
|
||||
dataObj,
|
||||
function (response) {
|
||||
$('#firstVisitCount').text(response.firstVisitCount);
|
||||
$('#secondVisitCount').text(response.secondVisitCount);
|
||||
$('#giftSentCount').text(response.giftSentCount);
|
||||
$('#firstVisitPercentage').text(response.firstVisitPercentage);
|
||||
$('#secondVisitPercentage').text(response.secondVisitPercentage);
|
||||
$('#giftSentPercentage').text(response.giftSentPercentage);
|
||||
$('.totalHouseholdCount').text(response.totalHouseholdCount);
|
||||
},
|
||||
function (code, rstData) {
|
||||
|
||||
},
|
||||
'get',
|
||||
'json',
|
||||
null
|
||||
);
|
||||
}
|
||||
|
||||
// 임가 방문 정보
|
||||
const getHouseholdVisitList = (pageNo) => {
|
||||
const f = document.householdReqForm;
|
||||
@@ -346,7 +393,7 @@
|
||||
JSON.stringify(selectIds),
|
||||
function (response) {
|
||||
if(response > 0){
|
||||
alert('선택한 임가정보가 삭제되었습니다.');
|
||||
alert('선택한 임가 방문 정보가 삭제되었습니다.');
|
||||
getHouseholdVisitList(document.householdReqForm.page.value);
|
||||
} else {
|
||||
alert('삭제에 실패했습니다.');
|
||||
|
||||
@@ -98,11 +98,15 @@
|
||||
<tr>
|
||||
<th> <label for="inUse">사용여부</label></th>
|
||||
<td>
|
||||
<div class="component-select">
|
||||
<select class="form-select" id="inUse" name="inUse">
|
||||
<option value="true">사용</option>
|
||||
<option value="false">미사용</option>
|
||||
</select>
|
||||
<div class="d-flex">
|
||||
<div class="component-input">
|
||||
<div class="component-select">
|
||||
<select class="select-list" id="inUse" name="inUse">
|
||||
<option value="true">사용</option>
|
||||
<option value="false">미사용</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -231,13 +235,17 @@
|
||||
const previouslySelected = treeWrap.querySelector('button.selected');
|
||||
if (previouslySelected) {
|
||||
previouslySelected.classList.remove('selected');
|
||||
if (previouslySelected.classList.contains('tit')) {
|
||||
/* if (previouslySelected.classList.contains('tit')) {
|
||||
previouslySelected.parentNode.classList.add('folding');
|
||||
}
|
||||
}*/
|
||||
}
|
||||
button.classList.add('selected');
|
||||
if (button.classList.contains('tit')) {
|
||||
button.parentNode.classList.remove('folding');
|
||||
if(button.parentNode.classList.contains('folding')){
|
||||
button.parentNode.classList.remove('folding');
|
||||
}else{
|
||||
button.parentNode.classList.add('folding');
|
||||
}
|
||||
}
|
||||
// 노드 데이터 추출
|
||||
const data = {
|
||||
|
||||
Reference in New Issue
Block a user