| | |
| | | upObj.time = this.upTime |
| | | var objJson = JSON.stringify(upObj) |
| | | console.log(objJson, 'objJson') |
| | | // const formData = new FormData() |
| | | // formData.append(`objJson`, objJson) |
| | | // 弹框隐藏 |
| | | this.openBox = false |
| | | this.$request({ |
| | | url: 'uav/getUavDaily', |
| | | // data: formData, |
| | | data: { objJson: objJson }, |
| | | method: 'post' |
| | | method: 'post', |
| | | contentType: 'application/json' |
| | | }).then(res => { |
| | | this.isDisplay = false |
| | | if (res.code === 0) { |
| | |
| | | } else { |
| | | this.sailingReport.city = '浑南区' |
| | | } |
| | | exportDocx('/sailingReport.docx', this.sailingReport, `${obj.name}.docx`) |
| | | exportDocx('/sailingReport1.docx', this.sailingReport, `${obj.name}.docx`) |
| | | }).catch(err => { |
| | | console.log(err) |
| | | }) |
| | |
| | | }, |
| | | // 走航车上传文件到upload |
| | | handleChange1(file, fileList) { |
| | | // console.log(file, fileList) |
| | | this.fileList1 = fileList |
| | | this.fileLists[0] = fileList |
| | | }, |