|
|
@@ -32,15 +32,15 @@
|
|
|
<!-- 게시판info -->
|
|
|
<ul class="inquiry_box">
|
|
|
<li>
|
|
|
- <p th:text="${qnaCountInfo.totCnt}" id="qnaTotCnt">999</p>
|
|
|
+ <p id="qnaTotCnt"></p>
|
|
|
<p>총 문의</p>
|
|
|
</li>
|
|
|
<li>
|
|
|
- <p th:text="${qnaCountInfo.ansCnt}" id="qnaAnsCnt">456</p>
|
|
|
+ <p id="qnaAnsCnt"></p>
|
|
|
<p>답변완료</p>
|
|
|
</li>
|
|
|
<li>
|
|
|
- <p th:text="${qnaCountInfo.ingCnt}" id="qnaIngCnt">690</p>
|
|
|
+ <p id="qnaIngCnt"></p>
|
|
|
<p>처리 중</p>
|
|
|
</li>
|
|
|
</ul>
|
|
|
@@ -291,10 +291,12 @@
|
|
|
// 고객센터 GNB 설정
|
|
|
fnSetCallcenterGnb(2);
|
|
|
|
|
|
+ fnGetOneToOneQnaCountInfo();
|
|
|
+
|
|
|
$('#btnQnaMore').trigger('click');
|
|
|
|
|
|
$('#qnaRegisterForm textarea[name=questContent]').bind('input paste', function() {
|
|
|
- $(this).trigger('keyup');
|
|
|
+ $(this).trigger('keyup');
|
|
|
});
|
|
|
});
|
|
|
|
|
|
@@ -347,6 +349,12 @@
|
|
|
tag += ' </p>\n';
|
|
|
}
|
|
|
|
|
|
+ if (item.ansStat != 'G060_20') { // 답변완료가 아닐 때
|
|
|
+ tag += ' <div class="answer_foot">\n';
|
|
|
+ tag += ' <button type="button" class="btn_delete" onclick="fnDeleteQna(' + item.counselSq + ');"><span>삭제</span></button>\n';
|
|
|
+ tag += ' </div>\n';
|
|
|
+ }
|
|
|
+
|
|
|
tag += ' </div>\n';
|
|
|
|
|
|
if (item.ansStat == 'G060_20') { // 답변완료 상태일 때
|
|
|
@@ -355,11 +363,6 @@
|
|
|
tag += ' <div class="answer_body">' + item.ansContent.replace(/(\r\n)/g, '<br/>') + '</div>\n';
|
|
|
tag += ' <div class="answer_foot">\n';
|
|
|
tag += ' <span class="data">' + item.ansDt + '</span>\n';
|
|
|
-
|
|
|
- if (item.ansStat == 'G060_20') { // 답변완료일 때
|
|
|
- tag += ' <button type="button" class="btn_delete" onclick="fnDeleteQna(' + item.counselSq + ');"><span>삭제</span></button>\n';
|
|
|
- }
|
|
|
-
|
|
|
tag += ' </div>\n';
|
|
|
tag += ' </div>\n';
|
|
|
tag += ' </div>\n';
|
|
|
@@ -402,13 +405,7 @@
|
|
|
$('#ulQna').html('');
|
|
|
$('#btnQnaMore').trigger('click');
|
|
|
|
|
|
- $.get('/callcenter/onetoone/qna/count/info'
|
|
|
- , function(result) {
|
|
|
- $('#qnaTotCnt').html(result.totCnt);
|
|
|
- $('#qnaAnsCnt').html(result.ansCnt);
|
|
|
- $('#qnaIngCnt').html(result.ingCnt);
|
|
|
- }
|
|
|
- );
|
|
|
+ fnGetOneToOneQnaCountInfo();
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
@@ -494,7 +491,6 @@
|
|
|
|
|
|
// 문의유형 선택 시
|
|
|
var fnChangeCounselClsf = function(counselClsf) {
|
|
|
- console.log('a2-------------');
|
|
|
var actionUrl = '/callcenter/onetoone/qna/answer/template/' + counselClsf;
|
|
|
$.get(actionUrl
|
|
|
, function(data) {
|
|
|
@@ -508,6 +504,16 @@
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
+
|
|
|
+ let fnGetOneToOneQnaCountInfo = function() {
|
|
|
+ $.get('/callcenter/onetoone/qna/count/info'
|
|
|
+ , function(result) {
|
|
|
+ $('#qnaTotCnt').html(result.totCnt);
|
|
|
+ $('#qnaAnsCnt').html(result.ansCnt);
|
|
|
+ $('#qnaIngCnt').html(result.ingCnt);
|
|
|
+ }
|
|
|
+ );
|
|
|
+ }
|
|
|
/*]]>*/
|
|
|
</script>
|
|
|
|