자주묻는 질문 -> 자주하는 질문 텍스트 수정

This commit is contained in:
kimjhjjang
2022-11-09 13:49:08 +09:00
parent 06ed87c3c2
commit 2a72479ac0
5 changed files with 34 additions and 34 deletions

View File

@@ -3,10 +3,10 @@
<div> <div>
<div class="dimmed modal-insertFaq" @click="ModalClose()"></div> <div class="dimmed modal-insertFaq" @click="ModalClose()"></div>
<div class="popup-wrap modal-insertFaq"> <div class="popup-wrap modal-insertFaq">
<!-- 자주 질문 신규 등록 --> <!-- 자주 질문 신규 등록 -->
<div class="popup modal-insertFaq popup_form" style="width: 70vw"> <div class="popup modal-insertFaq popup_form" style="width: 70vw">
<div class="pop-head"> <div class="pop-head">
<h3 class="pop-tit">자주 질문 신규 등록</h3> <h3 class="pop-tit">자주 질문 신규 등록</h3>
</div> </div>
<form autocomplete="off"> <form autocomplete="off">
<table> <table>
@@ -89,7 +89,7 @@ export default {
row: {}, row: {},
rsnType: [], rsnType: [],
tpType: [], tpType: [],
// 자주는 질문 // 자주는 질문
title: '', title: '',
faqSbst: '', // faqSbst: '', //
useYn: 'Y', useYn: 'Y',
@@ -104,7 +104,7 @@ export default {
{ code: '05', codeNm: '서비스' }, { code: '05', codeNm: '서비스' },
{ code: '06', codeNm: '기타' }, { code: '06', codeNm: '기타' },
], ],
// 자주는 질문 // 자주는 질문
LINE_FEED: 10, // '\n', LINE_FEED: 10, // '\n',
maxByte: 2000, maxByte: 2000,
@@ -180,7 +180,7 @@ export default {
doValidate() { doValidate() {
if (this.isNull(this.ctgCd) || this.ctgCd === 'null') { if (this.isNull(this.ctgCd) || this.ctgCd === 'null') {
this.row.title = '자주는 질문 등록'; this.row.title = '자주는 질문 등록';
this.row.msg1 = '분류코드를 선택해 주세요.'; this.row.msg1 = '분류코드를 선택해 주세요.';
this.row.focusTaget = '_ctgCd'; this.row.focusTaget = '_ctgCd';
this.$refs.ValidationConfirmPopup.alertModalOpen(this.row); this.$refs.ValidationConfirmPopup.alertModalOpen(this.row);
@@ -188,14 +188,14 @@ export default {
} }
if (this.isNull(this.title)) { if (this.isNull(this.title)) {
this.row.title = '자주는 질문 등록'; this.row.title = '자주는 질문 등록';
this.row.msg1 = '질문을 입력해 주세요.'; this.row.msg1 = '질문을 입력해 주세요.';
this.row.focusTaget = '_title'; this.row.focusTaget = '_title';
this.$refs.ValidationConfirmPopup.alertModalOpen(this.row); this.$refs.ValidationConfirmPopup.alertModalOpen(this.row);
return false; return false;
} }
if (this.isNull(this.faqSbst)) { if (this.isNull(this.faqSbst)) {
this.row.title = '자주는 질문 등록'; this.row.title = '자주는 질문 등록';
this.row.msg1 = '답변을 입력해 주세요.'; this.row.msg1 = '답변을 입력해 주세요.';
this.row.focusTaget = '_faqSbst'; this.row.focusTaget = '_faqSbst';
this.$refs.ValidationConfirmPopup.alertModalOpen(this.row); this.$refs.ValidationConfirmPopup.alertModalOpen(this.row);
@@ -203,7 +203,7 @@ export default {
} }
/* const hp = this.blckSndrno; /* const hp = this.blckSndrno;
if (!this.isNull(hp) && !this.isSendnum(hp)) { if (!this.isNull(hp) && !this.isSendnum(hp)) {
this.row.title = '자주는 질문'; this.row.title = '자주는 질문';
this.row.msg1 = '발신번호 형식이 잘못되었습니다. 확인 해주세요.'; this.row.msg1 = '발신번호 형식이 잘못되었습니다. 확인 해주세요.';
this.$parent.alertInsert(this.row); this.$parent.alertInsert(this.row);
this.$refs._blckSndrno.focus(); this.$refs._blckSndrno.focus();
@@ -279,13 +279,13 @@ export default {
homeMgtApi.insertFaq(params).then((response) => { homeMgtApi.insertFaq(params).then((response) => {
if (response.data.retCode == '0000') { if (response.data.retCode == '0000') {
this.row.title = '자주는 질문 등록'; this.row.title = '자주는 질문 등록';
this.row.msg1 = '등록이 완료되었습니다.'; this.row.msg1 = '등록이 완료되었습니다.';
this.row.type = 'complete'; this.row.type = 'complete';
//this.$refs.ValidationConfirmPopup.alertModalOpen(this.row); //this.$refs.ValidationConfirmPopup.alertModalOpen(this.row);
this.toComplete(); this.toComplete();
} else { } else {
this.row.title = '자주는 질문 등록 실패'; this.row.title = '자주는 질문 등록 실패';
this.row.msg1 = response.retMsg; this.row.msg1 = response.retMsg;
this.row.type = ''; this.row.type = '';
this.$refs.ValidationConfirmPopup.alertModalOpen(this.row); this.$refs.ValidationConfirmPopup.alertModalOpen(this.row);

View File

@@ -3,10 +3,10 @@
<div> <div>
<div class="dimmed modal52" @click="ModalClose()"></div> <div class="dimmed modal52" @click="ModalClose()"></div>
<div class="popup-wrap modal52"> <div class="popup-wrap modal52">
<!-- 자주 질문 수정 --> <!-- 자주 질문 수정 -->
<div class="popup modal52 popup_form" style="width: 70vw"> <div class="popup modal52 popup_form" style="width: 70vw">
<div class="pop-head"> <div class="pop-head">
<h3 class="pop-tit">자주 질문 수정</h3> <h3 class="pop-tit">자주 질문 수정</h3>
</div> </div>
<form autocomplete="off"> <form autocomplete="off">
<table> <table>
@@ -112,7 +112,7 @@ export default {
{ code: '05', codeNm: '서비스' }, { code: '05', codeNm: '서비스' },
{ code: '06', codeNm: '기타' }, { code: '06', codeNm: '기타' },
], ],
// 자주는 질문 // 자주는 질문
LINE_FEED: 10, // '\n', LINE_FEED: 10, // '\n',
maxByte: 2000, maxByte: 2000,
@@ -210,7 +210,7 @@ export default {
doValidate() { doValidate() {
if (this.isNull(this.ctgCd) || this.ctgCd === 'null') { if (this.isNull(this.ctgCd) || this.ctgCd === 'null') {
this.row.title = '자주는 질문 등록'; this.row.title = '자주는 질문 등록';
this.row.msg1 = '분류코드를 선택해 주세요.'; this.row.msg1 = '분류코드를 선택해 주세요.';
this.row.focusTaget = '_ctgCd'; this.row.focusTaget = '_ctgCd';
this.$refs.ValidationConfirmPopup.alertModalOpen(this.row); this.$refs.ValidationConfirmPopup.alertModalOpen(this.row);
@@ -218,14 +218,14 @@ export default {
} }
if (this.isNull(this.title)) { if (this.isNull(this.title)) {
this.row.title = '자주는 질문 등록'; this.row.title = '자주는 질문 등록';
this.row.msg1 = '질문을 입력해 주세요.'; this.row.msg1 = '질문을 입력해 주세요.';
this.row.focusTaget = '_title'; this.row.focusTaget = '_title';
this.$refs.ValidationConfirmPopup.alertModalOpen(this.row); this.$refs.ValidationConfirmPopup.alertModalOpen(this.row);
return false; return false;
} }
if (this.isNull(this.faqSbst)) { if (this.isNull(this.faqSbst)) {
this.row.title = '자주는 질문 등록'; this.row.title = '자주는 질문 등록';
this.row.msg1 = '답변을 입력해 주세요.'; this.row.msg1 = '답변을 입력해 주세요.';
this.row.focusTaget = '_faqSbst'; this.row.focusTaget = '_faqSbst';
this.$refs.ValidationConfirmPopup.alertModalOpen(this.row); this.$refs.ValidationConfirmPopup.alertModalOpen(this.row);
@@ -290,13 +290,13 @@ export default {
homeMgtApi.updateFaq(params).then((response) => { homeMgtApi.updateFaq(params).then((response) => {
if (response.data.retCode == '0000') { if (response.data.retCode == '0000') {
this.row.title = '자주는 질문 수정'; this.row.title = '자주는 질문 수정';
this.row.msg1 = '수정이 완료되었습니다.'; this.row.msg1 = '수정이 완료되었습니다.';
this.row.type = 'update'; this.row.type = 'update';
//this.$refs.ValidationConfirmPopup.alertModalOpen(this.row); //this.$refs.ValidationConfirmPopup.alertModalOpen(this.row);
this.toComplete(); this.toComplete();
} else { } else {
this.row.title = '자주는 질문 수정 실패'; this.row.title = '자주는 질문 수정 실패';
this.row.msg1 = response.retMsg; this.row.msg1 = response.retMsg;
this.row.type = ''; this.row.type = '';
this.$refs.ValidationConfirmPopup.alertModalOpen(this.row); this.$refs.ValidationConfirmPopup.alertModalOpen(this.row);

View File

@@ -54,12 +54,12 @@
</div> </div>
</div> </div>
<!-- 자주 질문 등록--> <!-- 자주 질문 등록-->
<div class="dimmed confirm-insert-faq" @click="confirmInsertFaqClose()"></div> <div class="dimmed confirm-insert-faq" @click="confirmInsertFaqClose()"></div>
<div class="popup-wrap confirm-insert-faq"> <div class="popup-wrap confirm-insert-faq">
<div class="popup confirm-insert-faq"> <div class="popup confirm-insert-faq">
<div class="pop-head"> <div class="pop-head">
<h3 class="pop-tit">자주 질문 등록</h3> <h3 class="pop-tit">자주 질문 등록</h3>
</div> </div>
<div class="pop-cont"> <div class="pop-cont">
<p>작성된 내용으로 등록 하시겠습니까?</p> <p>작성된 내용으로 등록 하시겠습니까?</p>
@@ -71,12 +71,12 @@
</div> </div>
</div> </div>
<!-- 자주 질문 수정--> <!-- 자주 질문 수정-->
<div class="dimmed confirm-update-faq" @click="confirmUpdateFaqClose()"></div> <div class="dimmed confirm-update-faq" @click="confirmUpdateFaqClose()"></div>
<div class="popup-wrap confirm-update-faq"> <div class="popup-wrap confirm-update-faq">
<div class="popup confirm-update-faq"> <div class="popup confirm-update-faq">
<div class="pop-head"> <div class="pop-head">
<h3 class="pop-tit">자주 질문 수정</h3> <h3 class="pop-tit">자주 질문 수정</h3>
</div> </div>
<div class="pop-cont"> <div class="pop-cont">
<p>작성된 내용으로 수정 하시겠습니까?</p> <p>작성된 내용으로 수정 하시겠습니까?</p>
@@ -191,14 +191,14 @@ export default {
/* **************************************************************************************** */ /* **************************************************************************************** */
//자주는 질문 등록 팝업 //자주는 질문 등록 팝업
confirmInsertFaqOpen() { confirmInsertFaqOpen() {
var dimmed = document.getElementsByClassName('confirm-insert-faq'); var dimmed = document.getElementsByClassName('confirm-insert-faq');
for (var i = 0; i < dimmed.length; i++) { for (var i = 0; i < dimmed.length; i++) {
dimmed[i].style.display = 'block'; dimmed[i].style.display = 'block';
} }
}, },
//자주는 질문 등록 //자주는 질문 등록
confirmInsertFaq() { confirmInsertFaq() {
var dimmed = document.getElementsByClassName('confirm-insert-faq'); var dimmed = document.getElementsByClassName('confirm-insert-faq');
for (var i = 0; i < dimmed.length; i++) { for (var i = 0; i < dimmed.length; i++) {
@@ -207,7 +207,7 @@ export default {
this.$parent.insertFaq(); this.$parent.insertFaq();
}, },
//자주는 질문 등록 팝업 Close //자주는 질문 등록 팝업 Close
confirmInsertFaqClose() { confirmInsertFaqClose() {
var dimmed = document.getElementsByClassName('confirm-insert-faq'); var dimmed = document.getElementsByClassName('confirm-insert-faq');
for (var i = 0; i < dimmed.length; i++) { for (var i = 0; i < dimmed.length; i++) {
@@ -215,14 +215,14 @@ export default {
} }
}, },
//자주는 질문 수정 팝업 //자주는 질문 수정 팝업
confirmUpdateFaqOpen() { confirmUpdateFaqOpen() {
var dimmed = document.getElementsByClassName('confirm-update-faq'); var dimmed = document.getElementsByClassName('confirm-update-faq');
for (var i = 0; i < dimmed.length; i++) { for (var i = 0; i < dimmed.length; i++) {
dimmed[i].style.display = 'block'; dimmed[i].style.display = 'block';
} }
}, },
//자주는 질문 수정 //자주는 질문 수정
confirmUpdateFaq() { confirmUpdateFaq() {
var dimmed = document.getElementsByClassName('confirm-update-faq'); var dimmed = document.getElementsByClassName('confirm-update-faq');
for (var i = 0; i < dimmed.length; i++) { for (var i = 0; i < dimmed.length; i++) {
@@ -231,7 +231,7 @@ export default {
this.$parent.updateFaq(); this.$parent.updateFaq();
}, },
//자주는 질문 수정 팝업 Close //자주는 질문 수정 팝업 Close
confirmUpdateFaqClose() { confirmUpdateFaqClose() {
var dimmed = document.getElementsByClassName('confirm-update-faq'); var dimmed = document.getElementsByClassName('confirm-update-faq');
for (var i = 0; i < dimmed.length; i++) { for (var i = 0; i < dimmed.length; i++) {

View File

@@ -20,17 +20,17 @@ const deleteNotice = (params) => {
return httpClient.post('/api/v1/bo/homeMgt/deleteNotice', params, { withCredentials: false }); return httpClient.post('/api/v1/bo/homeMgt/deleteNotice', params, { withCredentials: false });
}; };
// 자주는 질문 등록 // 자주는 질문 등록
const insertFaq = (params) => { const insertFaq = (params) => {
return httpClient.post('/api/v1/bo/homeMgt/insertFaq', params, { withCredentials: false }); return httpClient.post('/api/v1/bo/homeMgt/insertFaq', params, { withCredentials: false });
}; };
// 자주는 질문 수정 // 자주는 질문 수정
const updateFaq = (params) => { const updateFaq = (params) => {
return httpClient.post('/api/v1/bo/homeMgt/updateFaq', params, { withCredentials: false }); return httpClient.post('/api/v1/bo/homeMgt/updateFaq', params, { withCredentials: false });
}; };
// 자주는 질문 삭제 // 자주는 질문 삭제
const deleteFaq = (params) => { const deleteFaq = (params) => {
return httpClient.post('/api/v1/bo/homeMgt/deleteFaq', params, { withCredentials: false }); return httpClient.post('/api/v1/bo/homeMgt/deleteFaq', params, { withCredentials: false });
}; };

View File

@@ -227,7 +227,7 @@ export default {
deleteFaq() { deleteFaq() {
var chkList = this.$refs.table.checkedElementDatas(); var chkList = this.$refs.table.checkedElementDatas();
if (chkList.length == 0) { if (chkList.length == 0) {
this.row.title = '자주는 질문 관리'; this.row.title = '자주는 질문 관리';
this.row.msg1 = '삭제 대상을 체크를 해주세요.'; this.row.msg1 = '삭제 대상을 체크를 해주세요.';
this.$refs.commmonModal.alertModalOpen(this.row); this.$refs.commmonModal.alertModalOpen(this.row);
return false; return false;
@@ -236,7 +236,7 @@ export default {
const param = chkList.map((row) => ({ faqNo: row.faqNo })); const param = chkList.map((row) => ({ faqNo: row.faqNo }));
this.row.list = param; this.row.list = param;
this.row.title = '자주는 질문 관리'; this.row.title = '자주는 질문 관리';
this.row.msg1 = '삭제 하시겠습니까?'; this.row.msg1 = '삭제 하시겠습니까?';
this.$refs.commmonModal.confirmModalOpen2(this.row); this.$refs.commmonModal.confirmModalOpen2(this.row);
@@ -249,7 +249,7 @@ export default {
} }
}, },
async faqDelete() { async faqDelete() {
// this.row.title = '자주는 질문 관리'; // this.row.title = '자주는 질문 관리';
// this.row.msg1 = '준비중입니다.'; // this.row.msg1 = '준비중입니다.';
// this.$refs.commmonModal.alertModalOpen(this.row); // this.$refs.commmonModal.alertModalOpen(this.row);
try { try {