2239205b by renchao@pashanhoo.com

1

1 parent 32f61336
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-07-04 16:07:37
* @LastEditTime: 2023-07-28 14:20:07
-->
<template>
<div class="rlPopup">
......@@ -77,7 +77,7 @@
scale: 1,
degree: 0
},
maxLength: 0,
maxFileLength: 0,
// 缩略图
thumbnailImages: [],
showViewer: false,
......@@ -252,17 +252,16 @@
* @param {*} files
* @author: renchao
*/
async handleChange (file, files) {
// 清空 fileList 数组
debugger
let length = files.length;
this.maxLength = Math.max(length, this.maxLength)
this.$refs.upload.clearFiles();
async handleChange (file, fileList) {
let length = fileList.length;
this.maxFileLength = Math.max(length, this.maxFileLength)
setTimeout(() => {
if (length !== this.maxLength) return
var formData = new FormData();
files.forEach(file => {
formData.append('file', file.raw)
if (this.maxFileLength !== length) {
return
}
fileList.forEach(item => {
formData.append('file', item.raw)
})
formData.append("bsmSj", this.previewImg.bsmSj);
formData.append("bsmSlsq", this.previewImg.bsmSlsq);
......