|
@@ -524,31 +524,6 @@
|
|
|
return year + '' + mouth + datetime
|
|
|
},
|
|
|
opendBtn() {
|
|
|
- html2canvas(this.$refs.saveImg.$el).then((canvas) => {
|
|
|
- let dataURL = canvas.toDataURL('image/png')
|
|
|
- this.imgUrl = dataURL
|
|
|
- if (this.imgUrl !== '') {
|
|
|
- let b = this.dataURLtoFile(this.imgUrl, 'printImage')
|
|
|
- let formdata = new FormData()
|
|
|
- formdata.append('file', b)
|
|
|
- axios({
|
|
|
- method: 'post',
|
|
|
- url:this.global.uploadPath,
|
|
|
- data: formdata,
|
|
|
- }).then((response) => {
|
|
|
- // debugger
|
|
|
- // console.log(response,111111111111)
|
|
|
- //编辑接口
|
|
|
- this.printData.pictureAddress = response.data.data.url
|
|
|
- this.inspect.pictureAddress = response.data.data.url
|
|
|
- addOut(this.inspect)
|
|
|
- .toPromise()
|
|
|
- .then((response) => {})
|
|
|
- })
|
|
|
- }
|
|
|
- })
|
|
|
- },
|
|
|
- closeDialog() {
|
|
|
// html2canvas(this.$refs.saveImg.$el).then((canvas) => {
|
|
|
// let dataURL = canvas.toDataURL('image/png')
|
|
|
// this.imgUrl = dataURL
|
|
@@ -561,15 +536,42 @@
|
|
|
// url:this.global.uploadPath,
|
|
|
// data: formdata,
|
|
|
// }).then((response) => {
|
|
|
+ // // debugger
|
|
|
+ // // console.log(response,111111111111)
|
|
|
// //编辑接口
|
|
|
- // this.printData.pictureAddress = response.data.url
|
|
|
- // this.inspect.pictureAddress = response.data.url
|
|
|
+ // this.printData.pictureAddress = response.data.data.url
|
|
|
+ // this.inspect.pictureAddress = response.data.data.url
|
|
|
// addOut(this.inspect)
|
|
|
// .toPromise()
|
|
|
// .then((response) => {})
|
|
|
// })
|
|
|
// }
|
|
|
// })
|
|
|
+ },
|
|
|
+ closeDialog() {
|
|
|
+ html2canvas(this.$refs.saveImg.$el).then((canvas) => {
|
|
|
+ let dataURL = canvas.toDataURL('image/png')
|
|
|
+ this.imgUrl = dataURL
|
|
|
+ if (this.imgUrl !== '') {
|
|
|
+ let b = this.dataURLtoFile(this.imgUrl, 'printImage')
|
|
|
+ let formdata = new FormData()
|
|
|
+ formdata.append('file', b)
|
|
|
+ axios({
|
|
|
+ method: 'post',
|
|
|
+ url:this.global.uploadPath,
|
|
|
+ data: formdata,
|
|
|
+ }).then((response) => {
|
|
|
+ //编辑接口
|
|
|
+ this.printData.pictureAddress = response.data.url
|
|
|
+ this.inspect.pictureAddress = response.data.url
|
|
|
+ addOut(this.inspect)
|
|
|
+ .toPromise()
|
|
|
+ .then((response) => {
|
|
|
+ this.getList()
|
|
|
+ })
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
this.isShowPrint = false
|
|
|
},
|
|
|
print() {
|
|
@@ -767,7 +769,7 @@
|
|
|
this.printData.contractManagement = this.inspect.contractManagement
|
|
|
console.log(this.printData)
|
|
|
this.isShowPrint = true
|
|
|
- this.getList()
|
|
|
+
|
|
|
})
|
|
|
|
|
|
})
|