|
@@ -668,7 +668,7 @@ const closeQual = ()=>{
|
|
|
}
|
|
|
const finishModal = (rows)=>{
|
|
|
console.log(rows, 'rows')
|
|
|
-
|
|
|
+ console.log( baseForm.value.fileList, ' baseForm.value.fileList')
|
|
|
// 使用reduce方法进行去重
|
|
|
const uniqueArray = rows.reduce((acc, current) => {
|
|
|
// 检查当前对象的某个字段是否已存在于累积数组中
|
|
@@ -697,18 +697,13 @@ const finishModal = (rows)=>{
|
|
|
|
|
|
|
|
|
})
|
|
|
+ console.log( baseForm.value.fileList, 'baseForm.value.fileList')
|
|
|
+ console.log( fileList, 'fileList')
|
|
|
fileList.forEach((ele)=>{
|
|
|
baseForm.value.fileList.push(ele)
|
|
|
})
|
|
|
|
|
|
-if (rows.length < baseForm.value.fileList.length) {
|
|
|
- baseForm.value.fileList.forEach((ele)=>{
|
|
|
- const isDel = isArrIndex( rows, 'selectId', ele.selectId)
|
|
|
- if (!isDel && ele.selectId !== null) {
|
|
|
- baseForm.value.fileList = arrDelKey( baseForm.value.fileList, 'selectId', ele.selectId)
|
|
|
- }
|
|
|
- })
|
|
|
-}
|
|
|
+
|
|
|
|
|
|
selectId.value = arrToKey( baseForm.value.fileList, 'selectId', ',')
|
|
|
|