Selaa lähdekoodia

1.文件限制数量放宽限制10个文件

GouGengquan 6 kuukautta sitten
vanhempi
commit
2e83705926
1 muutettua tiedostoa jossa 5 lisäystä ja 5 poistoa
  1. 5 5
      src/views/assets/orderDetail.vue

+ 5 - 5
src/views/assets/orderDetail.vue

@@ -934,7 +934,7 @@
           <el-row class="row-style">
             <el-col :xs="24" :sm="12" :lg="18" :span="6">
               <el-form-item prop="filePath" label="资料附件:" label-width="200px" class="postInfo-container-item">
-                <el-upload action="/api/upload" :limit="3" :on-success="changeresTarget" :on-exceed="handleExceed"
+                <el-upload action="/api/upload" :limit="10" :on-success="changeresTarget" :on-exceed="handleExceed"
                   :on-preview="handleAttachmentPreview" :before-remove="beforeRemove" :file-list="fileList">
                   <el-button plain type="info" round style="width: 100%">上传附件<i
                       class="el-icon-upload el-icon--right"></i></el-button>
@@ -1129,7 +1129,7 @@
             <el-row class="row-style">
               <el-col>
                 <el-form-item prop="filePath" label="资料附件:" label-width="140px" class="postInfo-container-item">
-                  <el-upload action="/api/upload" :limit="3" :on-success="changeresProduction" :on-exceed="handleExceed"
+                  <el-upload action="/api/upload" :limit="10" :on-success="changeresProduction" :on-exceed="handleExceed"
                     :on-preview="handleAttachmentPreview" :before-remove="beforeRemovePro" :file-list="fileList">
                     <el-button plain type="info" round style="width: 100%">上传附件<i
                         class="el-icon-upload el-icon--right"></i></el-button>
@@ -1268,7 +1268,7 @@
                 <el-col>
                   <el-form-item :rules="{ required: true, message: '请上传附件资料', trigger: 'changes' }" prop="filePath"
                     label="资料附件:" label-width="120px" class="postInfo-container-item">
-                    <el-upload action="/api/upload" :limit="3" :on-success="changeresProduction" :on-exceed="handleExceed"
+                    <el-upload action="/api/upload" :limit="10" :on-success="changeresProduction" :on-exceed="handleExceed"
                       :on-preview="handleAttachmentPreview" :before-remove="beforeRemovePro" :file-list="fileList">
                       <el-button plain type="info" round style="width: 100%">上传附件<i
                           class="el-icon-upload el-icon--right"></i></el-button>
@@ -1341,7 +1341,7 @@
                 <el-form>
                   <el-form-item :rules="{ required: true, message: '请上传附件资料', trigger: 'changes' }" prop="filePath"
                     label="资料附件:" label-width="120px" class="postInfo-container-item">
-                    <el-upload action="/api/upload" :limit="3" :on-success="changeresProduction" :on-exceed="handleExceed"
+                    <el-upload action="/api/upload" :limit="10" :on-success="changeresProduction" :on-exceed="handleExceed"
                       :on-preview="handleAttachmentPreview" :before-remove="beforeRemovePro" :file-list="fileList">
                       <el-button plain type="info" round style="width: 100%">上传附件<i
                           class="el-icon-upload el-icon--right"></i></el-button>
@@ -2431,7 +2431,7 @@ export default {
     },
     // 文件上传数量限制
     handleExceed() {
-      this.$message.warning(`当前限制选择 3个文件!`);
+      this.$message.warning(`当前限制选择10个文件!`);
     },
     handleAttachmentPreview(file) {
       // window.open(file.url)