fix(测试跟踪): 公共用例库复制和编辑根据权限启用禁用

--bug=1027020 --user=王旭 【测试跟踪】只读用户-公用用例库-查看用例-点击复制-进入新建用例页面 https://www.tapd.cn/55049933/s/1386084
This commit is contained in:
WangXu10 2023-06-26 11:43:45 +08:00 committed by 刘瑞斌
parent 32d44ca75b
commit 77bcb7fa7a

View File

@ -90,6 +90,7 @@
class="edit-public-row head-opt"
v-if="isPublicShow"
@click="editPublicCase"
:class="[!hasReadonlyPermission === true ? '' : 'div-readOnly']"
>
<div class="icon-row">
<img src="/assets/module/figma/icon_edit_outlined.svg" alt="" />
@ -100,6 +101,7 @@
class="copy-public-row head-opt"
v-if="isPublicShow"
@click="copyPublicCase"
:class="[hasCopyPermission === true ? '' : 'div-readOnly']"
>
<div class="icon-row">
<img src="/assets/module/figma/icon_copy_outlined.svg" alt="" />
@ -1766,7 +1768,9 @@ export default {
<style scoped lang="scss">
@import "@/business/style/index.scss";
.div-readOnly{
pointer-events: none;
}
.case-edit-wrap {
padding: 12px 24px 0px;
box-sizing: border-box;