Skip to content

Commit

Permalink
fix: 上传压缩文件后进度达到100%后没有解压提示
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuikill committed Sep 27, 2024
1 parent ca17bab commit 99d281c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,17 @@
</div>
<TextFill class="file-icon" />
<div class="file-content">
<div v-overflow-title type="tips" class="name">
<div>{{ item.file.name }}</div>
<div class="name">
<div v-overflow-title>{{ item.file.name }}</div>
</div>
<div v-if="item.status !== 'success' && item.status !== 'fail'" class="progress">
<bk-progress
:percent="item.progress"
:theme="item.status === 'fail' ? 'danger' : 'primary'"
size="small" />
</div>
<div v-else-if="item.status === 'fail'" v-overflow-title type="tips" class="error-message">
<div>{{ item.errorMessage }}</div>
<div v-else-if="item.status === 'fail'" class="error-message">
<div v-overflow-title>{{ item.errorMessage }}</div>
</div>
</div>
<Del class="del-icon" @click="handleDeleteFile(item.file.name)" />
Expand Down Expand Up @@ -356,6 +356,7 @@
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
cursor: pointer;
}
:deep(.bk-progress) {
position: absolute;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,15 @@
</div>
</div>
<bk-loading
v-if="importType !== 'configTemplate' && allConfigList.length + allTemplateConfigList.length > 0"
v-if="importType !== 'configTemplate'"
:loading="decompressing || fileProcessing || tableLoading"
:title="loadingText"
class="config-table-loading"
mode="spin"
theme="primary"
size="small"
:opacity="0.7">
<div class="content">
<div v-if="allConfigList.length + allTemplateConfigList.length > 0" class="content">
<bk-alert
v-if="isExceedMaxFileCount"
style="margin-top: 4px"
Expand Down Expand Up @@ -467,6 +467,7 @@
const handleDeleteFile = (fileName: string) => {
existConfigList.value = existConfigList.value.filter((item) => item.file_name !== fileName);
nonExistConfigList.value = nonExistConfigList.value.filter((item) => item.file_name !== fileName);
allConfigList.value = [...existConfigList.value, ...nonExistConfigList.value];
};
const handleClearTable = () => {
Expand Down

0 comments on commit 99d281c

Please sign in to comment.