From a347412e6d12182ed58b9104ecc73c8b12defccf Mon Sep 17 00:00:00 2001 From: xuyuanqing <392009588@qq.com> Date: Tue, 21 Nov 2023 18:31:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=85=E5=9F=BA=E5=9C=B0=E8=B0=83=E6=9F=A5?= =?UTF-8?q?=E8=BF=9B=E5=BA=A6=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/homesteadSurvey/add4.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/views/homesteadSurvey/add4.vue b/src/views/homesteadSurvey/add4.vue index 36c046fd..80284269 100644 --- a/src/views/homesteadSurvey/add4.vue +++ b/src/views/homesteadSurvey/add4.vue @@ -330,10 +330,12 @@ export default { .then((res) => { this.signature.resultImg = res; let wj = this.dataURLtoBlob(res); + let surveyItem = JSON.parse(localStorage.getItem("surveyItem")); let param = new FormData() // 创建form对象 param.append('file', wj) // 通过append向form对象添加数据 + param.append('id', surveyItem.id) param.append('date', this.format(new Date(), 'yyyy-MM-dd')) // 通过append向form对象添加数据 - zjddcSign(param, this.zjdzdxx.zjddm).then(response => { + zjddcSign(param, this.zjdzdxx.zjddm,surveyItem.id).then(response => { this.$notify({type: 'success', message: '签字成功'}); getZjdzd(this.zjdzdxx.id).then((response) => { localStorage.setItem("zjdzdxxItem",JSON.stringify(response.data))