알림톡 조회, 차단내역 수정

This commit is contained in:
USER
2022-07-21 14:25:49 +09:00
parent d914bc1f50
commit 7b037acde3
5 changed files with 27 additions and 31 deletions

View File

@@ -94,7 +94,7 @@ export default {
],
grid: {
url: '/api/v1/bo/channelMgt/tmpltList',
perPage: 50,
perPage: 20,
pagination: true,
isCheckbox: false,
initialRequest: false,
@@ -141,11 +141,9 @@ export default {
channelMgtApi,
commonModal,
},
created() {
// const getCondition = this.$store.getters['searchcondition/getSearchCondition'];
created() {
this.getExcelHeader();
this.setCodeData();
this.grid.pagePerRows = this.perPageCnt;
this.setCodeData();
},
destroyed() {
this.$store.commit('searchcondition/updateSearchCondition', {
@@ -168,7 +166,7 @@ export default {
// store에 저장된 페이지 정보 및 검색 조건을 불러오기
let isKeep = false;
if (getCondition) {
this.grid.pagePerRows = 50;
this.grid.pagePerRows = getCondition.perPage;
this.grid.params = getCondition.params;
page = getCondition.page;
isKeep = true;
@@ -176,28 +174,22 @@ export default {
this.search(isKeep);
},
methods: {
search: function (isKeep) {
console.log(this.grid.params);
this.grid.params.searchType1 = this.searchType1
this.grid.params.searchType2 = this.searchType2
this.grid.params.pagePerRows = this.perPageCnt
this.grid.perPage = this.perPageCnt
console.log(this.grid)
search: function (isKeep) {
this.grid.params.searchType1 = this.searchType1;
this.grid.params.searchType2 = this.searchType2;
this.grid.params.pagePerRows = this.perPageCnt;
this.grid.perPage = this.perPageCnt;
this.$refs.table.search(this.grid.params, isKeep);
this.sendStoreData();
},
sendStoreData: function () {
const getP = this.$refs.table.getPagination();
console.log("==========getP : " + getP);
this.$store.commit('searchcondition/updateSearchCondition', {
page: getP._currentPage,
perPage: this.perPageCnt,
params: this.grid.params
});
const getCondition = this.$store.getters['searchcondition/getSearchCondition'];
//console.log("getCondition : "+ getCondition.perPage);
},
async getExcelDataDown() {
try {
@@ -254,6 +246,7 @@ export default {
},
changePerPage: function () { // 페이지당 조회할 개수
this.grid.pagePerRows = this.perPageCnt;
this.search(true);
},
},