유치채널 현황

This commit is contained in:
kubo8
2022-12-23 16:39:20 +09:00
parent e8d1856677
commit 973732962b
3 changed files with 159 additions and 159 deletions

View File

@@ -97,17 +97,20 @@
<form autocomplete="off">
<table class="table-r">
<colgroup>
<col width="16%" />
<col width="16%" />
<col width="16%" />
<col width="16%" />
<col width="16%" />
<col width="20%" />
<col width="12%" />
<col width="11%" />
<col width="11%" />
<col width="11%" />
<col width="11%" />
<col width="11%" />
<col width="11%" />
<col width="11%" />
<col width="11%" />
</colgroup>
<thead>
<tr>
<th rowspan="2">날짜</th>
<th colspan="5">채널별 발송 건수</th>
<th colspan="8">채널별 발송 건수</th>
</tr>
<tr class="total">
<th>전체</th>
@@ -115,6 +118,9 @@
<th>LMS</th>
<th>MMS</th>
<th>알림톡</th>
<th>대체발송SMS</th>
<th>대체발송LMS</th>
<th>대체발송MMS</th>
</tr>
</thead>
<tbody>
@@ -125,6 +131,9 @@
<td>{{ sndCntLTotal.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',') }}</td>
<td>{{ sndCntMTotal.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',') }}</td>
<td>{{ sndCntATotal.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',') }}</td>
<td>{{ fbSndCntSTotal.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',') }}</td>
<td>{{ fbSndCntLTotal.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',') }}</td>
<td>{{ fbSndCntMTotal.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',') }}</td>
</tr>
<tr v-for="(option, i) in list" v-bind:key="i">
<td>{{ option.sumYm }}</td>
@@ -133,6 +142,9 @@
<td>{{ option.sndCntL.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',') }}</td>
<td>{{ option.sndCntM.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',') }}</td>
<td>{{ option.sndCntA.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',') }}</td>
<td>{{ option.fbSndCntS.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',') }}</td>
<td>{{ option.fbSndCntL.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',') }}</td>
<td>{{ option.fbSndCntM.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',') }}</td>
</tr>
</tbody>
</table>
@@ -200,6 +212,9 @@ export default {
sndCntLTotal: 0,
sndCntMTotal: 0,
sndCntATotal: 0,
fbSndCntSTotal: 0,
fbSndCntLTotal: 0,
fbSndCntMTotal: 0,
list: [],
totalCnt: '',
props: {},
@@ -244,21 +259,31 @@ export default {
var sndCntLTotal = 0;
var sndCntMTotal = 0;
var sndCntATotal = 0;
var fbSndCntSTotal = 0;
var fbSndCntLTotal = 0;
var fbSndCntMTotal = 0;
if (result != null && result.retCode == '0000') {
//데이터값이 널이면 오류처리
console.log(result.data.list);
for (var i = 0; i < result.data.list.length; i++) {
sndCntTotal = sndCntTotal + Number(result.data.list[i].sndCnt);
sndCntSTotal = sndCntSTotal + Number(result.data.list[i].sndCntS);
sndCntLTotal = sndCntLTotal + Number(result.data.list[i].sndCntL);
sndCntMTotal = sndCntMTotal + Number(result.data.list[i].sndCntM);
sndCntATotal = sndCntATotal + Number(result.data.list[i].sndCntA);
fbSndCntSTotal = fbSndCntSTotal + Number(result.data.list[i].fbSndCntS);
fbSndCntLTotal = fbSndCntLTotal + Number(result.data.list[i].fbSndCntL);
fbSndCntMTotal = fbSndCntMTotal + Number(result.data.list[i].fbSndCntM);
}
this.sndCntTotal = sndCntTotal;
this.sndCntSTotal = sndCntSTotal;
this.sndCntLTotal = sndCntLTotal;
this.sndCntMTotal = sndCntMTotal;
this.sndCntATotal = sndCntATotal;
this.fbSndCntSTotal = fbSndCntSTotal;
this.fbSndCntLTotal = fbSndCntLTotal;
this.fbSndCntMTotal = fbSndCntMTotal;
this.list = result.data.list;
this.sndCntS = result.data.sndCntS;
this.sndCntL = result.data.sndCntL;