shihang před 6 roky
rodič
revize
1c7065985a

+ 5 - 6
src/dashoo.cn/frontend_web/src/components/oilsupplier/subfilelist.vue

@@ -3,7 +3,8 @@
     <el-card class="box-card" style="margin-top: 10px;">
       <div slot="header" class="clearfix">
         <span style="font-weight: bold">准入范围</span>
-        <el-button type="primary" size="mini" style="float: right;margin-right: 3px" @click="nextStep()" v-if="canadd">提交审批
+        <el-button type="primary" size="mini" style="float: right;margin-right: 3px" @click="nextStep()" v-if="canadd">
+          提交审批
         </el-button>
       </div>
       <el-table :data="businessList" border bordertooltip-effect="dark" style="height: calc(100vh - 500px);">
@@ -68,9 +69,8 @@
           </el-col>
           <el-col :span="12">
             <el-form-item label="资质文件">
-              <el-upload style="margin-top: 10px;" multiple action="" :limit="1" ref="refuploadattach"
-                :http-request="uploadrequest" class="attach-uploader" :show-file-list="true"
-                :before-upload="beforeAvatarUpload">
+              <el-upload 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>
               </el-upload>
             </el-form-item>
@@ -192,7 +192,6 @@
           .then(res => {
             _this.subfileList = res.data.items
             _this.currentItemCount = res.data.currentItemCount
-
           })
           .catch(err => {
             console.error(err)
@@ -306,7 +305,6 @@
           .then(() => {
             _this.$axios.delete('supplierfile/subfiledelete/' + val.Id, {})
               .then(function (response) {
-                // response
                 if (response.data.code === 0) {
                   _this.$message({
                     type: "success",
@@ -343,6 +341,7 @@
         }
       },
       showDialog() {
+        //this.doclist = []
         this.Title = '新增文件'
         this.SubfileForm.Id = ''
         this.SubfileForm.SupplierId = this.SupplierId