feat: 批量下载任务

This commit is contained in:
rd
2025-07-21 15:10:26 +08:00
parent 4800d5fa99
commit e6798bf313
8 changed files with 103 additions and 20 deletions

View File

@ -151,6 +151,7 @@ import StatusBox from '../status-box';
import { PLATFORM_LIST, ENUM_PLATFORM } from '@/views/property-marketing/put-account/common_constants';
import { showExportNotification } from '@/utils/arcoD';
import { genRandomId } from '@/utils/tools';
import {
postPlacementAccounts,
getPlacementAccountsDetail,
@ -289,9 +290,9 @@ const handleBatchImport = async () => {
});
if (code === 200) {
const ID = 'IMPORT-PUT-ACCOUNT';
showExportNotification(`正在导入“${file.value.name}”,请稍后...`, ID);
emits('startQueryTaskStatus', data.id, ID);
const id = genRandomId();
showExportNotification(`正在导入“${file.value.name}”,请稍后...`, { id });
emit('startQueryTaskStatus', data.id, id);
onClose();
} else {
uploadStatus.value = UploadStatus.ERROR;