사업자별통계 > 월별/일별 집계결과 테이블 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

@@ -950,7 +950,7 @@ header .user_wrap .user_info .logout {
}
.contents .table.calculate.scroll table{
min-width: 1500px;
/*min-width: 1500px;*/
width:100%;
table-layout: fixed;
white-space: nowrap;

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: '검색 결과가 없습니다.',

View File

@@ -51,6 +51,7 @@
placeholder="검색어 입력"
v-model.trim="grid.params.custNm"
maxlength="100"
@keypress.enter="search"
/>
</div>
<div class="input_box">
@@ -61,6 +62,7 @@
id="name"
placeholder="검색어 입력"
v-model.trim="grid.params.bizrno"
@keypress.enter="search"
@keypress="onlyNum"
@input="onlyNum"
minlength="10"
@@ -157,12 +159,13 @@ export default {
],
columns: [
{ name: 'sumYm', header: '날짜', align: 'center' },
{ name: 'custNm', header: '고객사명', align: 'center' },
{ name: 'sumYm', header: '날짜', align: 'center', width: '8%' },
{ name: 'custNm', header: '고객사명', align: 'center', width: '12%' },
{
name: 'bizrno',
header: '사업자번호',
align: 'center',
width: '8%',
// , formatter: props => {
// let result = props.bizrno.substring(0, 3) + '-' + props.bizrno.substring(3, 5) + '-' + props.bizrno.substring(5, 10)
// return result;
@@ -177,6 +180,7 @@ export default {
let result = props.sndCnt.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',');
return result;
},
width: '7%',
},
{
name: 'succCntRt',
@@ -192,6 +196,7 @@ export default {
'%)</p>'
);
},
width: '7%',
},
{
name: 'sndCntS',
@@ -202,6 +207,7 @@ export default {
let result = props.sndCntS.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',');
return result;
},
width: '7%',
},
{
name: 'succCntRtS',
@@ -217,6 +223,7 @@ export default {
'%)</p>'
);
},
width: '7%',
},
{
name: 'sndCntL',
@@ -227,6 +234,7 @@ export default {
let result = props.sndCntL.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',');
return result;
},
width: '7%',
},
{
name: 'succCntRtL',
@@ -242,6 +250,7 @@ export default {
'%)</p>'
);
},
width: '7%',
},
{
name: 'sndCntM',
@@ -252,6 +261,7 @@ export default {
let result = props.sndCntM.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',');
return result;
},
width: '7%',
},
{
name: 'succCntRtM',
@@ -267,6 +277,7 @@ export default {
'%)</p>'
);
},
width: '7%',
},
{
name: 'sndCntR',
@@ -277,6 +288,7 @@ export default {
let result = props.sndCntR.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',');
return result;
},
width: '7%',
},
{
name: 'succCntRtR',
@@ -292,6 +304,7 @@ export default {
')</p>'
);
},
width: '7%',
},
],
noDataStr: '검색 결과가 없습니다.',