|
@@ -642,11 +642,6 @@ export default {
|
|
|
},
|
|
|
//预览
|
|
|
async signaturePreview() {
|
|
|
- const url = await this.prePictureApi()
|
|
|
- if (!url) return
|
|
|
- window.open(url, '_blank')
|
|
|
- },
|
|
|
- async prePictureApi() {
|
|
|
const form = this.form
|
|
|
const isImg = form.signatureFileUrl.length <= 0
|
|
|
if (isImg) {
|
|
@@ -664,6 +659,14 @@ export default {
|
|
|
})
|
|
|
return false
|
|
|
}
|
|
|
+ const url = await this.prePictureApi()
|
|
|
+ if (!url) return
|
|
|
+ window.open(url, '_blank')
|
|
|
+ },
|
|
|
+ async prePictureApi() {
|
|
|
+ const form = this.form
|
|
|
+ const file = form.signatureFileUrl[0].raw
|
|
|
+ if (!file) return false
|
|
|
let fromData = new FormData();
|
|
|
fromData.append('file', file);
|
|
|
fromData.append('wide', form.wide);
|