|
|
|
@ -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()
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -311,10 +308,10 @@ function onCheckChange(val: any, item: any) {
|
|
|
|
|
v-model:show="show" :mask-closable="false" style="position: relative;" transform-origin="center"
|
|
|
|
|
@after-enter="afterEnter" @after-leave="afterLeave"
|
|
|
|
|
>
|
|
|
|
|
<n-card
|
|
|
|
|
:style="cardStyle" class="card card-1" style="position: fixed;top:64px" :bordered="false" size="huge" role="dialog"
|
|
|
|
|
aria-modal="true"
|
|
|
|
|
>
|
|
|
|
|
<n-card
|
|
|
|
|
:style="cardStyle" class="card card-1" style="position: fixed;top:64px" :bordered="false" size="huge" role="dialog"
|
|
|
|
|
aria-modal="true"
|
|
|
|
|
>
|
|
|
|
|
<div class="wrapper">
|
|
|
|
|
<div class="wrapper-m32">
|
|
|
|
|
<SvgIcon name="recycle" size="16" />
|
|
|
|
|