--- src/main/webapp/WEB-INF/jsp/web/kakao/msgdata/at/KakaoAlimtalkMsgDataView.jsp
+++ src/main/webapp/WEB-INF/jsp/web/kakao/msgdata/at/KakaoAlimtalkMsgDataView.jsp
... | ... | @@ -1228,7 +1228,7 @@ |
| 1228 | 1228 |
|
| 1229 | 1229 |
//재전송 스크립트 수정 |
| 1230 | 1230 |
$(window).on('load', function() {
|
| 1231 |
- if(${msgResendAllFlag eq 'Y'}) {
|
|
| 1231 |
+ if(${kakaoVO.msgResendAllFlag eq 'Y'}) {
|
|
| 1232 | 1232 |
// 채널 ID 및 템플릿 선택 코드는 유지 |
| 1233 | 1233 |
$("#selectKakaoProfileList option").filter(function() {
|
| 1234 | 1234 |
return $(this).text() === '${kakaoVO.msgResendAllYellowId}';
|
... | ... | @@ -1242,43 +1242,47 @@ |
| 1242 | 1242 |
fn_viewDataInit02(); |
| 1243 | 1243 |
priceInit(); |
| 1244 | 1244 |
|
| 1245 |
- try {
|
|
| 1246 |
- // JSON 파싱 |
|
| 1247 |
- var resendListObj = JSON.parse('${resendListJson}');
|
|
| 1248 |
- var listCnt = resendListObj.length; |
|
| 1249 |
- |
|
| 1250 |
- // 중복 제거 - Set 사용 |
|
| 1251 |
- var uniquePhones = new Set(); |
|
| 1252 |
- var uniqueResendList = []; |
|
| 1253 |
- |
|
| 1254 |
- // 중복 제거 로직 |
|
| 1255 |
- for(var i = 0; i < resendListObj.length; i++) {
|
|
| 1256 |
- var phone = removeDash(resendListObj[i].callTo); |
|
| 1257 |
- if(!uniquePhones.has(phone)) {
|
|
| 1258 |
- uniquePhones.add(phone); |
|
| 1259 |
- uniqueResendList.push(resendListObj[i]); |
|
| 1260 |
- } |
|
| 1261 |
- } |
|
| 1262 |
- |
|
| 1263 |
- |
|
| 1264 |
- // 중복 제거된 데이터로 처리 |
|
| 1265 |
- for(var i = 0; i < uniqueResendList.length; i++) {
|
|
| 1266 |
- var phoneNumber = removeDash(uniqueResendList[i].callTo); |
|
| 1267 |
- |
|
| 1268 |
- // callTo 입력 필드에 값 설정 후 번호추가 버튼 클릭 |
|
| 1269 |
- $("#callTo").val(phoneNumber);
|
|
| 1270 |
- $(".addCallToF").trigger("click");
|
|
| 1271 |
- |
|
| 1272 |
- } |
|
| 1273 |
- |
|
| 1274 |
- // 총 건수 확인 |
|
| 1275 |
- setTimeout(function() {
|
|
| 1276 |
- updateTotCnt(); |
|
| 1277 |
- }, 500); |
|
| 1278 |
- |
|
| 1279 |
- } catch(e) {
|
|
| 1280 |
- console.error("재전송 데이터 처리 오류:", e);
|
|
| 1281 |
- } |
|
| 1245 |
+ var varList = $("#excelTemplateContent").val().match(/#\{([^}]+)\}/g);
|
|
| 1246 |
+ if(varList == null){
|
|
| 1247 |
+ try {
|
|
| 1248 |
+ // JSON 파싱 |
|
| 1249 |
+ var resendListObj = JSON.parse('${resendListJson}');
|
|
| 1250 |
+ var listCnt = resendListObj.length; |
|
| 1251 |
+ |
|
| 1252 |
+ // 중복 제거 - Set 사용 |
|
| 1253 |
+ var uniquePhones = new Set(); |
|
| 1254 |
+ var uniqueResendList = []; |
|
| 1255 |
+ |
|
| 1256 |
+ // 중복 제거 로직 |
|
| 1257 |
+ for(var i = 0; i < resendListObj.length; i++) {
|
|
| 1258 |
+ var phone = removeDash(resendListObj[i].callTo); |
|
| 1259 |
+ if(!uniquePhones.has(phone)) {
|
|
| 1260 |
+ uniquePhones.add(phone); |
|
| 1261 |
+ uniqueResendList.push(resendListObj[i]); |
|
| 1262 |
+ } |
|
| 1263 |
+ } |
|
| 1264 |
+ |
|
| 1265 |
+ |
|
| 1266 |
+ // 중복 제거된 데이터로 처리 |
|
| 1267 |
+ for(var i = 0; i < uniqueResendList.length; i++) {
|
|
| 1268 |
+ var phoneNumber = removeDash(uniqueResendList[i].callTo); |
|
| 1269 |
+ |
|
| 1270 |
+ // callTo 입력 필드에 값 설정 후 번호추가 버튼 클릭 |
|
| 1271 |
+ $("#callTo").val(phoneNumber);
|
|
| 1272 |
+ $(".addCallToF").trigger("click");
|
|
| 1273 |
+ |
|
| 1274 |
+ } |
|
| 1275 |
+ |
|
| 1276 |
+ // 총 건수 확인 |
|
| 1277 |
+ setTimeout(function() {
|
|
| 1278 |
+ updateTotCnt(); |
|
| 1279 |
+ }, 500); |
|
| 1280 |
+ |
|
| 1281 |
+ } catch(e) {
|
|
| 1282 |
+ console.error("재전송 데이터 처리 오류:", e);
|
|
| 1283 |
+ } |
|
| 1284 |
+ } |
|
| 1285 |
+ |
|
| 1282 | 1286 |
} |
| 1283 | 1287 |
}); |
| 1284 | 1288 |
|
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?