diff --git a/src/views/games/details/gift/store.vue b/src/views/games/details/gift/store.vue index 910ae0d..b392db1 100644 --- a/src/views/games/details/gift/store.vue +++ b/src/views/games/details/gift/store.vue @@ -460,7 +460,7 @@ export default { type: 'warning', }) .then(() => { - delGift({_id: row._id}).then(res => { + delGift({uid:this.uid, _id: row._id}).then(res => { const data = res.data if (data.errcode === 0) { this.$message.success('删除成功!') @@ -476,7 +476,7 @@ export default { const typeList = { 0: '其他', 1: '话费', - 2: '实物' + 2: '实物', } return typeList[cellValue] }, @@ -519,6 +519,7 @@ export default { ? this.usedCodesStr.split(',') : [] if (this.isNew) { + this.modalForm.uid = this.uid addGift(this.modalForm) .then(res => { const {data} = res @@ -532,6 +533,7 @@ export default { console.log(err) }) } else { + this.modalForm.uid = this.uid updateGift(this.modalForm) .then(res => { const {data} = res