mirror of
http://git.mhez-qa.uplus.co.kr/hubez/hubez-admin.git
synced 2025-12-06 19:25:44 +09:00
admin_chrg db수정
This commit is contained in:
@@ -457,7 +457,6 @@ export default {
|
||||
for (var i = 0; i < dimmed.length; i++) {
|
||||
dimmed[i].style.display = 'none';
|
||||
}
|
||||
console.log("3")
|
||||
this.$parent.ChrgUpdateModal();
|
||||
|
||||
},
|
||||
|
||||
@@ -108,7 +108,7 @@ import customGrid from '@/components/CustomGrid';
|
||||
import moment from 'moment';
|
||||
import InsertChrgModal from '../components/InsertChrgModal';
|
||||
import chrgDetailPop from '../components/ChrgDetailPop.vue';
|
||||
import commonModal from "../components/commonModal";
|
||||
import commonModal from "@/components/modal/commonModal";
|
||||
import custMgtApi from '../service/custMgtApi';
|
||||
|
||||
class CustomATagRenderer {
|
||||
@@ -293,7 +293,6 @@ export default {
|
||||
if (this.startDate > this.endDate) {
|
||||
this.startDate = this.endDate;
|
||||
}
|
||||
|
||||
},
|
||||
selectedEndDate(day) {
|
||||
if (day != undefined && day != null) {
|
||||
@@ -306,7 +305,7 @@ export default {
|
||||
let initEndDate = new Date();
|
||||
initStartDate.setMonth(Number(moment(initStartDate).format('MM')) -100)
|
||||
initEndDate.setMonth(Number(moment(initEndDate).format('MM')) + 100)
|
||||
|
||||
|
||||
|
||||
if (type == 'start') {
|
||||
this.disabledSDate = {to: initStartDate, from: new Date()};
|
||||
@@ -356,14 +355,12 @@ export default {
|
||||
if (this.doValidate()) {
|
||||
this.row.title = '충전금 관리';
|
||||
this.row.msg1 = '삭제 하시겠습니까?';
|
||||
// console.log("row.list", this.row.list)
|
||||
this.$refs.commonModal.confirmModalOpen2(this.row);
|
||||
}
|
||||
},
|
||||
|
||||
async chrgdelete() {
|
||||
try {
|
||||
// console.log("this.row",this.row)
|
||||
let respose = await custMgtApi.deleteChrg(this.row);
|
||||
|
||||
const result = respose.data;
|
||||
@@ -396,18 +393,13 @@ export default {
|
||||
// return false;
|
||||
// }
|
||||
var chkList = this.$refs.table.checkedElementDatas();
|
||||
console.log("chkList",chkList)
|
||||
// console.log("chkList.length", chkList.length)
|
||||
if (chkList.length == 0) {
|
||||
this.row.title = '충전금 관리';
|
||||
this.row.msg1 = '삭제대상을 체크를 해주세요.';
|
||||
this.$refs.commonModal.alertModalOpen(this.row);
|
||||
return false;
|
||||
}
|
||||
// console.log("row.chrgSeq",this.row.chrgSeq)
|
||||
const param = chkList.map((row) => ({ chrgSeq: row.chrgSeq }));
|
||||
// console.log("param",param)
|
||||
// console.log("chrgSeq",chrgSeq)
|
||||
this.row.list = param;
|
||||
return true;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user