fix(接口测试): 替换CASE详情分享icon&删除刷新快捷分享列表

This commit is contained in:
xinxin.wu 2024-10-22 16:32:28 +08:00 committed by Craftsman
parent dead5c92c2
commit 1303986242
4 changed files with 16 additions and 10 deletions

View File

@ -260,7 +260,12 @@
@close="cancelHandler"
@load-list="loadShareList"
/>
<ShareListDrawer ref="shareListRef" v-model:visible="showShareListDrawer" @edit-or-create="editHandler" />
<ShareListDrawer
ref="shareListRef"
v-model:visible="showShareListDrawer"
@edit-or-create="editHandler"
@load-list="shareButtonRef?.initShareList()"
/>
</template>
<script setup lang="ts">

View File

@ -26,7 +26,6 @@
@click="toggleFollowReview"
/>
</a-tooltip>
<!-- 分享导出 TODO 联调 -->
<a-tooltip v-if="docShareId && shareDetailInfo?.allowExport" :content="t('common.export')">
<MsIcon
type="icon-icon_top-align_outlined"

View File

@ -93,6 +93,7 @@
const emit = defineEmits<{
(e: 'editOrCreate', record?: ShareDetail): void;
(e: 'loadList'): void;
}>();
const innerVisible = defineModel<boolean>('visible', {
@ -224,6 +225,7 @@
if (record.id) {
await deleteShare(record.id);
Message.success(t('caseManagement.featureCase.deleteSuccess'));
emit('loadList');
searchList();
}
} catch (error) {

View File

@ -6,6 +6,14 @@
<caseLevel :case-level="caseDetail.priority as CaseLevel" />
</template>
<template v-if="!props.isDrawer" #titleAppend>
<a-tooltip :content="t('report.detail.api.copyLink')">
<MsIcon
type="icon-icon_unlink"
class="cursor-pointer text-[var(--color-text-4)] hover:bg-[var(--color-bg-3)]"
:size="16"
@click="share"
/>
</a-tooltip>
<a-tooltip :content="t(caseDetail.follow ? 'common.forked' : 'common.notForked')">
<MsIcon
v-permission="['PROJECT_API_DEFINITION_CASE:READ+UPDATE']"
@ -21,14 +29,6 @@
@click="follow"
/>
</a-tooltip>
<a-tooltip :content="t('report.detail.api.copyLink')">
<MsIcon
type="icon-icon_share1"
class="cursor-pointer text-[var(--color-text-4)] hover:bg-[var(--color-bg-3)]"
:size="16"
@click="share"
/>
</a-tooltip>
</template>
<template #titleRight>
<div class="flex gap-[8px]">