Commit 1c890658 authored by Davve's avatar Davve

增加pick_id限制

parent c670db20
...@@ -131,8 +131,9 @@ class PickUserListView(APIView): ...@@ -131,8 +131,9 @@ class PickUserListView(APIView):
celebrity_id = request.POST.get('celebrity_id', '') celebrity_id = request.POST.get('celebrity_id', '')
fake_pick_nums = request.POST.get('fake_pick_nums', 0) fake_pick_nums = request.POST.get('fake_pick_nums', 0)
topic_id = request.POST.get('topic_id', '') topic_id = request.POST.get('topic_id', '')
pick_id = request.POST.get('pick_id', '')
try: 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: except Exception as e:
error_logger.error(u'增加fake_pick_num失败%s' ,e) error_logger.error(u'增加fake_pick_num失败%s' ,e)
raise raise
......
...@@ -549,8 +549,10 @@ ...@@ -549,8 +549,10 @@
}) })
}, },
confirmEdit(row) { confirmEdit(row) {
const id = this.$route.params && this.$route.params.id
row.edit = false row.edit = false
row.original_fake_pick_nums = row.fake_pick_nums row.original_fake_pick_nums = row.fake_pick_nums
row.pick_id = id
this.$message({ this.$message({
message: '添加成功', message: '添加成功',
type: 'success' 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