어드민 리스트 화면 백엔드 중복 호출 문제 수정

This commit is contained in:
kubo8
2023-02-09 14:08:49 +09:00
parent b199bb7630
commit 5772a7ba18
24 changed files with 119 additions and 37 deletions

View File

@@ -81,7 +81,7 @@ export default {
}, },
cleanData() { cleanData() {
if (typeof this.pagePerRows == undefined || this.pagePerRows == null) { if (typeof this.pagePerRows == undefined || this.pagePerRows == null) {
this.curPerPage = 20; this.curPerPage = 50;
} else { } else {
this.curPerPage = this.pagePerRows; this.curPerPage = this.pagePerRows;
} }
@@ -110,6 +110,7 @@ export default {
this.nextPageRange = 1; this.nextPageRange = 1;
}, },
readData(isKeep) { readData(isKeep) {
console.log(111);
if (typeof this.url != undefined && this.url != null && this.url != '') { if (typeof this.url != undefined && this.url != null && this.url != '') {
if (isKeep == true) { if (isKeep == true) {
// nothing // nothing

View File

@@ -190,7 +190,7 @@ export default {
totalItems: 0, totalItems: 0,
grid: { grid: {
url: '/api/v1/bo/attractMgt/channelList', url: '/api/v1/bo/attractMgt/channelList',
pagePerRows: 20, pagePerRows: 50,
pagination: true, pagination: true,
isCheckbox: false, // true:첫번째 컬럼 앞에 체크박스 생성 / false:체크박스 제거 isCheckbox: false, // true:첫번째 컬럼 앞에 체크박스 생성 / false:체크박스 제거
initialRequest: false, initialRequest: false,
@@ -279,12 +279,16 @@ export default {
// store에 저장된 페이지 정보 및 검색 조건을 불러오기 // store에 저장된 페이지 정보 및 검색 조건을 불러오기
let isKeep = false; let isKeep = false;
/*
if (getCondition) { if (getCondition) {
this.grid.pagePerRows = getCondition.perPage; this.grid.pagePerRows = getCondition.perPage;
this.grid.params = getCondition.params; this.grid.params = getCondition.params;
page = getCondition.page; page = getCondition.page;
isKeep = true; //isKeep = true;
} }
*/
this.grid.pagePerRows = 50;
page = 1;
this.search(isKeep); this.search(isKeep);
}, },
methods: { methods: {

View File

@@ -141,7 +141,7 @@ export default {
grid: { grid: {
url: '/api/v1/bo/calculate/calcList', url: '/api/v1/bo/calculate/calcList',
pagePerRows: 20, pagePerRows: 50,
pagination: true, pagination: true,
isCheckbox: false, // true:첫번째 컬럼 앞에 체크박스 생성 / false:체크박스 제거 isCheckbox: false, // true:첫번째 컬럼 앞에 체크박스 생성 / false:체크박스 제거
initialRequest: false, initialRequest: false,
@@ -289,12 +289,16 @@ export default {
// store에 저장된 페이지 정보 및 검색 조건을 불러오기 // store에 저장된 페이지 정보 및 검색 조건을 불러오기
let isKeep = false; let isKeep = false;
/*
if (getCondition) { if (getCondition) {
this.grid.pagePerRows = getCondition.perPage; this.grid.pagePerRows = getCondition.perPage;
this.grid.params = getCondition.params; this.grid.params = getCondition.params;
page = getCondition.page; page = getCondition.page;
isKeep = true; //isKeep = true;
} }
*/
this.grid.pagePerRows = 50;
page = 1;
this.search(isKeep); this.search(isKeep);
}, },
beforeRouteLeave(to, from, next) { beforeRouteLeave(to, from, next) {

View File

@@ -55,7 +55,7 @@
:totalItems="'totalItems'" :totalItems="'totalItems'"
:url="grid.url" :url="grid.url"
:pagePerRows="grid.pagePerRows" :pagePerRows="grid.pagePerRows"
:initialRequest="grid.pagination" :initialRequest="grid.initialRequest"
:pagination="grid.pagination" :pagination="grid.pagination"
:isCheckbox="grid.isCheckbox" :isCheckbox="grid.isCheckbox"
:columns="grid.columns" :columns="grid.columns"
@@ -92,7 +92,7 @@ export default {
], ],
grid: { grid: {
url: '/api/v1/bo/sendNumMgt/profileList', url: '/api/v1/bo/sendNumMgt/profileList',
pagePerRows: 20, pagePerRows: 50,
pagination: true, pagination: true,
isCheckbox: false, isCheckbox: false,
initialRequest: false, initialRequest: false,
@@ -150,12 +150,16 @@ export default {
// store에 저장된 페이지 정보 및 검색 조건을 불러오기 // store에 저장된 페이지 정보 및 검색 조건을 불러오기
let isKeep = false; let isKeep = false;
/*
if (getCondition) { if (getCondition) {
this.grid.pagePerRows = getCondition.perPage; this.grid.pagePerRows = getCondition.perPage;
this.grid.params = getCondition.params; this.grid.params = getCondition.params;
page = getCondition.page; page = getCondition.page;
isKeep = true; isKeep = true;
} }
*/
this.grid.pagePerRows = 50;
page = 1;
this.search(isKeep); this.search(isKeep);
}, },
methods: { methods: {

View File

@@ -99,7 +99,7 @@ export default {
], ],
grid: { grid: {
url: '/api/v1/bo/channelMgt/tmpltList', url: '/api/v1/bo/channelMgt/tmpltList',
perPage: 20, perPage: 50,
pagination: true, pagination: true,
isCheckbox: false, isCheckbox: false,
initialRequest: false, initialRequest: false,
@@ -169,12 +169,16 @@ export default {
// store에 저장된 페이지 정보 및 검색 조건을 불러오기 // store에 저장된 페이지 정보 및 검색 조건을 불러오기
let isKeep = false; let isKeep = false;
/*
if (getCondition) { if (getCondition) {
this.grid.pagePerRows = getCondition.perPage; this.grid.pagePerRows = getCondition.perPage;
this.grid.params = getCondition.params; this.grid.params = getCondition.params;
page = getCondition.page; page = getCondition.page;
isKeep = true; isKeep = true;
} }
*/
this.grid.pagePerRows = 50;
page = 1;
this.search(isKeep); this.search(isKeep);
}, },
methods: { methods: {

View File

@@ -174,7 +174,7 @@ export default {
totalItems: 0, totalItems: 0,
grid: { grid: {
url: '/api/v1/bo/custMgt/memberList', url: '/api/v1/bo/custMgt/memberList',
pagePerRows: 20, pagePerRows: 50,
pagination: true, pagination: true,
isCheckbox: false, // true:첫번째 컬럼 앞에 체크박스 생성 / false:체크박스 제거 isCheckbox: false, // true:첫번째 컬럼 앞에 체크박스 생성 / false:체크박스 제거
initialRequest: false, initialRequest: false,
@@ -244,12 +244,16 @@ export default {
// store에 저장된 페이지 정보 및 검색 조건을 불러오기 // store에 저장된 페이지 정보 및 검색 조건을 불러오기
let isKeep = false; let isKeep = false;
/*
if (getCondition) { if (getCondition) {
this.grid.pagePerRows = getCondition.perPage; this.grid.pagePerRows = getCondition.perPage;
this.grid.params = getCondition.params; this.grid.params = getCondition.params;
page = getCondition.page; page = getCondition.page;
isKeep = true; isKeep = true;
} }
*/
this.grid.pagePerRows = 50;
page = 1;
this.search(isKeep); this.search(isKeep);
}, },
beforeRouteLeave(to, from, next) { beforeRouteLeave(to, from, next) {

View File

@@ -184,7 +184,7 @@ export default {
totalItems: 0, totalItems: 0,
grid: { grid: {
url: '/api/v1/bo/custMgt/subsList', url: '/api/v1/bo/custMgt/subsList',
pagePerRows: 20, pagePerRows: 50,
pagination: true, pagination: true,
isCheckbox: false, // true:첫번째 컬럼 앞에 체크박스 생성 / false:체크박스 제거 isCheckbox: false, // true:첫번째 컬럼 앞에 체크박스 생성 / false:체크박스 제거
initialRequest: false, initialRequest: false,
@@ -260,12 +260,16 @@ export default {
// store에 저장된 페이지 정보 및 검색 조건을 불러오기 // store에 저장된 페이지 정보 및 검색 조건을 불러오기
let isKeep = false; let isKeep = false;
/*
if (getCondition) { if (getCondition) {
this.grid.pagePerRows = getCondition.perPage; this.grid.pagePerRows = getCondition.perPage;
this.grid.params = getCondition.params; this.grid.params = getCondition.params;
page = getCondition.page; page = getCondition.page;
isKeep = true; isKeep = true;
} }
*/
this.grid.pagePerRows = 50;
page = 1;
this.search(isKeep); this.search(isKeep);
}, },
beforeRouteLeave(to, from, next) { beforeRouteLeave(to, from, next) {

View File

@@ -118,10 +118,10 @@ export default {
], ],
grid: { grid: {
url: '/api/v1/bo/homeMgt/faqList', url: '/api/v1/bo/homeMgt/faqList',
pagePerRows: 20, pagePerRows: 50,
pagination: true, pagination: true,
isCheckbox: true, // true:첫번째 컬럼 앞에 체크박스 생성 / false:체크박스 제거 isCheckbox: true, // true:첫번째 컬럼 앞에 체크박스 생성 / false:체크박스 제거
initialRequest: true, initialRequest: false,
addCls: 'box_OFvis', addCls: 'box_OFvis',
columns: [ columns: [
@@ -171,12 +171,15 @@ export default {
// store에 저장된 페이지 정보 및 검색 조건을 불러오기 // store에 저장된 페이지 정보 및 검색 조건을 불러오기
let isKeep = false; let isKeep = false;
/*
if (getCondition) { if (getCondition) {
this.grid.pagePerRows = getCondition.perPage; this.grid.pagePerRows = getCondition.perPage;
this.grid.params = getCondition.params; this.grid.params = getCondition.params;
// page = getCondition.page; page = getCondition.page;
isKeep = true; isKeep = true;
} }
*/
this.grid.pagePerRows = 50;
this.search(isKeep); this.search(isKeep);
}, },
beforeRouteLeave(to, from, next) { beforeRouteLeave(to, from, next) {

View File

@@ -117,10 +117,10 @@ export default {
], ],
grid: { grid: {
url: '/api/v1/bo/homeMgt/noticeList', url: '/api/v1/bo/homeMgt/noticeList',
pagePerRows: 20, pagePerRows: 50,
pagination: true, pagination: true,
isCheckbox: true, // true:첫번째 컬럼 앞에 체크박스 생성 / false:체크박스 제거 isCheckbox: true, // true:첫번째 컬럼 앞에 체크박스 생성 / false:체크박스 제거
initialRequest: true, initialRequest: false,
addCls: 'box_OFvis', addCls: 'box_OFvis',
columns: [ columns: [
@@ -180,12 +180,15 @@ export default {
// store에 저장된 페이지 정보 및 검색 조건을 불러오기 // store에 저장된 페이지 정보 및 검색 조건을 불러오기
let isKeep = false; let isKeep = false;
/*
if (getCondition) { if (getCondition) {
this.grid.pagePerRows = getCondition.perPage; this.grid.pagePerRows = getCondition.perPage;
this.grid.params = getCondition.params; this.grid.params = getCondition.params;
// page = getCondition.page; // page = getCondition.page;
isKeep = true; //isKeep = true;
} }
*/
this.grid.pagePerRows = 50;
this.search(isKeep); this.search(isKeep);
}, },
beforeRouteLeave(to, from, next) { beforeRouteLeave(to, from, next) {

View File

@@ -146,7 +146,7 @@ export default {
totalItems: 0, totalItems: 0,
grid: { grid: {
url: '/api/v1/bo/mntrng/sendList', url: '/api/v1/bo/mntrng/sendList',
perPage: 20, perPage: 50,
pagination: true, pagination: true,
isCheckbox: false, isCheckbox: false,
initialRequest: false, initialRequest: false,
@@ -226,12 +226,16 @@ export default {
// store에 저장된 페이지 정보 및 검색 조건을 불러오기 // store에 저장된 페이지 정보 및 검색 조건을 불러오기
let isKeep = false; let isKeep = false;
/*
if (getCondition) { if (getCondition) {
this.grid.pagePerRows = getCondition.perPage; this.grid.pagePerRows = getCondition.perPage;
this.grid.params = getCondition.params; this.grid.params = getCondition.params;
page = getCondition.page; page = getCondition.page;
isKeep = true; //isKeep = true;
} }
*/
this.grid.pagePerRows = 50;
page = 1;
this.search(isKeep); this.search(isKeep);
}, },
beforeRouteLeave(to, from, next) { beforeRouteLeave(to, from, next) {

View File

@@ -55,7 +55,7 @@
<button class="btn-default" @click="ModalClose();">취소</button> <button class="btn-default" @click="ModalClose();">취소</button>
</div> </div>
</div> </div>
<common-modal ref="commonModal"></common-modal> <!-- <common-modal ref="commonModal"></common-modal> -->
<validation-confirm-popup ref="ValidationConfirmPopup"></validation-confirm-popup> <validation-confirm-popup ref="ValidationConfirmPopup"></validation-confirm-popup>
</div> </div>

View File

@@ -85,7 +85,7 @@
:totalItems="'totalItems'" :totalItems="'totalItems'"
:url="grid.url" :url="grid.url"
:pagePerRows="grid.pagePerRows" :pagePerRows="grid.pagePerRows"
:initialRequest="grid.pagination" :initialRequest="grid.initialRequest"
:pagination="grid.pagination" :pagination="grid.pagination"
:isCheckbox="grid.isCheckbox" :isCheckbox="grid.isCheckbox"
:columns="grid.columns" :columns="grid.columns"
@@ -154,8 +154,8 @@ export default {
row: {}, row: {},
grid: { grid: {
url: '/api/v1/bo/riskMgt/web/intrcpList', url: '/api/v1/bo/riskMgt/web/intrcpList',
perPage: 20, perPage: 50,
pagePerRows: 20, pagePerRows: 50,
pagination: true, pagination: true,
isCheckbox: false, isCheckbox: false,
initialRequest: false, initialRequest: false,
@@ -216,7 +216,7 @@ export default {
destroyed() { destroyed() {
this.$store.commit('searchcondition/updateSearchCondition', { this.$store.commit('searchcondition/updateSearchCondition', {
page: 1, page: 1,
perPage: 20, perPage: 50,
params: { params: {
blckDt: '', blckDt: '',
blckRsnCd: '', blckRsnCd: '',
@@ -238,12 +238,16 @@ export default {
const getCondition = this.$store.getters['searchcondition/getSearchCondition']; const getCondition = this.$store.getters['searchcondition/getSearchCondition'];
let isKeep = false; let isKeep = false;
/*
if (getCondition) { if (getCondition) {
this.grid.pagePerRows = getCondition.perPage; this.grid.pagePerRows = getCondition.perPage;
this.grid.params = getCondition.params; this.grid.params = getCondition.params;
page = getCondition.page; page = getCondition.page;
isKeep = true; //isKeep = true;
} }
*/
this.grid.pagePerRows = 50;
page = 1;
this.search(isKeep); this.search(isKeep);
}, },
methods: { methods: {

View File

@@ -138,7 +138,7 @@ export default {
], ],
grid: { grid: {
url: '/api/v1/bo/riskMgt/sendNum/intrcpList', url: '/api/v1/bo/riskMgt/sendNum/intrcpList',
pagePerRows: 20, pagePerRows: 50,
//perPage: 50, //perPage: 50,
pagination: true, pagination: true,
isCheckbox: false, isCheckbox: false,
@@ -206,12 +206,16 @@ export default {
const getCondition = this.$store.getters['searchcondition/getSearchCondition']; const getCondition = this.$store.getters['searchcondition/getSearchCondition'];
let isKeep = false; let isKeep = false;
/*
if (getCondition) { if (getCondition) {
this.grid.pagePerRows = getCondition.perPage; this.grid.pagePerRows = getCondition.perPage;
this.grid.params = getCondition.params; this.grid.params = getCondition.params;
page = getCondition.page; page = getCondition.page;
isKeep = true; isKeep = true;
} }
*/
this.grid.pagePerRows = 50;
page = 1;
this.search(isKeep); this.search(isKeep);
}, },
methods: { methods: {

View File

@@ -115,7 +115,7 @@ export default {
blckRsnCd: '', blckRsnCd: '',
grid: { grid: {
url: '/api/v1/bo/riskMgt/msg/intrcpList', url: '/api/v1/bo/riskMgt/msg/intrcpList',
perPageRows: 20, pagePerRows: 50,
pagination: true, pagination: true,
isCheckbox: false, isCheckbox: false,
initialRequest: false, initialRequest: false,
@@ -175,12 +175,16 @@ export default {
const getCondition = this.$store.getters['searchcondition/getSearchCondition']; const getCondition = this.$store.getters['searchcondition/getSearchCondition'];
let isKeep = false; let isKeep = false;
/*
if (getCondition) { if (getCondition) {
this.grid.pagePerRows = getCondition.perPage; this.grid.pagePerRows = getCondition.perPage;
this.grid.params = getCondition.params; this.grid.params = getCondition.params;
page = getCondition.page; page = getCondition.page;
isKeep = true; isKeep = true;
} }
*/
this.grid.pagePerRows = 50;
page = 1;
this.search(isKeep); this.search(isKeep);
}, },
methods: { methods: {

View File

@@ -46,7 +46,7 @@
:totalItems="'totalItems'" :totalItems="'totalItems'"
:url="grid.url" :url="grid.url"
:pagePerRows="grid.pagePerRows" :pagePerRows="grid.pagePerRows"
:initialRequest="grid.pagination" :initialRequest="grid.initialRequest"
:pagination="grid.pagination" :pagination="grid.pagination"
:isCheckbox="grid.isCheckbox" :isCheckbox="grid.isCheckbox"
:columns="grid.columns" :columns="grid.columns"
@@ -118,7 +118,7 @@ export default {
userType: [], userType: [],
row: {}, row: {},
perPageCnt: 50, perPageCnt: 50,
pagePerRows: 20, pagePerRows: 50,
options: [ options: [
{text: '20', value: 20}, {text: '20', value: 20},
{text: '50', value: 50}, {text: '50', value: 50},
@@ -183,12 +183,16 @@ export default {
const getCondition = this.$store.getters['searchcondition/getSearchCondition']; const getCondition = this.$store.getters['searchcondition/getSearchCondition'];
let isKeep = false; let isKeep = false;
/*
if (getCondition) { if (getCondition) {
this.grid.pagePerRows = getCondition.perPage; this.grid.pagePerRows = getCondition.perPage;
this.grid.params = getCondition.params; this.grid.params = getCondition.params;
page = getCondition.page; page = getCondition.page;
isKeep = true; isKeep = true;
} }
*/
this.grid.pagePerRows = 50;
page = 1;
this.search(isKeep); this.search(isKeep);
}, },
methods: { methods: {

View File

@@ -174,12 +174,16 @@ export default {
const getCondition = this.$store.getters['searchcondition/getSearchCondition']; const getCondition = this.$store.getters['searchcondition/getSearchCondition'];
let isKeep = false; let isKeep = false;
/*
if (getCondition) { if (getCondition) {
this.grid.pagePerRows = getCondition.perPage; this.grid.pagePerRows = getCondition.perPage;
this.grid.params = getCondition.params; this.grid.params = getCondition.params;
page = getCondition.page; page = getCondition.page;
isKeep = true; isKeep = true;
} }
*/
this.grid.pagePerRows = 50;
page = 1;
this.search(isKeep); this.search(isKeep);
}, },
methods: { methods: {

View File

@@ -142,7 +142,7 @@ export default {
perPageCnt: 50, perPageCnt: 50,
grid: { grid: {
url: '/api/v1/bo/sendNumMgt/numberList', url: '/api/v1/bo/sendNumMgt/numberList',
pagePerRows: 20, pagePerRows: 50,
pagination: true, pagination: true,
isCheckbox: true, isCheckbox: true,
initialRequest: false, initialRequest: false,
@@ -232,12 +232,16 @@ export default {
// store에 저장된 페이지 정보 및 검색 조건을 불러오기 // store에 저장된 페이지 정보 및 검색 조건을 불러오기
let isKeep = false; let isKeep = false;
/*
if (getCondition) { if (getCondition) {
this.grid.pagePerRows = getCondition.perPage; this.grid.pagePerRows = getCondition.perPage;
this.grid.params = getCondition.params; this.grid.params = getCondition.params;
page = getCondition.page; page = getCondition.page;
isKeep = true; isKeep = true;
} }
*/
this.grid.pagePerRows = 50;
page = 1;
this.search(isKeep); this.search(isKeep);
}, },
methods: { methods: {

View File

@@ -91,7 +91,7 @@ export default {
], ],
grid: { grid: {
url: '/api/v1/bo/servMgt/rejectRecvList', url: '/api/v1/bo/servMgt/rejectRecvList',
pagePerRows: 20, pagePerRows: 50,
pagination: true, pagination: true,
isCheckbox: false, isCheckbox: false,
initialRequest: false, initialRequest: false,
@@ -155,12 +155,16 @@ export default {
// store에 저장된 페이지 정보 및 검색 조건을 불러오기 // store에 저장된 페이지 정보 및 검색 조건을 불러오기
let isKeep = false; let isKeep = false;
/*
if (getCondition) { if (getCondition) {
this.grid.pagePerRows = getCondition.perPage; this.grid.pagePerRows = getCondition.perPage;
this.grid.params = getCondition.params; this.grid.params = getCondition.params;
page = getCondition.page; page = getCondition.page;
isKeep = true; isKeep = true;
} }
*/
this.grid.pagePerRows = 50;
page = 1;
this.search(isKeep); this.search(isKeep);
}, },
methods: { methods: {

View File

@@ -139,7 +139,7 @@ export default {
totalItems: 0, totalItems: 0,
grid: { grid: {
url: '/api/v1/bo/stats/bsnmDayList', url: '/api/v1/bo/stats/bsnmDayList',
pagePerRows: 20, pagePerRows: 50,
pagination: true, pagination: true,
isCheckbox: false, // true:첫번째 컬럼 앞에 체크박스 생성 / false:체크박스 제거 isCheckbox: false, // true:첫번째 컬럼 앞에 체크박스 생성 / false:체크박스 제거
initialRequest: false, initialRequest: false,
@@ -411,12 +411,16 @@ export default {
// store에 저장된 페이지 정보 및 검색 조건을 불러오기 // store에 저장된 페이지 정보 및 검색 조건을 불러오기
let isKeep = false; let isKeep = false;
/*
if (getCondition) { if (getCondition) {
this.grid.pagePerRows = getCondition.perPage; this.grid.pagePerRows = getCondition.perPage;
this.grid.params = getCondition.params; this.grid.params = getCondition.params;
page = getCondition.page; page = getCondition.page;
isKeep = true; isKeep = true;
} }
*/
this.grid.pagePerRows = 50;
page = 1;
this.search(isKeep); this.search(isKeep);
}, },
beforeRouteLeave(to, from, next) { beforeRouteLeave(to, from, next) {

View File

@@ -139,7 +139,7 @@ export default {
totalItems: 0, totalItems: 0,
grid: { grid: {
url: '/api/v1/bo/stats/bsnmMonthList', url: '/api/v1/bo/stats/bsnmMonthList',
pagePerRows: 20, pagePerRows: 50,
pagination: true, pagination: true,
isCheckbox: false, // true:첫번째 컬럼 앞에 체크박스 생성 / false:체크박스 제거 isCheckbox: false, // true:첫번째 컬럼 앞에 체크박스 생성 / false:체크박스 제거
initialRequest: false, initialRequest: false,
@@ -415,12 +415,16 @@ export default {
// store에 저장된 페이지 정보 및 검색 조건을 불러오기 // store에 저장된 페이지 정보 및 검색 조건을 불러오기
let isKeep = false; let isKeep = false;
/*
if (getCondition) { if (getCondition) {
this.grid.pagePerRows = getCondition.perPage; this.grid.pagePerRows = getCondition.perPage;
this.grid.params = getCondition.params; this.grid.params = getCondition.params;
page = getCondition.page; page = getCondition.page;
isKeep = true; isKeep = true;
} }
*/
this.grid.pagePerRows = 50;
page = 1;
this.search(isKeep); this.search(isKeep);
}, },
beforeRouteLeave(to, from, next) { beforeRouteLeave(to, from, next) {

View File

@@ -128,12 +128,12 @@ export default {
cate2Code: '', cate2Code: '',
totalItems: 0, totalItems: 0,
// 테이블 리스트 데이터 // 테이블 리스트 데이터
perPageCnt: 20, perPageCnt: 50,
searchType1: '', searchType1: '',
searchType2: '', searchType2: '',
grid: { grid: {
url: '/api/v1/bo/sysMgt/adminList', url: '/api/v1/bo/sysMgt/adminList',
pagePerRows: 20, pagePerRows: 50,
pagination: true, pagination: true,
isCheckbox: true, // true:첫번째 컬럼 앞에 체크박스 생성 / false:체크박스 제거 isCheckbox: true, // true:첫번째 컬럼 앞에 체크박스 생성 / false:체크박스 제거
initialRequest: false, initialRequest: false,
@@ -188,12 +188,16 @@ export default {
const getCondition = this.$store.getters['searchcondition/getSearchCondition']; const getCondition = this.$store.getters['searchcondition/getSearchCondition'];
// store에 저장된 페이지 정보 및 검색 조건을 불러오기 // store에 저장된 페이지 정보 및 검색 조건을 불러오기
let isKeep = false; let isKeep = false;
/*
if (getCondition) { if (getCondition) {
this.grid.pagePerRows = getCondition.perPage; this.grid.pagePerRows = getCondition.perPage;
this.grid.params = getCondition.params; this.grid.params = getCondition.params;
page = getCondition.page; page = getCondition.page;
isKeep = true; isKeep = true;
} }
*/
this.grid.pagePerRows = 50;
page = 1;
this.search(isKeep); this.search(isKeep);
}, },
methods: { methods: {

View File

@@ -197,7 +197,7 @@ export default {
this.grid.pagePerRows = getCondition.perPage; this.grid.pagePerRows = getCondition.perPage;
this.grid.params = getCondition.params; this.grid.params = getCondition.params;
page = getCondition.page; page = getCondition.page;
isKeep = true; //isKeep = true;
} }
this.search(isKeep); this.search(isKeep);
}, },

View File

@@ -96,11 +96,14 @@ export default {
let page = 1; let page = 1;
const getCondition = this.$store.getters['searchcondition/getSearchCondition']; const getCondition = this.$store.getters['searchcondition/getSearchCondition'];
let isKeep = false; let isKeep = false;
/*
if (getCondition) { if (getCondition) {
this.grid.params = getCondition.params; this.grid.params = getCondition.params;
page = getCondition.page; page = getCondition.page;
isKeep = true; isKeep = true;
} }
*/
page = 1;
this.search(isKeep); this.search(isKeep);
}, },

View File

@@ -86,7 +86,7 @@
:url="grid.url" :url="grid.url"
:columns="grid.columns" :columns="grid.columns"
:pagePerRows="grid.pagePerRows" :pagePerRows="grid.pagePerRows"
:initialRequest="grid.pagination" :initialRequest="grid.initialRequest"
:pagination="grid.pagination" :pagination="grid.pagination"
:noDataStr="grid.noDataStr" :noDataStr="grid.noDataStr"
:addCls="grid.addCls" :addCls="grid.addCls"
@@ -151,7 +151,7 @@ export default {
totalItems: 0, totalItems: 0,
grid: { grid: {
url: '/api/v1/bo/sysMgt/notiList', url: '/api/v1/bo/sysMgt/notiList',
pagePerRows: 20, pagePerRows: 50,
pagination: true, pagination: true,
addCls: 'box_OFvis', addCls: 'box_OFvis',
initialRequest: false, initialRequest: false,
@@ -211,12 +211,16 @@ export default {
let page = 1; let page = 1;
const getCondition = this.$store.getters['searchcondition/getSearchCondition']; const getCondition = this.$store.getters['searchcondition/getSearchCondition'];
let isKeep = false; let isKeep = false;
/*
if (getCondition) { if (getCondition) {
this.grid.pagePerRows = getCondition.perPage; this.grid.pagePerRows = getCondition.perPage;
this.grid.params = getCondition.params; this.grid.params = getCondition.params;
page = getCondition.page; page = getCondition.page;
isKeep = true; isKeep = true;
} }
*/
this.grid.pagePerRows = 50;
page = 1;
this.search(isKeep); this.search(isKeep);
}, },