Explorar o código

前端: 上传文件限制为100MB

baichengfei %!s(int64=4) %!d(string=hai) anos
pai
achega
574bb64b41

+ 2 - 2
src/dashoo.cn/frontend_web/src/components/oilsupplier/auditfilelist.vue

@@ -440,9 +440,9 @@
       },
 
       beforeAvatarUpload (file) {
-        let isLt50m = file.size / 1024 / 1024 / 50 < 1
+        let isLt50m = file.size / 1024 / 1024 / 100 < 1
         if (!isLt50m) {
-          this.$message.error('上传文件大小不能超过 50MB!')
+          this.$message.error('上传文件大小不能超过 100MB!')
           return false
         }
         return true

+ 3 - 3
src/dashoo.cn/frontend_web/src/components/oilsupplier/subfilelist2.vue

@@ -94,7 +94,7 @@
                 :limit="5"
                 :on-exceed="uploadExceed">
                 <i class="el-icon-plus"></i>
-                <div slot="tip" class="el-upload__tip" v-if="SubfileForm.NeedFileType !=yasuoname">请上传图片(最大可上传 10MB),最多可上传五张图片
+                <div slot="tip" class="el-upload__tip" v-if="SubfileForm.NeedFileType !=yasuoname">请上传图片(最大可上传 100MB),最多可上传五张图片
                 </div>
                 <div slot="tip" class="el-upload__tip" v-if="SubfileForm.NeedFileType ==yasuoname">请上传压缩文件
                 </div>
@@ -607,9 +607,9 @@
       beforeAvatarUpload (file) {
         console.log(file, '=====')
         if (this.SubfileForm.NeedFileType != this.yasuoname) {
-          let isLt10m = file.size / 1024 / 1024 / 10 < 1
+          let isLt10m = file.size / 1024 / 1024 / 100 < 1
           if (!isLt10m) {
-            this.$message.error('上传文件大小不能超过 10MB!')
+            this.$message.error('上传文件大小不能超过 100MB!')
             return false
           }
           return true

+ 2 - 2
src/dashoo.cn/frontend_web/src/components/oilsupplierstore/goodsinfo.vue

@@ -1308,9 +1308,9 @@
         return true
       },
       beforeAvatarUpload (file) {
-        let isLt10m = file.size / 1024 / 1024 / 10 < 1
+        let isLt10m = file.size / 1024 / 1024 / 100 < 1
         if (!isLt10m) {
-          this.$message.error('上传文件大小不能超过 10MB!')
+          this.$message.error('上传文件大小不能超过 100MB!')
           return false
         }
       },

+ 2 - 2
src/dashoo.cn/frontend_web/src/pages/documentmanage/_opera/edit.vue

@@ -373,9 +373,9 @@
           })
       },
       beforeAvatarUpload (file) {
-        let isLt50m = file.size / 1024 / 1024 / 50 < 1
+        let isLt50m = file.size / 1024 / 1024 / 100 < 1
         if (!isLt50m) {
-          this.$message.error('上传文件大小不能超过 50MB!')
+          this.$message.error('上传文件大小不能超过 100MB!')
           return false
         }
         return true

+ 6 - 6
src/dashoo.cn/frontend_web/src/pages/oilsupplier/annualaudit/_opera/bassicoperation.vue

@@ -896,7 +896,7 @@
               <el-upload multiple style="margin-top: 10px;" action="" ref="refuploadattach"
                          :on-remove="filremove" :file-list="fileList" :http-request="uploadrequest" class="attach-uploader" :before-upload="beforeAvatarUpload">
                 <i class="el-icon-plus attach-uploader-icon"></i>
-                <div slot="tip" class="el-upload__tip" v-if="SubfileForm.NeedFileType !=yasuoname">最大可上传 10MB
+                <div slot="tip" class="el-upload__tip" v-if="SubfileForm.NeedFileType !=yasuoname">最大可上传 100MB
                 </div>
               </el-upload>
             </el-form-item>
@@ -937,7 +937,7 @@
               <el-upload multiple style="margin-top: 10px;" action="" ref="newrefuploadattach"
                          :http-request="uploadrequest" class="attach-uploader" :before-upload="newbeforeAvatarUpload">
                 <i class="el-icon-plus attach-uploader-icon"></i>
-                <div slot="tip" class="el-upload__tip">最大可上传 10MB
+                <div slot="tip" class="el-upload__tip">最大可上传 100MB
                 </div>
               </el-upload>
             </el-form-item>
@@ -1729,9 +1729,9 @@ import Viewer from 'v-viewer'
       },
       newbeforeAvatarUpload (file) {
         if (this.newSubfileForm.NeedFileType != this.yasuoname) {
-          let isLt10m = file.size / 1024 / 1024 / 10 < 1
+          let isLt10m = file.size / 1024 / 1024 / 100 < 1
           if (!isLt10m) {
-            this.$message.error('上传文件大小不能超过 10MB!')
+            this.$message.error('上传文件大小不能超过 100MB!')
             return false
           }
           return true
@@ -2003,9 +2003,9 @@ import Viewer from 'v-viewer'
       },
       beforeAvatarUpload (file) {
         if (this.SubfileForm.NeedFileType !== this.yasuoname) {
-          let isLt10m = file.size / 1024 / 1024 / 10 < 1
+          let isLt10m = file.size / 1024 / 1024 / 100 < 1
           if (!isLt10m) {
-            this.$message.error('上传文件大小不能超过 10MB!')
+            this.$message.error('上传文件大小不能超过 100MB!')
             return false
           }
           return true

+ 6 - 6
src/dashoo.cn/frontend_web/src/pages/oilsupplier/annualaudit/_opera/goodsoperation.vue

@@ -1038,7 +1038,7 @@
               <el-upload multiple style="margin-top: 10px;" action="" ref="refuploadattach"
                          :on-remove="filremove" :file-list="fileList" :http-request="uploadrequest" class="attach-uploader" :before-upload="beforeAvatarUpload">
                 <i class="el-icon-plus attach-uploader-icon"></i>
-                <div slot="tip" class="el-upload__tip" v-if="SubfileForm.NeedFileType !=yasuoname">最大可上传 10MB
+                <div slot="tip" class="el-upload__tip" v-if="SubfileForm.NeedFileType !=yasuoname">最大可上传 100MB
                 </div>
               </el-upload>
             </el-form-item>
@@ -1078,7 +1078,7 @@
               <el-upload multiple style="margin-top: 10px;" action="" ref="newrefuploadattach"
                          :http-request="uploadrequest" class="attach-uploader" :before-upload="newbeforeAvatarUpload">
                 <i class="el-icon-plus attach-uploader-icon"></i>
-                <div slot="tip" class="el-upload__tip">最大可上传 10MB
+                <div slot="tip" class="el-upload__tip">最大可上传 100MB
                 </div>
               </el-upload>
             </el-form-item>
@@ -1895,9 +1895,9 @@
       },
       newbeforeAvatarUpload (file) {
         if (this.newSubfileForm.NeedFileType != this.yasuoname) {
-          let isLt10m = file.size / 1024 / 1024 / 10 < 1
+          let isLt10m = file.size / 1024 / 1024 / 100 < 1
           if (!isLt10m) {
-            this.$message.error('上传文件大小不能超过 10MB!')
+            this.$message.error('上传文件大小不能超过 100MB!')
             return false
           }
           return true
@@ -2173,9 +2173,9 @@
       },
       beforeAvatarUpload (file) {
         if (this.SubfileForm.NeedFileType !== this.yasuoname) {
-          let isLt10m = file.size / 1024 / 1024 / 10 < 1
+          let isLt10m = file.size / 1024 / 1024 / 100 < 1
           if (!isLt10m) {
-            this.$message.error('上传文件大小不能超过 10MB!')
+            this.$message.error('上传文件大小不能超过 100MB!')
             return false
           }
           return true

+ 6 - 6
src/dashoo.cn/frontend_web/src/pages/oilsupplier/annualaudit/_opera/operation.vue

@@ -809,7 +809,7 @@
               <el-upload multiple style="margin-top: 10px;" action="" ref="refuploadattach"
                          :on-remove="filremove" :file-list="fileList" :http-request="uploadrequest" class="attach-uploader" :before-upload="beforeAvatarUpload">
                 <i class="el-icon-plus attach-uploader-icon"></i>
-                <div slot="tip" class="el-upload__tip" v-if="SubfileForm.NeedFileType !=yasuoname">最大可上传 10MB
+                <div slot="tip" class="el-upload__tip" v-if="SubfileForm.NeedFileType !=yasuoname">最大可上传 100MB
                 </div>
               </el-upload>
             </el-form-item>
@@ -850,7 +850,7 @@
               <el-upload multiple style="margin-top: 10px;" action="" ref="newrefuploadattach"
                          :http-request="uploadrequest" class="attach-uploader" :before-upload="newbeforeAvatarUpload">
                 <i class="el-icon-plus attach-uploader-icon"></i>
-                <div slot="tip" class="el-upload__tip">最大可上传 10MB
+                <div slot="tip" class="el-upload__tip">最大可上传 100MB
                 </div>
               </el-upload>
             </el-form-item>
@@ -1638,9 +1638,9 @@ import Viewer from 'v-viewer'
       },
       newbeforeAvatarUpload (file) {
         if (this.newSubfileForm.NeedFileType != this.yasuoname) {
-          let isLt10m = file.size / 1024 / 1024 / 10 < 1
+          let isLt10m = file.size / 1024 / 1024 / 100 < 1
           if (!isLt10m) {
-            this.$message.error('上传文件大小不能超过 10MB!')
+            this.$message.error('上传文件大小不能超过 100MB!')
             return false
           }
           return true
@@ -1939,9 +1939,9 @@ import Viewer from 'v-viewer'
       },
       beforeAvatarUpload (file) {
         if (this.SubfileForm.NeedFileType !== this.yasuoname) {
-          let isLt10m = file.size / 1024 / 1024 / 10 < 1
+          let isLt10m = file.size / 1024 / 1024 / 100 < 1
           if (!isLt10m) {
-            this.$message.error('上传文件大小不能超过 10MB!')
+            this.$message.error('上传文件大小不能超过 100MB!')
             return false
           }
           return true

+ 3 - 3
src/dashoo.cn/frontend_web/src/pages/oilsupplier/infochangech/_opera/operation.vue

@@ -816,7 +816,7 @@
               <el-upload multiple style="margin-top: 10px;" action="" ref="refuploadattach"
                          :on-remove="filremove" :file-list="fileList" :http-request="uploadrequest" class="attach-uploader" :before-upload="beforeAvatarUpload">
                 <i class="el-icon-plus attach-uploader-icon"></i>
-                <div slot="tip" class="el-upload__tip" v-if="SubfileForm.NeedFileType !=yasuoname">最大可上传 10MB
+                <div slot="tip" class="el-upload__tip" v-if="SubfileForm.NeedFileType !=yasuoname">最大可上传 100MB
                 </div>
               </el-upload>
             </el-form-item>
@@ -2416,9 +2416,9 @@
       },
       beforeAvatarUpload (file) {
         if (this.SubfileForm.NeedFileType !== this.yasuoname) {
-          let isLt10m = file.size / 1024 / 1024 / 10 < 1
+          let isLt10m = file.size / 1024 / 1024 / 100 < 1
           if (!isLt10m) {
-            this.$message.error('上传文件大小不能超过 10MB!')
+            this.$message.error('上传文件大小不能超过 100MB!')
             return false
           }
           return true

+ 3 - 3
src/dashoo.cn/frontend_web/src/pages/oilsupplier/qualchange/_opera/operation.vue

@@ -123,7 +123,7 @@
                 <el-upload multiple style="margin-top: 10px;" action="" ref="refuploadattach"
                   :http-request="uploadrequest" class="attach-uploader" :before-upload="beforeAvatarUpload">
                   <i class="el-icon-plus attach-uploader-icon"></i>
-                  <div slot="tip" class="el-upload__tip" v-if="SubfileForm.NeedFileType !=yasuoname">最大可上传 10MB</div>
+                  <div slot="tip" class="el-upload__tip" v-if="SubfileForm.NeedFileType !=yasuoname">最大可上传 100MB</div>
                 </el-upload>
                 <!-- <el-upload style="margin-top: 10px;" action="" ref="refuploadattach" :http-request="uploadrequest"
                   class="attach-uploader" :before-upload="beforeAvatarUpload">
@@ -469,9 +469,9 @@
 
       beforeAvatarUpload (file) {
         if (this.SubfileForm.NeedFileType != this.yasuoname) {
-          let isLt50m = file.size / 1024 / 1024 / 10 < 1
+          let isLt50m = file.size / 1024 / 1024 / 100 < 1
           if (!isLt50m) {
-            this.$message.error('上传文件大小不能超过 10MB!')
+            this.$message.error('上传文件大小不能超过 100MB!')
             return false
           }
           return true

+ 6 - 6
src/dashoo.cn/frontend_web/src/pages/oilsupplier/supplierappend/_opera/basisdataopera.vue

@@ -637,7 +637,7 @@
               <el-upload multiple style="margin-top: 10px;" action="" ref="refuploadattach"
                          :on-remove="filremove" :file-list="fileList" :http-request="uploadrequest" class="attach-uploader" :before-upload="beforeAvatarUpload">
                 <i class="el-icon-plus attach-uploader-icon"></i>
-                <div slot="tip" class="el-upload__tip" v-if="SubfileForm.NeedFileType !=yasuoname">最大可上传 10MB</div>
+                <div slot="tip" class="el-upload__tip" v-if="SubfileForm.NeedFileType !=yasuoname">最大可上传 100MB</div>
               </el-upload>
             </el-form-item>
           </el-col>
@@ -860,7 +860,7 @@
               <el-upload multiple style="margin-top: 10px;" action="" ref="newrefuploadattach"
                          :http-request="uploadrequest" class="attach-uploader" :before-upload="newbeforeAvatarUpload">
                 <i class="el-icon-plus attach-uploader-icon"></i>
-                <div slot="tip" class="el-upload__tip">最大可上传 10MB
+                <div slot="tip" class="el-upload__tip">最大可上传 100MB
                 </div>
               </el-upload>
             </el-form-item>
@@ -2218,9 +2218,9 @@
       },
       beforeAvatarUpload (file) {
         if (this.SubfileForm.NeedFileType != this.yasuoname) {
-          let isLt10m = file.size / 1024 / 1024 / 10 < 1
+          let isLt10m = file.size / 1024 / 1024 / 100 < 1
           if (!isLt10m) {
-            this.$message.error('上传文件大小不能超过 10MB!')
+            this.$message.error('上传文件大小不能超过 100MB!')
             return false
           }
           return true
@@ -2234,9 +2234,9 @@
       },
       newbeforeAvatarUpload (file) {
         if (this.newSubfileForm.NeedFileType != this.yasuoname) {
-          let isLt10m = file.size / 1024 / 1024 / 10 < 1
+          let isLt10m = file.size / 1024 / 1024 / 100 < 1
           if (!isLt10m) {
-            this.$message.error('上传文件大小不能超过 10MB!')
+            this.$message.error('上传文件大小不能超过 100MB!')
             return false
           }
           return true

+ 4 - 4
src/dashoo.cn/frontend_web/src/pages/oilsupplier/supplierappend/_opera/goodsdataopera.vue

@@ -716,7 +716,7 @@
               <el-upload multiple style="margin-top: 10px;" action="" ref="refuploadattach"
                          :on-remove="filremove" :file-list="fileList" :http-request="uploadrequest" class="attach-uploader" :before-upload="beforeAvatarUpload">
                 <i class="el-icon-plus attach-uploader-icon"></i>
-                <div slot="tip" class="el-upload__tip">最大可上传 10MB</div>
+                <div slot="tip" class="el-upload__tip">最大可上传 100MB</div>
               </el-upload>
             </el-form-item>
           </el-col>
@@ -1055,7 +1055,7 @@
               <el-upload multiple style="margin-top: 10px;" action="" ref="newrefuploadattach"
                 :http-request="uploadrequest" class="attach-uploader" :before-upload="beforeAvatarUpload">
                 <i class="el-icon-plus attach-uploader-icon"></i>
-                <div slot="tip" class="el-upload__tip">最大可上传 10MB
+                <div slot="tip" class="el-upload__tip">最大可上传 100MB
                 </div>
               </el-upload>
             </el-form-item>
@@ -2764,9 +2764,9 @@
         this.fileList = files
       },
       beforeAvatarUpload (file) {
-        let isLt50m = file.size / 1024 / 1024 / 10 < 1 // 改为限制10M
+        let isLt50m = file.size / 1024 / 1024 / 100 < 1 // 改为限制100M
         if (!isLt50m) {
-          this.$message.error('上传文件大小不能超过 10MB!')
+          this.$message.error('上传文件大小不能超过 100MB!')
           return false
         }
         return true

+ 4 - 4
src/dashoo.cn/frontend_web/src/pages/oilsupplier/supplierappend/_opera/techdataopera.vue

@@ -639,7 +639,7 @@
               <el-upload multiple style="margin-top: 10px;" action="" ref="refuploadattach" :http-request="uploadrequest"
                          :on-remove="filremove" :file-list="fileList" class="attach-uploader" :before-upload="beforeAvatarUpload">
                 <i class="el-icon-plus attach-uploader-icon"></i>
-                <div slot="tip" class="el-upload__tip">最大可上传 10MB</div>
+                <div slot="tip" class="el-upload__tip">最大可上传 100MB</div>
               </el-upload>
             </el-form-item>
           </el-col>
@@ -862,7 +862,7 @@
               <el-upload multiple style="margin-top: 10px;" action="" ref="newrefuploadattach"
                          :http-request="uploadrequest" class="attach-uploader" :before-upload="beforeAvatarUpload">
                 <i class="el-icon-plus attach-uploader-icon"></i>
-                <div slot="tip" class="el-upload__tip">最大可上传 10MB
+                <div slot="tip" class="el-upload__tip">最大可上传 100MB
                 </div>
               </el-upload>
             </el-form-item>
@@ -2676,9 +2676,9 @@
         this.fileList = files
       },
       beforeAvatarUpload (file) {
-        let isLt10m = file.size / 1024 / 1024 / 10 < 1
+        let isLt10m = file.size / 1024 / 1024 / 100 < 1
         if (!isLt10m) {
-          this.$message.error('上传文件大小不能超过 10MB!')
+          this.$message.error('上传文件大小不能超过 100MB!')
           return false
         }
         return true

+ 2 - 2
src/dashoo.cn/frontend_web/src/pages/signup.vue

@@ -691,7 +691,7 @@
 
       // 图片格式以及文件大小限制
       beforeUpload (file) {
-        let isLt10m = file.size / 1024 / 1024 / 10 < 1
+        let isLt10m = file.size / 1024 / 1024 / 100 < 1
         let isIMAGE1 = file.name.split('.')[1] === 'jpg'
         let isIMAGE2 = file.name.split('.')[1] === 'jpeg'
         let isIMAGE3 = file.name.split('.')[1] === 'png'
@@ -700,7 +700,7 @@
           this.$message.error('上传照片只能是图片格式(jpg/jpeg/png)!')
         }
         if (!isLt10m) {
-          this.$message.error('上传照片大小不能超过 10MB!')
+          this.$message.error('上传照片大小不能超过 100MB!')
         }
         return (isIMAGE1 || isIMAGE2 || isIMAGE3) && isLt10m
       },