style(缺陷管理): 文件上传成功之前不展示转存和删除的操作按钮

--bug=1036931 --user=宋天阳 【缺陷管理】缺陷详情-添加附件-上传中状态-应该只显示删除按钮 https://www.tapd.cn/55049933/s/1472234
This commit is contained in:
song-tianyang 2024-03-10 12:55:16 +08:00 committed by 刘瑞斌
parent c1398046b7
commit de60f207be
2 changed files with 11 additions and 5 deletions

View File

@ -98,7 +98,7 @@
{{ t('ms.upload.reUpload') }} {{ t('ms.upload.reUpload') }}
</MsButton> </MsButton>
<MsButton <MsButton
v-if="props.showDelete" v-if="props.showDelete && item.status !== 'uploading'"
type="button" type="button"
:status="item.deleteContent ? 'primary' : 'danger'" :status="item.deleteContent ? 'primary' : 'danger'"
class="!mr-[4px]" class="!mr-[4px]"
@ -224,14 +224,14 @@
}); });
function getUploadDesc(item: MsFileItem) { function getUploadDesc(item: MsFileItem) {
if (item.local !== undefined ) { if (item.local !== undefined) {
return item.local ? t('ms.upload.uploadAt') : t('ms.upload.associatedAt'); return item.local ? t('ms.upload.uploadAt') : t('ms.upload.associatedAt');
} }
return t('ms.upload.uploadAt'); return t('ms.upload.uploadAt');
} }
function showUploadSuccess(item: MsFileItem) { function showUploadSuccess(item: MsFileItem) {
if (item.local !== undefined ) { if (item.local !== undefined) {
return item.local ; return item.local;
} }
return true; return true;
} }

View File

@ -53,7 +53,13 @@
> >
{{ t('ms.upload.preview') }} {{ t('ms.upload.preview') }}
</MsButton> </MsButton>
<MsButton type="button" status="primary" class="!mr-[4px]" @click="transferVisible = true"> <MsButton
v-if="item.status === 'done'"
type="button"
status="primary"
class="!mr-[4px]"
@click="transferVisible = true"
>
{{ t('caseManagement.featureCase.storage') }} {{ t('caseManagement.featureCase.storage') }}
</MsButton> </MsButton>
<TransferModal <TransferModal