物品相关权限

This commit is contained in:
yulixing 2019-09-17 15:43:30 +08:00
parent f49d7374d1
commit 9dc0979599

View File

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