|
|
@ -123,8 +123,6 @@ export default { |
|
|
|
this.upload = true; |
|
|
|
this.uploaded = new FormData(); |
|
|
|
this.uploaded.append("file", e.target.files[0]); |
|
|
|
console.log(this.uploaded); |
|
|
|
console.log("uploadBookingID" + this.uploadBookingID); |
|
|
|
this.size = Math.ceil(e.target.files[0].size / 1000); |
|
|
|
this.$axios |
|
|
|
.post( |
|
|
@ -132,12 +130,10 @@ export default { |
|
|
|
.then((response) => { |
|
|
|
//console.log(JSON.stringify(response)) |
|
|
|
if(response && response.data){ |
|
|
|
console.log("是有沒有傳成功阿肝"); |
|
|
|
this.upload = false; |
|
|
|
this.success = true; |
|
|
|
this.$emit('reload-BookingContent'); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
}) |
|
|
|
.catch((error) => { |
|
|
|