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))