|
@@ -451,19 +451,16 @@ const downloadClick = async () => {
|
|
|
|
|
|
//删除文件
|
|
|
const delLoading = ref(false)
|
|
|
-const delClick = async () => {
|
|
|
+const delClick = () => {
|
|
|
const rows = tableCheckedKeys.value
|
|
|
if (rows.length > 0) {
|
|
|
const ids = arrToId(rows)
|
|
|
- delMessageV2(async (action, instance, done) => {
|
|
|
- if (action === 'confirm') {
|
|
|
- instance.confirmButtonLoading = true
|
|
|
- removeImageclassifyFile(ids)
|
|
|
- instance.confirmButtonLoading = false
|
|
|
- done()
|
|
|
- } else {
|
|
|
- done()
|
|
|
- }
|
|
|
+ HcDelMsg({}, async (instance, resolve) => {
|
|
|
+ instance.confirmButtonLoading = true
|
|
|
+ instance.confirmButtonText = '删除中...'
|
|
|
+ await removeImageclassifyFile(ids)
|
|
|
+ resolve() //关闭弹窗的回调
|
|
|
+ instance.confirmButtonLoading = false
|
|
|
})
|
|
|
} else {
|
|
|
window.$message?.warning('请先勾选需要删除的资料文件')
|