|
|
|
@ -261,22 +261,19 @@ function closeModal(event: MouseEvent) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
async function remove() {
|
|
|
|
|
const arr = listData.value.filter((item) => {
|
|
|
|
|
return item.checked
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
if (arr.length === 0) {
|
|
|
|
|
if ( !selectIds.value|| selectIds.value.length === 0) {
|
|
|
|
|
message.error('至少选中一个')
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const ids = arr.map(item => item.id).join(',')
|
|
|
|
|
const ids = selectIds.value.join(',')
|
|
|
|
|
const res = await removeFiles({ pictureid: ids })
|
|
|
|
|
if (res.code === 'OK') {
|
|
|
|
|
message.success('移除成功')
|
|
|
|
|
pagination.pageNo = 1
|
|
|
|
|
const list = await featchList()
|
|
|
|
|
listData.value = list
|
|
|
|
|
layout()
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|