diff --git a/src/pages/personal/pages/my-questions/components/answerItem.vue b/src/pages/personal/pages/my-questions/components/answerItem.vue index c1254be4d..d00603046 100644 --- a/src/pages/personal/pages/my-questions/components/answerItem.vue +++ b/src/pages/personal/pages/my-questions/components/answerItem.vue @@ -144,12 +144,26 @@ export default { this.$http.postData('lawss/Reply/insertReply',{ ...this.form },{ _this: this }, res => { - this.$http.post("lawss/activiti/completeTask", { - json: JSON.stringify(this.form), - taskId: this.$route.query.taskIds, - userId: this.$store.getters.userInfo.userId - }, {}, res => { - }); + this.$http.get('lawss/activiti/questionsAndAnswers', { + askId: asdId, + answerer: this.$store.getters.userInfo.userId + }, { + _this: this, + }, res => { + if(res && res.data){ + const taskId = res.data.taskId + const json = res.data.mesg + this.$http.post("lawss/activiti/completeTask", { + // json: JSON.stringify(this.form), + // taskId: this.$route.query.taskIds, + json, + taskId, + userId: this.$store.getters.userInfo.userId + }, {}, res => { + }); + } + }, e => {}) + if(res.respCode === '200'){ this.form.reply = '' this.fileList = []