Răsfoiți Sursa

资质上传

shihang 6 ani în urmă
părinte
comite
0d485cfae4

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

@@ -188,7 +188,7 @@
       },
       makesure() {
         if (this.Title == '新增文件') {
-          if (this.$refs.refuploadattach.uploadFiles && this.$refs.refuploadattach.uploadFiles.length > 0) {
+          if (this.$refs.refuploadattach.uploadFiles && this.$refs.refuploadattach.uploadFiles.length > 0) {           
             // 上传附件是否完成判断
             if (!this.attachissuccess()) {
               this.$message.error('有附件未成功上传!不能保存数据')
@@ -229,7 +229,7 @@
               })
               this.visible = false
               this.initData()
-              this.$refs.refuploadattach = ''
+              this.$refs.refuploadattach.uploadFiles = []
             } else {
               _this.$message({
                 type: 'warning',
@@ -254,7 +254,7 @@
               })
               this.visible = false
               this.initData()
-              this.$refs.refuploadattach = ''
+              this.$refs.refuploadattach.uploadFiles = []
             } else {
               _this.$message({
                 type: 'warning',
@@ -316,7 +316,7 @@
         this.visible = true
       },
       openDialog(val) {
-        this.Title = '编辑文件'       
+        this.Title = '编辑文件'
         this.SubfileForm.Id = val.Id
         this.SubfileForm.SupplierId = val.SupplierId
         this.SubfileForm.SupplierTypeCode = val.SupplierTypeCode
@@ -333,11 +333,8 @@
         this.SubfileForm.FileName = val.FileName
         this.SubfileForm.EffectDate = new Date(val.EffectDate)
         this.SubfileForm.FileUrl = val.FileUrl
+        this.getwendanginfo(val.FileUrl)
         this.SubfileForm.OtherRemark = val.OtherRemark
-        this.doclist = []
-        if (val.FileUrl != '') {
-          this.getwendanginfo(val.FileUrl)
-        }
         this.SubfileForm.Remark = val.Remark
         this.SubfileForm.IsDelete = val.IsDelete
         this.visible = true
@@ -352,6 +349,7 @@
           url: exArr[0]
         }
         _this.doclist.push(params)
+        console.log("doclistdoclistdoclistdoclist",_this.doclist)
       },
 
       beforeAvatarUpload(file) {