From 538eb134da57401d7c6d363ab072c73a0b25ce93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=99=93=E7=90=AA?= Date: Fri, 21 Oct 2022 18:30:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8C=87=E6=B4=BE=E5=AE=A1=E6=A0=B8=E4=BA=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../LearunApp-2.2.0/pages/nworkflow/myflow/sign.vue | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/nworkflow/myflow/sign.vue b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/nworkflow/myflow/sign.vue index 3b9b61efb..599dcc739 100644 --- a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/nworkflow/myflow/sign.vue +++ b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/nworkflow/myflow/sign.vue @@ -108,16 +108,19 @@ export default { this.TOAST('请选择审核人') return } - let postData = this.taskParam.formreq - const res = await this.HTTP_POST('learun/adms/newwf/instance', postData, `指派审核人时发生错误`) + // let formdata = new FormData() + // formdata.append("data",this.taskParam.formreq) + const res = await this.HTTP_POST('learun/adms/newwf/instance', this.taskParam.formreq, `指派审核人时发生错误`) if(!res){ return } - this.submitPostData.auditors = {} - this.submitPostData.auditors[this.reviewerListId] = this.reviewer + this.submitPostData.auditors = JSON.stringify({[this.reviewerListId]:this.reviewer.toString()}) + delete this.submitPostData.formreq + // this.submitPostData.auditors[this.reviewerListId] = this.reviewer + console.log(this.submitPostData) const success = await this.HTTP_POST( - this.type === 'sign' ? 'learun/adms/newwf/sign' : 'learun/adms/newwf/audit', + this.type === 'sign' ? 'learun/adms/newwf/sign' : 'learun/adms/newwf/auditors', this.submitPostData, `提交[${this.typeText}]时发生错误` )