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 chrgDetailPop from '../components/ChrgDetailPop.vue';
import commonModal from "@/components/modal/commonModal"; import commonModal from "@/components/modal/commonModal";
import custMgtApi from '../service/custMgtApi'; import custMgtApi from '../service/custMgtApi';
import { set } from 'vue';
class CustomATagRenderer { class CustomATagRenderer {
constructor(props) { constructor(props) {
@@ -252,6 +253,7 @@ export default {
this.grid.params.searchType1 = this.searchType1; this.grid.params.searchType1 = this.searchType1;
this.$refs.table.search(this.grid.params, isKeep); this.$refs.table.search(this.grid.params, isKeep);
this.sendStoreData(); this.sendStoreData();
}, },
changePerPage: function () { changePerPage: function () {
@@ -292,6 +294,12 @@ export default {
if (this.startDate > this.endDate) { if (this.startDate > this.endDate) {
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) { selectedEndDate(day) {
if (day != undefined && day != null) { if (day != undefined && day != null) {
@@ -338,12 +346,12 @@ export default {
}, },
initSetStartDate() { initSetStartDate() {
let initStartDate = new Date(); let initStartDate = new Date();
initStartDate.setMonth(Number(moment(initStartDate).format('MM')) ); initStartDate.setMonth(Number(moment(initStartDate).format('MM')) -1);
this.startDate = initStartDate; this.startDate = initStartDate;
}, },
initSetEndDate() { initSetEndDate() {
let initEndDate = new Date(); let initEndDate = new Date();
initEndDate.setMonth(Number(moment(initEndDate).format('MM')) +1); initEndDate.setMonth(Number(moment(initEndDate).format('MM')) );
this.endDate = initEndDate; this.endDate = initEndDate;
}, },