Browse Source

电签签名

ZaiZai 10 months ago
parent
commit
8d6990d793
1 changed files with 4 additions and 4 deletions
  1. 4 4
      src/views/certificate/lists/addList.vue

+ 4 - 4
src/views/certificate/lists/addList.vue

@@ -526,9 +526,9 @@ export default {
           this.form.signatureFileUrl = []
         }
         //宽度
-        this.form.wide = res.data.wide
+        this.form.wide = res.data.wide ? res.data.wide : ''
         //高度
-        this.form.high = res.data.high
+        this.form.high = res.data.high ? res.data.high : ''
       }
     },
     async save (da) {//新增
@@ -670,9 +670,9 @@ export default {
       let fromData = new FormData();
       if (typeof file === 'object') {
         fromData.append('file', file);
-        fromData.append('fileStr', null);
+        fromData.append('fileStr', '');
       } else {
-        fromData.append('file', null);
+        fromData.append('file', '');
         fromData.append('fileStr', file);
       }
       fromData.append('wide', form.wide);