From 18cbebf949349b5f9d55e09400af780e53cadfc8 Mon Sep 17 00:00:00 2001 From: zyn Date: Wed, 12 Apr 2023 10:36:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E5=9B=9E=E7=AD=94=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../my-questions/components/answerItem.vue | 26 ++++++++++++++----- 1 file changed, 20 insertions(+), 6 deletions(-) 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 = []