통계 원복

This commit is contained in:
kubo8
2022-12-20 17:48:50 +09:00
parent 69b58ef18b
commit 330553b25e

View File

@@ -155,19 +155,21 @@ export default {
{ header: 'LMS', childNames: ['sndCntL', 'succCntRtL'] }, { header: 'LMS', childNames: ['sndCntL', 'succCntRtL'] },
{ header: 'MMS', childNames: ['sndCntM', 'succCntRtM'] }, { header: 'MMS', childNames: ['sndCntM', 'succCntRtM'] },
{ header: '알림톡', childNames: ['sndCntR', 'succCntRtR'] }, { header: '알림톡', childNames: ['sndCntR', 'succCntRtR'] },
{ header: '대체발송SMS', childNames: ['fbSndCntS', 'fbSuccCntRtS'] },
{ header: '대체발송LMS', childNames: ['fbSndCntL', 'fbSuccCntRtL'] },
{ header: '대체발송MMS', childNames: ['fbSndCntM', 'fbSuccCntRtM'] },
], ],
], ],
columns: [ columns: [
{ name: 'sumYm', header: '날짜', align: 'center', width: '5%' }, { name: 'sumYm', header: '날짜', align: 'center', width: '8%' },
{ name: 'custNm', header: '고객사명', align: 'center', width: '9%' }, { name: 'custNm', header: '고객사명', align: 'center', width: '12%' },
{ {
name: 'bizrno', name: 'bizrno',
header: '사업자번호', header: '사업자번호',
align: 'center', align: 'center',
width: '6%', width: '8%',
// , formatter: props => {
// let result = props.bizrno.substring(0, 3) + '-' + props.bizrno.substring(3, 5) + '-' + props.bizrno.substring(5, 10)
// return result;
// }
}, },
{ {
name: 'sndCnt', name: 'sndCnt',
@@ -178,7 +180,7 @@ export default {
let result = props.sndCnt.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ','); let result = props.sndCnt.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',');
return result; return result;
}, },
width: '5%', width: '7%',
}, },
{ {
name: 'succCntRt', name: 'succCntRt',
@@ -194,7 +196,7 @@ export default {
'%)</p>' '%)</p>'
); );
}, },
width: '5%', width: '7%',
}, },
{ {
name: 'sndCntS', name: 'sndCntS',
@@ -205,7 +207,7 @@ export default {
let result = props.sndCntS.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ','); let result = props.sndCntS.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',');
return result; return result;
}, },
width: '5%', width: '7%',
}, },
{ {
name: 'succCntRtS', name: 'succCntRtS',
@@ -221,7 +223,7 @@ export default {
'%)</p>' '%)</p>'
); );
}, },
width: '5%', width: '7%',
}, },
{ {
name: 'sndCntL', name: 'sndCntL',
@@ -232,7 +234,7 @@ export default {
let result = props.sndCntL.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ','); let result = props.sndCntL.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',');
return result; return result;
}, },
width: '5%', width: '7%',
}, },
{ {
name: 'succCntRtL', name: 'succCntRtL',
@@ -248,7 +250,7 @@ export default {
'%)</p>' '%)</p>'
); );
}, },
width: '5%', width: '7%',
}, },
{ {
name: 'sndCntM', name: 'sndCntM',
@@ -259,7 +261,7 @@ export default {
let result = props.sndCntM.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ','); let result = props.sndCntM.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',');
return result; return result;
}, },
width: '5%', width: '7%',
}, },
{ {
name: 'succCntRtM', name: 'succCntRtM',
@@ -275,7 +277,7 @@ export default {
'%)</p>' '%)</p>'
); );
}, },
width: '5%', width: '7%',
}, },
{ {
name: 'sndCntR', name: 'sndCntR',
@@ -286,7 +288,7 @@ export default {
let result = props.sndCntR.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ','); let result = props.sndCntR.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',');
return result; return result;
}, },
width: '5%', width: '7%',
}, },
{ {
name: 'succCntRtR', name: 'succCntRtR',
@@ -302,88 +304,7 @@ export default {
')</p>' ')</p>'
); );
}, },
width: '5%', width: '7%',
},
{
name: 'fbSndCntS',
header: '발송건수',
align: 'center',
cls: 'td_line',
formatter: (props) => {
let result = props.fbSndCntS.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',');
return result;
},
width: '5%',
},
{
name: 'fbSuccCntRtS',
header: '성공건수/(%)',
align: 'center',
cls: 'td_line',
formatter: (props) => {
return (
'<p>' +
props.fbSuccCntS.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',') +
'</p>\n<p>(' +
props.succFbRtS +
')</p>'
);
},
width: '5%',
},
{
name: 'fbSndCntL',
header: '발송건수',
align: 'center',
cls: 'td_line',
formatter: (props) => {
let result = props.fbSndCntL.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',');
return result;
},
width: '5%',
},
{
name: 'fbSuccCntRtL',
header: '성공건수/(%)',
align: 'center',
cls: 'td_line',
formatter: (props) => {
return (
'<p>' +
props.fbSuccCntL.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',') +
'</p>\n<p>(' +
props.succFbRtL +
')</p>'
);
},
width: '5%',
},
{
name: 'fbSndCntM',
header: '발송건수',
align: 'center',
cls: 'td_line',
formatter: (props) => {
let result = props.fbSndCntM.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',');
return result;
},
width: '5%',
},
{
name: 'fbSuccCntRtL',
header: '성공건수/(%)',
align: 'center',
cls: 'td_line',
formatter: (props) => {
return (
'<p>' +
props.fbSuccCntM.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',') +
'</p>\n<p>(' +
props.succFbRtM +
')</p>'
);
},
width: '5%',
}, },
], ],
noDataStr: '검색 결과가 없습니다.', noDataStr: '검색 결과가 없습니다.',