새로고침시 스토어 저장

This commit is contained in:
Leeminha
2022-11-07 10:47:55 +09:00
parent 66c1c26840
commit 2c139e2b70

View File

@@ -167,6 +167,13 @@ export default {
created(){ created(){
this.setPeriodDay(0); this.setPeriodDay(0);
this.setCodeData(); this.setCodeData();
if(this.$route.params.batchId != null){
console.log("스토어저장")
this.$store.commit('dataStore/updateDataStore', this.$route.params.batchId);
} else {
var batchId2 = this.$store.getters['dataStore/getDataStore'];
this.batchId = batchId2;
}
}, },
destroyed() {}, destroyed() {},
mounted(){ mounted(){
@@ -201,7 +208,7 @@ export default {
this.grid.params = { this.grid.params = {
startDt: moment(this.startDate).format('YYYYMMDD'), startDt: moment(this.startDate).format('YYYYMMDD'),
endDt: moment(this.endDate).format('YYYYMMDD'), endDt: moment(this.endDate).format('YYYYMMDD'),
batchId: this.$route.params.batchId, batchId: this.batchId,
sttusCd: this.sttusCd sttusCd: this.sttusCd
} }