mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-12-04 13:09:28 +08:00
style(缺陷管理): 文件上传成功之前不展示转存和删除的操作按钮
--bug=1036931 --user=宋天阳 【缺陷管理】缺陷详情-添加附件-上传中状态-应该只显示删除按钮 https://www.tapd.cn/55049933/s/1472234
This commit is contained in:
parent
c1398046b7
commit
de60f207be
@ -98,7 +98,7 @@
|
||||
{{ t('ms.upload.reUpload') }}
|
||||
</MsButton>
|
||||
<MsButton
|
||||
v-if="props.showDelete"
|
||||
v-if="props.showDelete && item.status !== 'uploading'"
|
||||
type="button"
|
||||
:status="item.deleteContent ? 'primary' : 'danger'"
|
||||
class="!mr-[4px]"
|
||||
@ -224,14 +224,14 @@
|
||||
});
|
||||
|
||||
function getUploadDesc(item: MsFileItem) {
|
||||
if (item.local !== undefined ) {
|
||||
if (item.local !== undefined) {
|
||||
return item.local ? t('ms.upload.uploadAt') : t('ms.upload.associatedAt');
|
||||
}
|
||||
return t('ms.upload.uploadAt');
|
||||
}
|
||||
function showUploadSuccess(item: MsFileItem) {
|
||||
if (item.local !== undefined ) {
|
||||
return item.local ;
|
||||
if (item.local !== undefined) {
|
||||
return item.local;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
@ -53,7 +53,13 @@
|
||||
>
|
||||
{{ t('ms.upload.preview') }}
|
||||
</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') }}
|
||||
</MsButton>
|
||||
<TransferModal
|
||||
|
Loading…
Reference in New Issue
Block a user