fix 修改filelist封装

This commit is contained in:
zeyu xu
2024-03-21 21:51:09 +08:00
parent c7c1911eb1
commit d6de64853d
2 changed files with 4 additions and 4 deletions

View File

@@ -142,7 +142,7 @@
Multiple
Accept="*/*"
BeforeUpload="iKMService.BeforeUpload"
OnSingleCompleted="OnSingleCompleted">
OnSingleCompleted="iKMService.OnSingleCompleted">
<p class="ant-upload-drag-icon">
<Icon Type="inbox" />
</p>

View File

@@ -180,20 +180,20 @@ namespace AntSK.Pages.KmsPage
{
try
{
foreach (var item in fileList)
foreach (var item in iKMService.FileList)
{
var result = await _httpService.PostAsync(NavigationManager.BaseUri + "api/KMS/ImportKMSTask", new ImportKMSTaskDTO()
{
ImportType = ImportType.File,
KmsId = KmsId,
FilePath = item.FilePath,
FilePath = item.Url,
FileName = item.FileName
});
}
_data = await _kmsDetails_Repositories.GetListAsync(p => p.KmsId == KmsId);
//上传文档
_fileVisible = false;
fileList.Clear();
iKMService.FileList.Clear();
_ = _message.Info("加入队列,进入后台处理中!", 2);
}
catch (System.Exception ex)