mirror of
http://git.mhez-qa.uplus.co.kr/hubez/hubez-admin.git
synced 2025-12-06 23:18:19 +09:00
admin_chrg 페이징/ 삭제 수정
This commit is contained in:
@@ -188,8 +188,14 @@ export default {
|
||||
},
|
||||
//삭제버튼
|
||||
async ChrgDeleteModal(){
|
||||
|
||||
try {
|
||||
const response = await custMgtApi.deleteChrg(this.row);
|
||||
var parammap = {chrgSeq : this.chrgSeq}
|
||||
var list = [];
|
||||
list.push(parammap);
|
||||
var param = {list : list}
|
||||
// "list":[{"chrgSeq":"66"}]
|
||||
const response = await custMgtApi.deleteChrg(param);
|
||||
const result = response.data;
|
||||
if (result != null && result.retCode == "0000") {
|
||||
this.row.title = '충전금';
|
||||
|
||||
@@ -174,7 +174,6 @@ export default {
|
||||
addCls: 'box_OFvis',
|
||||
|
||||
columns:[
|
||||
{name: 'chrgSeq', header: 'chrgSeq', align: 'center', width: 60},
|
||||
{name: 'no', header: 'No', align: 'center', width: 60},
|
||||
{
|
||||
name: 'custNm', header: '고객사명', align: 'center', width: 130,
|
||||
@@ -355,14 +354,14 @@ export default {
|
||||
if (this.doValidate()) {
|
||||
this.row.title = '충전금 관리';
|
||||
this.row.msg1 = '삭제 하시겠습니까?';
|
||||
console.log("row.list", this.row.list)
|
||||
// console.log("row.list", this.row.list)
|
||||
this.$refs.commonModal.confirmModalOpen2(this.row);
|
||||
}
|
||||
},
|
||||
|
||||
async chrgdelete() {
|
||||
try {
|
||||
console.log("this.row",this.row)
|
||||
// console.log("this.row",this.row)
|
||||
let respose = await custMgtApi.deleteChrg(this.row);
|
||||
|
||||
const result = respose.data;
|
||||
@@ -403,9 +402,9 @@ export default {
|
||||
this.$refs.commonModal.alertModalOpen(this.row);
|
||||
return false;
|
||||
}
|
||||
console.log("row.chrgSeq",this.row.chrgSeq)
|
||||
// console.log("row.chrgSeq",this.row.chrgSeq)
|
||||
const param = chkList.map((row) => ({ chrgSeq: row.chrgSeq }));
|
||||
console.log("param",param)
|
||||
// console.log("param",param)
|
||||
// console.log("chrgSeq",chrgSeq)
|
||||
this.row.list = param;
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user