[FO] 일계부 이전/다음/종료/완료 페이지 이동 처리, 건의사항 등록
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
||||
<mapper namespace="app.module.front.usecase.suggestion.adapters.persistence.SuggestionMapper">
|
||||
|
||||
<insert id="createSuggestion">
|
||||
insert into suggestion (
|
||||
household_seq
|
||||
, content
|
||||
, is_deleted
|
||||
, <include refid="common.fields.CreateUpdateBaseColumns"/>
|
||||
) values (
|
||||
#{householdSeq}
|
||||
, #{content}
|
||||
, false
|
||||
, <include refid="common.fields.CreateUpdateBaseValues"/>
|
||||
)
|
||||
</insert>
|
||||
|
||||
</mapper>
|
||||
@@ -43,3 +43,4 @@ uri.front.record.expense.{{pathVar}}=\uC77C\uACC4\uBD80 \uB4F1\uB85D
|
||||
uri.front.record.work.{{pathVar}}=\uC77C\uACC4\uBD80 \uB4F1\uB85D
|
||||
uri.front.record.power.{{pathVar}}=\uC77C\uACC4\uBD80 \uB4F1\uB85D
|
||||
uri.front.record.forestry.{{pathVar}}=\uC77C\uACC4\uBD80 \uB4F1\uB85D
|
||||
uri.front.record.daily.done=\uC77C\uACC4\uBD80 \uB4F1\uB85D
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -5,63 +5,82 @@ krip.daily.httpUrl = {
|
||||
root: '/record/calendar',
|
||||
daily: '/record/daily/{month}/{groupNo}',
|
||||
target: '/record/{target}/{month}/{groupNo}',
|
||||
// income: '/record/daily/{month}/{groupNo}/income',
|
||||
// work: '/record/daily/{month}/{groupNo}/work',
|
||||
// expense: '/record/daily/{month}/{groupNo}/expense',
|
||||
// power: '/record/daily/{month}/{groupNo}/power',
|
||||
// forestry: '/record/daily/{month}/{groupNo}/forestry',
|
||||
};
|
||||
|
||||
/**
|
||||
* 일계부 현황으로 이동
|
||||
*/
|
||||
krip.daily.goToMain = function() {
|
||||
location.href = krip.daily.httpUrl.root;
|
||||
};
|
||||
|
||||
krip.daily.goToPrev = function(target, searchMonth, groupNo) {
|
||||
let url = krip.daily.httpUrl.target;
|
||||
url = url.replace('{month}', searchMonth);
|
||||
url = url.replace('{groupNo}', groupNo);
|
||||
url = url.replace('{target}', target);
|
||||
|
||||
console.log(url);
|
||||
};
|
||||
|
||||
/**
|
||||
* 이전 단계로 이동
|
||||
*/
|
||||
krip.daily.goToPrev = function() {
|
||||
// TODO : history.back 으로 해결 되는가?
|
||||
history.back();
|
||||
};
|
||||
|
||||
/**
|
||||
* 다음 단계로 이동
|
||||
* @param target
|
||||
* @param searchMonth
|
||||
* @param groupNo
|
||||
*/
|
||||
krip.daily.goToNext = function(target, searchMonth, groupNo) {
|
||||
let url = krip.daily.httpUrl.target;
|
||||
url = url.replace('{month}', searchMonth);
|
||||
url = url.replace('{groupNo}', groupNo);
|
||||
url = url.replace('{target}', target);
|
||||
url = url.replace('{target}', target.toLowerCase());
|
||||
|
||||
if (target === 'LAST') {
|
||||
alert('LAST');
|
||||
|
||||
const commentModal = document.querySelector('.commentModal').ui;
|
||||
commentModal.open();
|
||||
|
||||
/*
|
||||
commentModal.open({
|
||||
afterClose() {
|
||||
console.log(1111)
|
||||
}
|
||||
});
|
||||
*/
|
||||
|
||||
//modal02.afterClose
|
||||
|
||||
/*
|
||||
const $modal1 = document.querySelector('.modal02');
|
||||
const modalInstance1 = new etUI.components.Modal();
|
||||
modalInstance1.core.init($modal1, {
|
||||
afterClose(){
|
||||
console.log('ssssssssssssss')
|
||||
}
|
||||
});
|
||||
*/
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
location.href = url;
|
||||
};
|
||||
|
||||
/**
|
||||
* 금일 등록내용 없음 변경
|
||||
* @param month
|
||||
* 완료 단계로 이동
|
||||
* @param searchMonth
|
||||
* @param groupNo
|
||||
* @param target
|
||||
* @param checked
|
||||
*/
|
||||
krip.daily.todayNone = function(month, groupNo, target, checked) {
|
||||
let url = '/api/record/daily/{month}/{groupNo}/today-none'.replace('{month}', month).replace('{groupNo}', groupNo);
|
||||
url += '?target=' + target;
|
||||
url += '&status=' + (checked ? 'Y' : 'N');
|
||||
krip.daily.goToDone = function(searchMonth, groupNo) {
|
||||
let url = krip.daily.httpUrl.daily + '/done';
|
||||
url = url.replace('{month}', searchMonth);
|
||||
url = url.replace('{groupNo}', groupNo);
|
||||
|
||||
ajaxUtil._ajaxAsync(
|
||||
url,
|
||||
{},
|
||||
function (rstData, status) {
|
||||
console.log('rstData', rstData)
|
||||
|
||||
$('.component-btns').find('.btn-primary').attr('disabled', !checked);
|
||||
},
|
||||
);
|
||||
location.replace(url);
|
||||
};
|
||||
|
||||
/**
|
||||
* 기본 UI
|
||||
*/
|
||||
krip.daily.baseBindUI = function() {
|
||||
etUI.locales.ko = {
|
||||
dialog: {
|
||||
@@ -97,6 +116,10 @@ krip.daily.baseBindUI = function() {
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 수정 팝업
|
||||
* @param id
|
||||
*/
|
||||
krip.daily.createModal = function(id) {
|
||||
if (ENV.httpUrl.form === undefined) {
|
||||
kri.logger.warn('[daily] form url is none.');
|
||||
@@ -126,6 +149,10 @@ krip.daily.createModal = function(id) {
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* 삭제 안내 팝업
|
||||
* @param id
|
||||
*/
|
||||
krip.daily.removeConfirm = function(id) {
|
||||
etUI.dialog.alert({
|
||||
title: '삭제 안내',
|
||||
@@ -138,6 +165,10 @@ krip.daily.removeConfirm = function(id) {
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 삭제 처리
|
||||
* @param id
|
||||
*/
|
||||
krip.daily.remove = function(id) {
|
||||
if (ENV.httpUrl.remove === undefined) {
|
||||
kri.logger.warn('[daily] remove url is none.');
|
||||
@@ -153,6 +184,9 @@ krip.daily.remove = function(id) {
|
||||
);
|
||||
};
|
||||
|
||||
/**
|
||||
* 초기화 안내 팝업
|
||||
*/
|
||||
krip.daily.resetConfirm = function() {
|
||||
etUI.dialog.alert({
|
||||
title: '초기화 안내',
|
||||
@@ -165,6 +199,9 @@ krip.daily.resetConfirm = function() {
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 초기화 처리
|
||||
*/
|
||||
krip.daily.reset = function() {
|
||||
if (ENV.httpUrl.reset === undefined) {
|
||||
kri.logger.warn('[daily] reset url is none.');
|
||||
@@ -178,4 +215,51 @@ krip.daily.reset = function() {
|
||||
location.reload();
|
||||
},
|
||||
);
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* 금일 등록내용 없음 변경 처리
|
||||
* @param month
|
||||
* @param groupNo
|
||||
* @param target
|
||||
* @param checked
|
||||
*/
|
||||
krip.daily.todayNone = function(month, groupNo, target, checked) {
|
||||
let url = '/api/record/daily/{month}/{groupNo}/today-none'.replace('{month}', month).replace('{groupNo}', groupNo);
|
||||
url += '?target=' + target;
|
||||
url += '&status=' + (checked ? 'Y' : 'N');
|
||||
|
||||
ajaxUtil._ajaxAsync(
|
||||
url,
|
||||
{},
|
||||
function (rstData, status) {
|
||||
console.log('rstData', rstData)
|
||||
|
||||
$('.component-btns').find('.btn-primary').attr('disabled', !checked);
|
||||
},
|
||||
);
|
||||
};
|
||||
|
||||
/**
|
||||
* 임가 건의사항 등록 처리
|
||||
* @param month
|
||||
* @param groupNo
|
||||
*/
|
||||
krip.daily.createComment = function(month, groupNo) {
|
||||
const f = document.commentReqForm;
|
||||
|
||||
const obj = $(f).serializeObject();
|
||||
console.log(obj)
|
||||
if (f.content.value === '') {
|
||||
krip.daily.goToDone(month, groupNo);
|
||||
return;
|
||||
}
|
||||
|
||||
ajaxUtil._ajaxAsync(
|
||||
'/api/suggestion',
|
||||
obj,
|
||||
function () {
|
||||
krip.daily.goToDone(month, groupNo);
|
||||
},
|
||||
);
|
||||
};
|
||||
|
||||
@@ -110,8 +110,8 @@
|
||||
<h2>[[${#messages.msg(currentURI.id)}]]</h2>
|
||||
</div>
|
||||
</div>
|
||||
<!--/* TODO 전체메뉴 선택 */-->
|
||||
<button type="button" class="btn-allmenu"><span class="hide-txt">전체메뉴 열기</span></button>
|
||||
<!--/* TODO 전체메뉴 선택 2차 */-->
|
||||
<!--<button type="button" class="btn-allmenu"><span class="hide-txt">전체메뉴 열기</span></button>-->
|
||||
</div>
|
||||
</header>
|
||||
</th:block>
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
49
front/src/main/resources/templates/record/comment-modal.html
Normal file
49
front/src/main/resources/templates/record/comment-modal.html
Normal file
@@ -0,0 +1,49 @@
|
||||
<!--/* [정책] 매달 30~31일 현황 등록 시에 마지막 완료 단계 직전에 노출 */-->
|
||||
<div class="layer-wrap">
|
||||
<div class="component-modal acco-wrap commentModal" data-props-dimm-click="true">
|
||||
<div class="modal-dimm"></div>
|
||||
<div class="modal-frame">
|
||||
<div class="modal-container">
|
||||
<div class="modal-header">
|
||||
<h3 class="modal-tit">임가 건의사항 등록</h3>
|
||||
</div>
|
||||
<div class="modal-content">
|
||||
<div class="modal-content-inner">
|
||||
|
||||
<article class="alert-box full green">
|
||||
<ul>
|
||||
<li>임가경제조사 일계부를 작성하시면서 필요한 사항이나 불편하신 점 있으면 적어주세요. 보내주신 의견에 대해서는 가급적 빨리 답변을 드리겠습니다.</li>
|
||||
</ul>
|
||||
</article>
|
||||
|
||||
<form name="commentReqForm">
|
||||
<section class="form-group">
|
||||
<div class="segment-label">
|
||||
<p class="label-txt">
|
||||
임가 건의사항
|
||||
</p>
|
||||
</div>
|
||||
<div class="component-input" data-props-count="1000" data-props-count-limit="1000">
|
||||
<div class="input-textarea-field">
|
||||
<textarea id="temp_textarea_0001" name="content" type="textarea" class="textarea" placeholder="임가 건의사항을 입력해 주세요."></textarea>
|
||||
<span class="textarea-count" style="opacity: 1">(<em class="textarea-count-num">0</em>/<em class="textarea-count-total">1000</em>)</span>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</form>
|
||||
|
||||
<div class="component-btns">
|
||||
<div class="btns-row">
|
||||
<button type="button" class="btn btn-full btn-l btn-primary"
|
||||
th:onclick="krip.daily.createComment([[${reqVO.searchMonth}]], [[${reqVO.groupNo}]])">
|
||||
<span class="btn-txt">등록</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<button type="button" class="modal-close"></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -100,12 +100,17 @@
|
||||
|
||||
<div class="component-btns fixed">
|
||||
<div class="btns-row">
|
||||
<button type="button" class="btn btn-l btn-primary" th:onclick="formControl.createValid([[${reqVO.searchMonth}]], [[${reqVO.groupNo}]])">
|
||||
<button type="button" class="btn btn-l btn-primary _nextStep"
|
||||
th:data-last="${dailyRecord.lastDay}"
|
||||
th:onclick="formControl.createValid([[${reqVO.searchMonth}]], [[${reqVO.groupNo}]])">
|
||||
<span class="btn-txt">다음 단계로 이동</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- /* 건의사항 모달 팝업 */ -->
|
||||
<th:block th:replace="~{/record/comment-modal}"></th:block>
|
||||
<!-- /* //건의사항 모달 팝업 */ -->
|
||||
</div>
|
||||
|
||||
<section layout:fragment="script">
|
||||
@@ -115,8 +120,8 @@
|
||||
httpUrl: {
|
||||
create: /*[[|/api/record/daily/${reqVO.searchMonth}/${reqVO.groupNo}|]]*/'createUrl',
|
||||
},
|
||||
month: [[${reqVO.searchMonth}]],
|
||||
groupNo: [[${reqVO.groupNo}]],
|
||||
month: /*[[${reqVO.searchMonth}]]*/'month',
|
||||
groupNo: /*[[${reqVO.groupNo}]]*/'groupNo',
|
||||
submitted: false,
|
||||
};
|
||||
|
||||
@@ -140,17 +145,17 @@
|
||||
|
||||
let message = ', 등록하실 항목이 없나요?';
|
||||
let $messageWrap = $('#content .tit-group h3');
|
||||
if ($messageWrap.data('start').indexOf($messageWrap.data('end')) !== -1) {
|
||||
if ($messageWrap.data('start').indexOf($messageWrap.data('end')) === -1) {
|
||||
message = $messageWrap.data('start') + '~' + $messageWrap.data('end') + message;
|
||||
} else {
|
||||
message = $messageWrap.data('start') + message;
|
||||
}
|
||||
|
||||
etUI.dialog.alert({
|
||||
title: "등록 항목 확인",
|
||||
title: '등록 항목 확인',
|
||||
message: message,
|
||||
type: "confirm",
|
||||
dialogType: "confirm",
|
||||
type: 'confirm',
|
||||
dialogType: 'confirm',
|
||||
callback: function () {
|
||||
formControl.create();
|
||||
},
|
||||
@@ -169,9 +174,13 @@
|
||||
obj,
|
||||
function () {
|
||||
if (f.todayNone.value === 'Y') {
|
||||
krip.daily.goToMain();
|
||||
if ($('._nextStep').data('last')) {
|
||||
krip.daily.goToNext('LAST', ENV.month, ENV.groupNo);
|
||||
} else {
|
||||
krip.daily.goToDone(ENV.month, ENV.groupNo);
|
||||
}
|
||||
} else {
|
||||
krip.daily.goToNext($('input:checked').eq(0).data('target'), ENV.month, ENV.groupNo);
|
||||
krip.daily.goToMain();
|
||||
}
|
||||
},
|
||||
);
|
||||
|
||||
37
front/src/main/resources/templates/record/daily/done.html
Normal file
37
front/src/main/resources/templates/record/daily/done.html
Normal file
@@ -0,0 +1,37 @@
|
||||
<!DOCTYPE html>
|
||||
<html layout:decorate="~{layout/layout-none}" xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
|
||||
xmlns:th="http://www.thymeleaf.org" lang="ko">
|
||||
|
||||
<div layout:fragment="content" th:classappend="acco-wrap">
|
||||
<th:block th:if="${@systemProperties['spring.profiles.active'] eq 'local'}">
|
||||
<div>
|
||||
reqVO: [[${reqVO}]]
|
||||
</div>
|
||||
<div>
|
||||
detail: [[${dailyRecord}]]
|
||||
</div>
|
||||
</th:block>
|
||||
<main id="content" role="main">
|
||||
일계부 등록이
|
||||
모두 완료 되었습니다.
|
||||
</main>
|
||||
</div>
|
||||
|
||||
<section layout:fragment="script">
|
||||
<script th:src="@{/static/ui/page/daily-record.js}"></script>
|
||||
<script th:inline="javascript">
|
||||
let ENV = {
|
||||
httpUrl: {
|
||||
create: /*[[|/api/record/daily/${reqVO.searchMonth}/${reqVO.groupNo}|]]*/'createUrl',
|
||||
},
|
||||
month: [[${reqVO.searchMonth}]],
|
||||
groupNo: [[${reqVO.groupNo}]],
|
||||
submitted: false,
|
||||
};
|
||||
|
||||
let formControl = {
|
||||
};
|
||||
</script>
|
||||
</section>
|
||||
|
||||
</html>
|
||||
102
front/src/main/resources/templates/record/daily/finish.html
Normal file
102
front/src/main/resources/templates/record/daily/finish.html
Normal file
@@ -0,0 +1,102 @@
|
||||
<!DOCTYPE html>
|
||||
<html layout:decorate="~{layout/layout-none}" xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
|
||||
xmlns:th="http://www.thymeleaf.org" lang="ko">
|
||||
|
||||
<div layout:fragment="content" th:classappend="acco-wrap">
|
||||
<main id="content" role="main">
|
||||
<div class="inner">
|
||||
<hgroup class="tit-group">
|
||||
<i class="ico-alert-lightgreen ico-xlarge" aria-hidden="true"></i>
|
||||
<h3>
|
||||
일계부 등록이 <br>
|
||||
종료 되었습니다.
|
||||
</h3>
|
||||
<p>
|
||||
추가 입력 없이 등록 절차를 마쳤습니다. <br>
|
||||
항목에 대한 '추가/수정/삭제'는 일계부에서 가능합니다.
|
||||
</p>
|
||||
</hgroup>
|
||||
|
||||
<section class="regist-item-area complete">
|
||||
<div class="item-list">
|
||||
<div class="list-item no-data"
|
||||
th:each="item, itemStatus : ${dailyRecord.targetList}">
|
||||
<div class="item-tit-group">
|
||||
<p class="item-name">[[${item.desc}]]</p>
|
||||
</div>
|
||||
<ul class="detail-list">
|
||||
<li>
|
||||
<p>없음</p>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="list-item no-data">
|
||||
<div class="item-tit-group">
|
||||
<p class="item-name">임업노동 투입</p>
|
||||
</div>
|
||||
<ul class="detail-list">
|
||||
<li>
|
||||
<p>없음</p>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="list-item no-data">
|
||||
<div class="item-tit-group">
|
||||
<p class="item-name">지출</p>
|
||||
</div>
|
||||
<ul class="detail-list">
|
||||
<li>
|
||||
<p>없음</p>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="list-item no-data">
|
||||
<div class="item-tit-group">
|
||||
<p class="item-name">동력 사용시간</p>
|
||||
</div>
|
||||
<ul class="detail-list">
|
||||
<li>
|
||||
<p>없음</p>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="list-item no-data">
|
||||
<div class="item-tit-group">
|
||||
<p class="item-name">임업생산물 중 자가소비량</p>
|
||||
</div>
|
||||
<ul class="detail-list">
|
||||
<li>
|
||||
<p>없음</p>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="list-item no-data">
|
||||
<div class="item-tit-group">
|
||||
<p class="item-name">농업생산물 중 자가소비량</p>
|
||||
</div>
|
||||
<ul class="detail-list">
|
||||
<li>
|
||||
<p>없음</p>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<div class="component-btns fixed">
|
||||
<div class="btns-row">
|
||||
<button type="button" class="btn btn-l btn-primary" onclick="krip.daily.goToMain();">
|
||||
<span class="btn-txt">확인</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<section layout:fragment="script">
|
||||
<script th:src="@{/static/ui/page/daily-record.js}"></script>
|
||||
</section>
|
||||
|
||||
</html>
|
||||
@@ -92,13 +92,15 @@
|
||||
</main>
|
||||
|
||||
<!-- 하단 고정 버튼 -->
|
||||
<div class="component-btns fixed">
|
||||
<div class="component-btns fixed"
|
||||
th:if="${moveStep}">
|
||||
<div class="btns-row">
|
||||
<button type="button" class="btn btn-l btn-secondary" onclick="krip.daily.goToPrev();">
|
||||
<span class="btn-txt">이전 단계로 이동</span>
|
||||
</button>
|
||||
<button type="button" class="btn btn-l btn-primary"
|
||||
th:disabled="${not #strings.equals(dailyRecord.expenseStatus, 'TODAY_NONE') and #lists.isEmpty(expenseList)}">
|
||||
th:disabled="${not #strings.equals(dailyRecord.expenseStatus, 'TODAY_NONE') and #lists.isEmpty(expenseList)}"
|
||||
th:onclick="krip.daily.goToNext([[${nextStep}]], [[${reqVO.searchMonth}]], [[${reqVO.groupNo}]])">
|
||||
<span class="btn-txt">다음 단계로 이동</span>
|
||||
</button>
|
||||
</div>
|
||||
@@ -122,6 +124,9 @@
|
||||
</div>
|
||||
</div>
|
||||
<!-- //모달 팝업 -->
|
||||
<!-- /* 건의사항 모달 팝업 */ -->
|
||||
<th:block th:replace="~{/record/comment-modal}"></th:block>
|
||||
<!-- /* //건의사항 모달 팝업 */ -->
|
||||
</div>
|
||||
|
||||
<section layout:fragment="script">
|
||||
@@ -165,10 +170,7 @@
|
||||
console.log('selectItemCallback', selectValue, dataValue)
|
||||
$('input[name="unitCode"]').val(dataValue)
|
||||
|
||||
// TODO : ui js 에서 show 적용유무 파악하기
|
||||
if (dataValue === 'code.record.unit.self') {
|
||||
$('#unitCode').parent().find('.component-input').addClass('show');
|
||||
}
|
||||
etUI.pages.initDirectInputToggle();
|
||||
}
|
||||
});
|
||||
|
||||
@@ -220,16 +222,7 @@
|
||||
ENV.httpUrl.create.replace('{id}', f.id.value ? f.id.value : '0'),
|
||||
obj,
|
||||
function (rstData, status) {
|
||||
console.log('rstData', rstData)
|
||||
location.reload();
|
||||
// TODO : next
|
||||
/*
|
||||
if (f.todayNone.value === 'Y') {
|
||||
krip.daily.goToMain();
|
||||
} else {
|
||||
krip.daily.goToNext($('input:checked').eq(0).data('target'), ENV.month, ENV.groupNo);
|
||||
}
|
||||
*/
|
||||
},
|
||||
);
|
||||
},
|
||||
|
||||
@@ -96,13 +96,15 @@
|
||||
</main>
|
||||
|
||||
<!-- 하단 고정 버튼 -->
|
||||
<div class="component-btns fixed">
|
||||
<div class="component-btns fixed"
|
||||
th:if="${moveStep}">
|
||||
<div class="btns-row">
|
||||
<button type="button" class="btn btn-l btn-secondary" onclick="krip.daily.goToPrev();">
|
||||
<span class="btn-txt">이전 단계로 이동</span>
|
||||
</button>
|
||||
<button type="button" class="btn btn-l btn-primary"
|
||||
th:disabled="${not #strings.equals(dailyRecord.incomeStatus, 'TODAY_NONE') and #lists.isEmpty(incomeList)}">
|
||||
th:disabled="${not #strings.equals(dailyRecord.incomeStatus, 'TODAY_NONE') and #lists.isEmpty(incomeList)}"
|
||||
th:onclick="krip.daily.goToNext([[${nextStep}]], [[${reqVO.searchMonth}]], [[${reqVO.groupNo}]])">
|
||||
<span class="btn-txt">다음 단계로 이동</span>
|
||||
</button>
|
||||
</div>
|
||||
@@ -126,6 +128,9 @@
|
||||
</div>
|
||||
</div>
|
||||
<!-- //모달 팝업 -->
|
||||
<!-- /* 건의사항 모달 팝업 */ -->
|
||||
<th:block th:replace="~{/record/comment-modal}"></th:block>
|
||||
<!-- /* //건의사항 모달 팝업 */ -->
|
||||
</div>
|
||||
|
||||
<section layout:fragment="script">
|
||||
@@ -178,12 +183,7 @@
|
||||
console.log('selectItemCallback', selectValue, dataValue)
|
||||
$('input[name="unitCode"]').val(dataValue)
|
||||
|
||||
// TODO : ui js 에서 show 적용유무 파악하기
|
||||
/*
|
||||
if (dataValue === 'code.record.unit.self') {
|
||||
$('#unitCode').parent().find('.component-input').addClass('show');
|
||||
}
|
||||
*/
|
||||
etUI.pages.initDirectInputToggle();
|
||||
}
|
||||
});
|
||||
|
||||
@@ -240,16 +240,7 @@
|
||||
ENV.httpUrl.create.replace('{id}', f.id.value ? f.id.value : '0'),
|
||||
obj,
|
||||
function (rstData, status) {
|
||||
console.log('rstData', rstData)
|
||||
location.reload();
|
||||
// TODO : next
|
||||
/*
|
||||
if (f.todayNone.value === 'Y') {
|
||||
krip.daily.goToMain();
|
||||
} else {
|
||||
krip.daily.goToNext($('input:checked').eq(0).data('target'), ENV.month, ENV.groupNo);
|
||||
}
|
||||
*/
|
||||
},
|
||||
);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user