사업자별통계 > 월별/일별 집계결과 테이블 width 값 정리, 조회시 엔터로 조회되도록 기능 추가

This commit is contained in:
kimjhjjang
2022-11-30 13:30:52 +09:00
parent 4be6f217da
commit 060d3998fa
3 changed files with 38 additions and 7 deletions

View File

@@ -45,7 +45,14 @@
</div>
<div class="input_box id">
<label for="name" class="label">고객사명</label>
<input class="search-box" type="text" id="name" placeholder="검색어 입력" v-model.trim="grid.params.custNm" />
<input
class="search-box"
type="text"
id="name"
placeholder="검색어 입력"
v-model.trim="grid.params.custNm"
@keypress.enter="search"
/>
</div>
<div class="input_box">
<label for="name" class="label">사업자번호</label>
@@ -55,6 +62,7 @@
id="name"
placeholder="검색어 입력"
v-model.trim="grid.params.bizrno"
@keypress.enter="search"
@keypress="onlyNum"
@input="onlyNum"
maxlength="10"
@@ -151,9 +159,9 @@ export default {
],
columns: [
{ name: 'sumYmd', header: '날짜', align: 'center' },
{ name: 'custNm', header: '고객사명', align: 'center' },
{ name: 'bizrno', header: '사업자번호', align: 'center' },
{ name: 'sumYmd', header: '날짜', align: 'center', width: '8%' },
{ name: 'custNm', header: '고객사명', align: 'center', width: '12%' },
{ name: 'bizrno', header: '사업자번호', align: 'center', width: '8%' },
{
name: 'sndCnt',
header: '발송건수',
@@ -163,6 +171,7 @@ export default {
let result = props.sndCnt.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',');
return result;
},
width: '7%',
},
{
name: 'succCntRt',
@@ -178,6 +187,7 @@ export default {
'%)</p>'
);
},
width: '7%',
},
{
name: 'sndCntS',
@@ -188,6 +198,7 @@ export default {
let result = props.sndCntS.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',');
return result;
},
width: '7%',
},
{
name: 'succCntRtS',
@@ -203,6 +214,7 @@ export default {
'%)</p>'
);
},
width: '7%',
},
{
name: 'sndCntL',
@@ -213,6 +225,7 @@ export default {
let result = props.sndCntL.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',');
return result;
},
width: '7%',
},
{
name: 'succCntRtL',
@@ -228,6 +241,7 @@ export default {
'%)</p>'
);
},
width: '7%',
},
{
name: 'sndCntM',
@@ -238,6 +252,7 @@ export default {
let result = props.sndCntM.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',');
return result;
},
width: '7%',
},
{
name: 'succCntRtM',
@@ -253,6 +268,7 @@ export default {
'%)</p>'
);
},
width: '7%',
},
{
name: 'sndCntR',
@@ -263,6 +279,7 @@ export default {
let result = props.sndCntR.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',');
return result;
},
width: '7%',
},
{
name: 'succCntRtR',
@@ -278,6 +295,7 @@ export default {
')</p>'
);
},
width: '7%',
},
],
noDataStr: '검색 결과가 없습니다.',