Commit 1c890658 authored by Davve's avatar Davve

增加pick_id限制

parent c670db20
......@@ -131,8 +131,9 @@ class PickUserListView(APIView):
celebrity_id = request.POST.get('celebrity_id', '')
fake_pick_nums = request.POST.get('fake_pick_nums', 0)
topic_id = request.POST.get('topic_id', '')
pick_id = request.POST.get('pick_id', '')
try:
self.rpc['venus/sun/pick/add_fake_pick_nums'](celebrity_id=celebrity_id, topic_id=topic_id, pick_nums=fake_pick_nums).unwrap()
self.rpc['venus/sun/pick/add_fake_pick_nums'](celebrity_id=celebrity_id, topic_id=topic_id, pick_nums=fake_pick_nums, pick_id=pick_id).unwrap()
except Exception as e:
error_logger.error(u'增加fake_pick_num失败%s' ,e)
raise
......
......@@ -549,8 +549,10 @@
})
},
confirmEdit(row) {
const id = this.$route.params && this.$route.params.id
row.edit = false
row.original_fake_pick_nums = row.fake_pick_nums
row.pick_id = id
this.$message({
message: '添加成功',
type: 'success'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment