zhangdan 4 年之前
父節點
當前提交
9894a811bc
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      pages/index/yuyue.vue

+ 3 - 1
pages/index/yuyue.vue

@@ -290,6 +290,8 @@
 				userDetail().then(res=>{
 				userDetail().then(res=>{
 					if(res.status==200){
 					if(res.status==200){
 						this.form.info=res.data.contactName
 						this.form.info=res.data.contactName
+						this.userId=res.data.id
+						delete res.data.id
 						this.userDetailInfo=res.data
 						this.userDetailInfo=res.data
 						console.log(res)
 						console.log(res)
 					}
 					}
@@ -368,7 +370,7 @@
 							})
 							})
 							return false
 							return false
 						}
 						}
-						const params= Object.assign(this.userDetailInfo, this.form)
+						const params= Object.assign(this.userDetailInfo, this.form,{userId:this.userId})
 						if(this.time){
 						if(this.time){
 							params.reserveDateBegin=this.reserveDateBegin
 							params.reserveDateBegin=this.reserveDateBegin
 							params.reserveDateEnd=this.reserveDateEnd
 							params.reserveDateEnd=this.reserveDateEnd