fix(用例管理): 修复用例管理页面样式以及权限显示问题

--bug=1037639 --user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001037639
--bug=1037630 --user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001037630
--bug=1036023 --user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001036023
This commit is contained in:
guoyuqi 2024-03-25 15:13:00 +08:00 committed by Craftsman
parent 279e1673e4
commit 78ee0c9cda
3 changed files with 22 additions and 3 deletions

View File

@ -6,6 +6,7 @@
:width="480"
unmount-on-close
:footer="false"
class="tab-setting-drawer"
>
<div class="header mb-1 flex h-[22px] items-center justify-between">
<div class="flex items-center text-[var(--color-text-4)]"
@ -216,3 +217,9 @@
@apply flex items-center justify-between p-3;
}
</style>
<style>
.tab-setting-drawer .ms-drawer-body-scrollbar {
min-width: auto !important;
}
</style>

View File

@ -133,7 +133,7 @@
</div>
</template>
</ms-base-table>
<deleteReviewModal v-model:visible="dialogVisible" :record="activeRecord" @success="loadList" />
<deleteReviewModal v-model:visible="dialogVisible" :record="activeRecord" @success="removeReviewModal" />
<a-modal
v-model:visible="moveModalVisible"
title-align="start"
@ -664,6 +664,12 @@
selectedModuleKeys.value = [];
}
function removeReviewModal() {
loadList();
resetSelector();
emit('init', { ...tableQueryParams.value });
}
/**
* 处理文件夹树节点选中事件
*/

View File

@ -49,7 +49,13 @@
<MsIcon type="icon-icon_copy_outlined" class="mr-[8px]" />
{{ t('common.copy') }}
</MsButton>
<MsButton v-permission="['CASE_REVIEW:READ+UPDATE']" type="button" status="default" :loading="followLoading" @click="toggleFollowReview">
<MsButton
v-permission="['CASE_REVIEW:READ+UPDATE']"
type="button"
status="default"
:loading="followLoading"
@click="toggleFollowReview"
>
<MsIcon
:type="reviewDetail.followFlag ? 'icon-icon_collect_filled' : 'icon-icon_collection_outlined'"
:class="`mr-[8px] ${reviewDetail.followFlag ? 'text-[rgb(var(--warning-6))]' : ''}`"
@ -57,7 +63,7 @@
{{ t(reviewDetail.followFlag ? 'common.forked' : 'common.fork') }}
</MsButton>
<MsTableMoreAction :list="moreAction" @select="handleMoreSelect">
<MsButton type="button" status="default">
<MsButton v-permission="['FUNCTIONAL_CASE:READ+ADD', 'CASE_REVIEW:READ+DELETE']" type="button" status="default">
<MsIcon type="icon-icon_more_outlined" class="mr-[8px]" />
{{ t('common.more') }}
</MsButton>