Commit f32af685 authored by Davve's avatar Davve

修复问题

parent b973f2e7
...@@ -100,6 +100,7 @@ class ReplyCreate(APIView): ...@@ -100,6 +100,7 @@ class ReplyCreate(APIView):
'replied_id': request.POST.get("replied_id", None), 'replied_id': request.POST.get("replied_id", None),
'topic_id': request.POST.get("topic_id", None), 'topic_id': request.POST.get("topic_id", None),
'content': request.POST.get('content'), 'content': request.POST.get('content'),
'replied_user_id': request.POST.get('replied_user_id', None)
} }
try: try:
data = self.rpc['venus/sun/topic/reply/edit'](id=None, data=data).unwrap() data = self.rpc['venus/sun/topic/reply/edit'](id=None, data=data).unwrap()
......
...@@ -449,11 +449,6 @@ ...@@ -449,11 +449,6 @@
this.$refs.postForm.validate(valid => { this.$refs.postForm.validate(valid => {
if (valid) { if (valid) {
this.loading = true; this.loading = true;
if (this.city.length == 0){
this.$message.error('城市必填')
this.loading = false;
return false;
}
this.postForm.city = JSON.stringify(this.city); this.postForm.city = JSON.stringify(this.city);
this.postForm.pick_group = JSON.stringify(this.pick_group); this.postForm.pick_group = JSON.stringify(this.pick_group);
......
...@@ -695,12 +695,14 @@ ...@@ -695,12 +695,14 @@
user_id: '', user_id: '',
content: '', content: '',
be_replied_id: '', be_replied_id: '',
replied_user_id: ''
} }
}, },
reply(row) { reply(row) {
this.resetTemp() this.resetTemp()
if (row){ if (row){
// this.temp.be_replied_id = row.be_reply_user.id // this.temp.be_replied_id = row.be_reply_user.id
this.temp.replied_user_id = row.reply_user.id
this.temp.replied_id = row.id this.temp.replied_id = row.id
} }
this.dialogStatus = 'create' this.dialogStatus = 'create'
......
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