admin_chrg 달력 수정중

This commit is contained in:
2023-03-29 14:38:40 +09:00
parent f1b495d1b1
commit 7f826e8bd9

View File

@@ -110,6 +110,7 @@ import InsertChrgModal from '../components/InsertChrgModal';
import chrgDetailPop from '../components/ChrgDetailPop.vue';
import commonModal from "@/components/modal/commonModal";
import custMgtApi from '../service/custMgtApi';
import { set } from 'vue';
class CustomATagRenderer {
constructor(props) {
@@ -252,6 +253,7 @@ export default {
this.grid.params.searchType1 = this.searchType1;
this.$refs.table.search(this.grid.params, isKeep);
this.sendStoreData();
},
changePerPage: function () {
@@ -292,6 +294,12 @@ export default {
if (this.startDate > this.endDate) {
this.startDate = this.endDate;
}
// else if(this.startDate<this.endDate){
// this.row.title = '날짜 선택';
// this.row.msg1 = '조회기간 다시 설정해주세요.';
// this.$refs.commonModal.alertModalOpen(this.row);
}
},
selectedEndDate(day) {
if (day != undefined && day != null) {
@@ -338,12 +346,12 @@ export default {
},
initSetStartDate() {
let initStartDate = new Date();
initStartDate.setMonth(Number(moment(initStartDate).format('MM')) );
initStartDate.setMonth(Number(moment(initStartDate).format('MM')) -1);
this.startDate = initStartDate;
},
initSetEndDate() {
let initEndDate = new Date();
initEndDate.setMonth(Number(moment(initEndDate).format('MM')) +1);
initEndDate.setMonth(Number(moment(initEndDate).format('MM')) );
this.endDate = initEndDate;
},