From f0a6ed39258cd445278f9e726e5b839605e02d57 Mon Sep 17 00:00:00 2001 From: yz3456 <2753272399@qq.com> Date: 星期六, 18 五月 2024 17:00:59 +0800 Subject: [PATCH] 修改了安卓端上传图片无法显示问题 --- ruoyi-ui/src/views/pet/index.vue | 23 +++++++++++++++-------- 1 files changed, 15 insertions(+), 8 deletions(-) diff --git a/ruoyi-ui/src/views/pet/index.vue b/ruoyi-ui/src/views/pet/index.vue index 3b4ff76..b622638 100644 --- a/ruoyi-ui/src/views/pet/index.vue +++ b/ruoyi-ui/src/views/pet/index.vue @@ -380,6 +380,7 @@ fileList1:[ ], fileList2:[ ], fileListOther:[ ], + uploadFileList1: [], dsb:true, btn:false, formDat: { @@ -614,11 +615,19 @@ } }, handleRemoveFile(file) { + // for(let i = 0; i < this.fileList2.length; i++) + // { + // if(this.fileList2[i].url==file.url) + // this.$delete(this.fileList2,i); + // } for(let i = 0; i < this.fileList2.length; i++) + { + if(this.fileList2[i].url==file.url) { - if(this.fileList2[i].url==file.url) - this.$delete(this.fileList2,i); - } + this.$delete(this.fileList2,i); + this.$delete(this.uploadFileList1,i); + } + } }, // 鍙栨秷鎸夐挳 cancel() { @@ -651,7 +660,7 @@ deptCheckStrictly: true, remark: undefined }; - this.resetForm("form"); + this.resetForm("elForm"); }, /** 鎼滅储鎸夐挳鎿嶄綔 */ handleQuery() { @@ -730,11 +739,9 @@ { this.handleRemove(this.fileList1[0]); } - for(let i = 0; i < this.fileListOther.length; i++){ - this.handleRemoveFile(this.fileListOther[0]); + for(let i = 0; i < this.fileList2.length; i++){ + this.handleRemoveFile(this.fileList2[0]); } - // this.handleRemove(this.fileList[0]); - // this.handleRemoveFile(this.fileListOther[0]); this.getList(); }); } -- Gitblit v1.9.1