From 9dc0979599fa03f8385cdb6735f6680c3f08ce5a Mon Sep 17 00:00:00 2001 From: yulixing Date: Tue, 17 Sep 2019 15:43:30 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=A9=E5=93=81=E7=9B=B8=E5=85=B3=E6=9D=83?= =?UTF-8?q?=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/games/details/gift/store.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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