parent
3fc4ca93aa
commit
49675f9af9
@ -0,0 +1,86 @@
|
||||
-- tbl_code_group 테이블 데이터
|
||||
INSERT INTO tbl_code_group
|
||||
(cg_cd, title, reg_dt, mod_dt, sys_member_id)
|
||||
VALUES
|
||||
('BF_RECORD_CATEGORY', '기록카테고리', '2022-02-05 00:00:00', '', 'so2');
|
||||
|
||||
|
||||
-- tbl_code_item 테이블 데이터
|
||||
INSERT INTO tbl_code_item
|
||||
(cd_no, title, order_no, cg_cd, val_1, ci_explain, ci_link, reg_dt, mod_dt, sys_member_id)
|
||||
VALUES
|
||||
('78', '모유', '1', 'BF_RECORD_CATEGORY', '1', '', '', '2022-02-05 00:00:00', '', 'so2');
|
||||
|
||||
INSERT INTO tbl_code_item
|
||||
(cd_no, title, order_no, cg_cd, val_1, ci_explain, ci_link, reg_dt, mod_dt, sys_member_id)
|
||||
VALUES
|
||||
('79', '젖병', '2', 'BF_RECORD_CATEGORY', '2', '', '', '2022-02-05 00:00:00', '', 'so2');
|
||||
|
||||
INSERT INTO tbl_code_item
|
||||
(cd_no, title, order_no, cg_cd, val_1, ci_explain, ci_link, reg_dt, mod_dt, sys_member_id)
|
||||
VALUES
|
||||
('80', '간식', '3', 'BF_RECORD_CATEGORY', '3', '', '', '2022-02-05 00:00:00', '', 'so2');
|
||||
|
||||
INSERT INTO tbl_code_item
|
||||
(cd_no, title, order_no, cg_cd, val_1, ci_explain, ci_link, reg_dt, mod_dt, sys_member_id)
|
||||
VALUES
|
||||
('81', '홈메이드 이유식', '4', 'BF_RECORD_CATEGORY', '4', '', '', '2022-02-05 00:00:00', '', 'so2');
|
||||
|
||||
INSERT INTO tbl_code_item
|
||||
(cd_no, title, order_no, cg_cd, val_1, ci_explain, ci_link, reg_dt, mod_dt, sys_member_id)
|
||||
VALUES
|
||||
('82', '시판 이유식', '5', 'BF_RECORD_CATEGORY', '5', '', '', '2022-02-05 00:00:00', '', 'so2');
|
||||
|
||||
INSERT INTO tbl_code_item
|
||||
(cd_no, title, order_no, cg_cd, val_1, ci_explain, ci_link, reg_dt, mod_dt, sys_member_id)
|
||||
VALUES
|
||||
('83', '대소변', '6', 'BF_RECORD_CATEGORY', '6', '', '', '2022-02-05 00:00:00', '', 'so2');
|
||||
|
||||
INSERT INTO tbl_code_item
|
||||
(cd_no, title, order_no, cg_cd, val_1, ci_explain, ci_link, reg_dt, mod_dt, sys_member_id)
|
||||
VALUES
|
||||
('84', '예방접종', '7', 'BF_RECORD_CATEGORY', '7', '', '', '2022-02-05 00:00:00', '', 'so2');
|
||||
|
||||
INSERT INTO tbl_code_item
|
||||
(cd_no, title, order_no, cg_cd, val_1, ci_explain, ci_link, reg_dt, mod_dt, sys_member_id)
|
||||
VALUES
|
||||
('85', '병원', '8', 'BF_RECORD_CATEGORY', '8', '', '', '2022-02-05 00:00:00', '', 'so2');
|
||||
|
||||
INSERT INTO tbl_code_item
|
||||
(cd_no, title, order_no, cg_cd, val_1, ci_explain, ci_link, reg_dt, mod_dt, sys_member_id)
|
||||
VALUES
|
||||
('86', '생활', '9', 'BF_RECORD_CATEGORY', '9', '', '', '2022-02-05 00:00:00', '', 'so2');
|
||||
|
||||
-- tbl_code_item_str 부모질병관련 코드 수정
|
||||
delete from tbl_code_item_str where cg_cd = 'BF_BABY_DISEASE';
|
||||
|
||||
INSERT INTO tbl_code_item_str
|
||||
(cd_no, title, order_no, val_1, ci_explain, ci_link, reg_dt, mod_dt, sys_member_id, cg_cd)
|
||||
VALUES
|
||||
('BF_B_D_1', '아토피', '1', '', '', '', '2021-01-31 06:09:43', '', 'renamaestro', 'BF_BABY_DISEASE');
|
||||
|
||||
INSERT INTO tbl_code_item_str
|
||||
(cd_no, title, order_no, val_1, ci_explain, ci_link, reg_dt, mod_dt, sys_member_id, cg_cd)
|
||||
VALUES
|
||||
('BF_B_D_2', '음식알레르기', '2', '', '', '', '2021-01-31 06:09:43', '', 'renamaestro', 'BF_BABY_DISEASE');
|
||||
|
||||
INSERT INTO tbl_code_item_str
|
||||
(cd_no, title, order_no, val_1, ci_explain, ci_link, reg_dt, mod_dt, sys_member_id, cg_cd)
|
||||
VALUES
|
||||
('BF_B_D_3', '비염', '5', '', '', '', '2021-01-31 06:09:43', '', 'renamaestro', 'BF_BABY_DISEASE');
|
||||
|
||||
INSERT INTO tbl_code_item_str
|
||||
(cd_no, title, order_no, val_1, ci_explain, ci_link, reg_dt, mod_dt, sys_member_id, cg_cd)
|
||||
VALUES
|
||||
('BF_B_D_4', '천식', '6', '', '', '', '2021-01-31 06:09:43', '', 'renamaestro', 'BF_BABY_DISEASE');
|
||||
|
||||
INSERT INTO tbl_code_item_str
|
||||
(cd_no, title, order_no, val_1, ci_explain, ci_link, reg_dt, mod_dt, sys_member_id, cg_cd)
|
||||
VALUES
|
||||
('BF_B_D_5', '햇빛알레르기', '3', '', '', '', '2022-02-06 00:00:00', '', 'so2', 'BF_BABY_DISEASE');
|
||||
|
||||
INSERT INTO tbl_code_item_str
|
||||
(cd_no, title, order_no, val_1, ci_explain, ci_link, reg_dt, mod_dt, sys_member_id, cg_cd)
|
||||
VALUES
|
||||
('BF_B_D_6', '금속알레르기', '4', '', '', '', '2022-02-06 00:00:00', '', 'so2', 'BF_BABY_DISEASE');
|
||||
|
@ -0,0 +1,98 @@
|
||||
<#include "/m/include/index_top.ftl">
|
||||
|
||||
<body><!--grey_bg / blue_w_bg /blue_g_bg-->
|
||||
<div class="wrap">
|
||||
<header class="header_wrapper">
|
||||
<a href="javascript:back.return_url()" class="side_Lbtn hidden pre_btn">이전으로</a>
|
||||
<h1 class="header_title">자주쓰는 표현</h1>
|
||||
<a href="#" class="side_Rbtn hidden"></a>
|
||||
</header>
|
||||
<main class="m_set_lighting_time">
|
||||
<header>
|
||||
<h2>
|
||||
자주쓰는 표현
|
||||
</h2>
|
||||
</header>
|
||||
<div class="cont">
|
||||
<form id="frmUpdate" name="frmUpdate" method="post">
|
||||
<div class="set_list_wrap">
|
||||
<#list model['favorite_word_list'] as item>
|
||||
<div class="list_item">
|
||||
<input type="text" class="word_list" name="word_list" readonly value="${item['word']!}">
|
||||
<input type="button" onclick="fncModify(this)" value="수정">
|
||||
<input type="button" onclick="fncRemove(this)" value="삭제">
|
||||
</div>
|
||||
</#list>
|
||||
</div>
|
||||
<input type="button" value="추가" onclick="fncAddItem()">
|
||||
<button type="submit" id="" name="" class="btns blue_btn">저장</button>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<#include "/m/include/index_bottom_info.ftl">
|
||||
</main>
|
||||
</div>
|
||||
<script>
|
||||
var env = {
|
||||
|
||||
is_loading: false,
|
||||
|
||||
init: function(){
|
||||
$('#frmUpdate').on('submit',function(e){
|
||||
if(this.is_loading) {
|
||||
e.preventDefault()
|
||||
return;
|
||||
}
|
||||
|
||||
var data = $('#frmUpdate').serialize()
|
||||
$.ajax({
|
||||
url:'${URL_ROOT}/m/member_env/ajax_update_favorite_word.do',
|
||||
type: 'post',
|
||||
data: data,
|
||||
dataType: 'json',
|
||||
error:function(request,status,error){
|
||||
this.is_loading = false
|
||||
Swal.fire({text: '오류가 발생했습니다'})
|
||||
e.preventDefault()
|
||||
return;
|
||||
}.bind('this'),
|
||||
success:function(result){
|
||||
// console.log(result)
|
||||
this.is_loading = false
|
||||
var RESULT = result.RESULT
|
||||
|
||||
if(RESULT == "1") {
|
||||
Swal.fire({text: '정상적으로 수정되었습니다.'});
|
||||
}
|
||||
}.bind('this'),
|
||||
})
|
||||
|
||||
e.preventDefault()
|
||||
return;
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
$(function(){
|
||||
env.init()
|
||||
})
|
||||
|
||||
function fncAddItem() {
|
||||
$(".set_list_wrap").append("<div class='list_item'>" +
|
||||
"<input class='word_list' type='text' name='word_list' readonly value=''>" +
|
||||
"<input type='button' onclick='fncRemove(this)' value='삭제'></div>")
|
||||
}
|
||||
|
||||
function fncModify(e) {
|
||||
$(e).parent().find(".word_list").prop("readonly", false);
|
||||
}
|
||||
|
||||
function fncRemove(e) {
|
||||
$(e).parent().remove();
|
||||
}
|
||||
</script>
|
||||
|
||||
<#include "/m/member_env/include_return_url.ftl">
|
||||
|
||||
</body>
|
||||
<#include "/m/include/index_bottom.ftl">
|
Loading…
Reference in new issue