mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-12-04 21:19:52 +08:00
fix(接口测试): 替换CASE详情分享icon&删除刷新快捷分享列表
This commit is contained in:
parent
dead5c92c2
commit
1303986242
@ -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">
|
||||
|
@ -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"
|
||||
|
@ -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) {
|
||||
|
@ -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]">
|
||||
|
Loading…
Reference in New Issue
Block a user