state list 등록

This commit is contained in:
2023-05-16 14:37:31 +09:00
parent 5661395c94
commit bda68878ae
2 changed files with 58 additions and 10 deletions

View File

@@ -114,6 +114,10 @@ export default {
created() {
},
destroyed() {
this.$store.commit('searchcondition/updateSearchCondition', {
page: 1,
perPage: 50,
});
},
mounted() {
let page = 1;
@@ -148,6 +152,22 @@ export default {
search: function (isKeep) {
this.$refs.table.search(this.grid.params, isKeep);
},
changePerPage: function () {
// 페이지당 조회할 개수
this.grid.pagePerRows = this.perPageCnt;
this.search(true);
},
sendStoreData: function () {
const getP = this.$refs.table.getPagination();
this.$store.commit('searchcondition/updateSearchCondition', {
page: getP._currentPage,
perPage: this.perPageCnt,
params: this.grid.params
});
const getCondition = this.$store.getters['searchcondition/getSearchCondition'];
},
customFormatter: function (date) {
if (this.sDateDiv == 'month') {