From 3f35c2f5d5eea9c1f0212b5fafa273adb4de0a82 Mon Sep 17 00:00:00 2001 From: feige <791364011@qq.com> Date: 星期五, 29 三月 2024 23:16:19 +0800 Subject: [PATCH] Merge branch 'master' of http://47.93.189.255:8099/r/zhangshi_app_web --- ruoyi-ui/src/views/self/show.vue | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 42 insertions(+), 0 deletions(-) diff --git a/ruoyi-ui/src/views/self/show.vue b/ruoyi-ui/src/views/self/show.vue index 421434d..2d542b3 100644 --- a/ruoyi-ui/src/views/self/show.vue +++ b/ruoyi-ui/src/views/self/show.vue @@ -292,6 +292,9 @@ multiple :http-request="requestUploadm" :file-list="fileList" + :on-change="handleChange1" + :auto-upload="false" + ref="upload" > <i slot="default" class="el-icon-plus"></i> <div slot="file" slot-scope="{ file }"> @@ -870,6 +873,8 @@ data() { return { + uploadFileList: [], + uploadFileList1: [], // 閬僵灞� disabled: false, @@ -955,6 +960,7 @@ fot:['.bmp','.jpg','.jpeg','.png','.tif','.gif','.pcx','.tga','.exif','.fpx', '.svg','.psd','.cdr','.pcd','.dxf','.ufo','.eps','.ai','.aw','.WMF','.webp','.apng'], + fileList1:[], fileList:[], fileListOther:[], dsb:true, @@ -1159,6 +1165,42 @@ }, methods: { + handleRemoveFile(file) { + for(let i = 0; i < this.fileListOther.length; i++) + { + if(this.fileListOther[i].url==file.url) + { + this.$delete(this.fileListOther,i); + this.$delete(this.uploadFileList1,i); + } + } + }, + handleRemove(file) { + for(let i = 0; i < this.fileList.length; i++) + { + if(this.fileList[i].url==file.url) + { + this.$delete(this.fileList,i); + this.$delete(this.uploadFileList,i); + } + } + }, + handleChange1(file, fileList1) { + //瀹氫箟涓�涓叏灞�鏁扮粍uploadFileList鏉ュ仛瀛樺偍 + + // this.uploadFileList.push(file.raw); + console.log("=========5555=========") + console.log(file) + // console.log(this.uploadFileList) + // this.fileList = fileList + //alert(file) + this.uploadFileList.push(file.raw); + this.fileList.push({name:file.name,url:file.url}) + //alert(fileList1.length) + }, + + + // 鍙栨秷鎸夐挳 cancelData() { // alert(23) -- Gitblit v1.9.1