fix(测试跟踪): 编辑用例关联创建缺陷缺少自定义字段

--bug=1023298 --user=宋昌昌 【测试跟踪】功能用例-编辑-创建缺陷-点击保存并新建-新的创建缺陷页面缺少严重程度、处理人、状态必填项 https://www.tapd.cn/55049933/s/1339720
This commit is contained in:
song-cc-rock 2023-02-21 15:33:50 +08:00 committed by jianxing
parent a9ce03edac
commit 6592c5dda4
7 changed files with 38 additions and 18 deletions

View File

@ -1,4 +1,4 @@
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M12.2686 2.67094L22.3373 9.07829C22.6461 9.27477 22.6461 9.72547 22.3373 9.92195L12.2686 16.3293C12.1049 16.4335 11.8955 16.4335 11.7318 16.3293L1.66308 9.92195C1.35433 9.72547 1.35433 9.27477 1.66308 9.07829L11.7318 2.67094C11.8955 2.56672 12.1049 2.56672 12.2686 2.67094ZM4.72546 9.50012L12.0002 14.1295L19.2749 9.50012L12.0002 4.87074L4.72546 9.50012Z" fill="#1F2329"/>
<path d="M2.59664 13.8862C2.36123 13.7419 2.05337 13.8157 1.90903 14.0511L1.38632 14.9036C1.24197 15.1391 1.3158 15.4469 1.55121 15.5912L10.7064 21.2047C11.3487 21.5986 12.1516 21.5986 12.794 21.2047L21.9491 15.5912C22.1846 15.4469 22.2584 15.1391 22.114 14.9036L21.5913 14.0511C21.447 13.8157 21.1391 13.7419 20.9037 13.8862L11.8809 19.4186C11.8007 19.4677 11.6997 19.4677 11.6195 19.4186L2.59664 13.8862Z" fill="#1F2329"/>
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M8.17909 1.77868L14.8916 6.05024C15.0974 6.18122 15.0974 6.4817 14.8916 6.61268L8.17909 10.8842C8.06991 10.9537 7.93037 10.9537 7.82118 10.8842L1.10872 6.61268C0.902888 6.4817 0.902888 6.18122 1.10872 6.05024L7.82118 1.77868C7.93037 1.70919 8.06991 1.70919 8.17909 1.77868ZM3.15031 6.33146L8.00014 9.41771L12.85 6.33146L8.00014 3.24521L3.15031 6.33146Z" fill="#646A73"/>
<path d="M1.73109 9.25553C1.57415 9.15931 1.36891 9.20852 1.27269 9.36547L0.924211 9.93381C0.827982 10.0907 0.877201 10.296 1.03414 10.3922L7.13758 14.1345C7.56582 14.3971 8.10108 14.3971 8.52933 14.1345L14.6328 10.3922C14.7897 10.296 14.8389 10.0907 14.7427 9.93381L14.3942 9.36547C14.298 9.20852 14.0928 9.15931 13.9358 9.25553L7.92057 12.9438C7.86712 12.9765 7.79979 12.9765 7.74634 12.9438L1.73109 9.25553Z" fill="#646A73"/>
</svg>

Before

Width:  |  Height:  |  Size: 910 B

After

Width:  |  Height:  |  Size: 916 B

View File

@ -1,3 +1,11 @@
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M8.00033 14.0013C11.314 14.0013 14.0003 11.315 14.0003 8.0013C14.0003 4.68759 11.314 2.0013 8.00033 2.0013C4.68662 2.0013 2.00033 4.68759 2.00033 8.0013C2.00033 11.315 4.68662 14.0013 8.00033 14.0013ZM8.00033 15.3346C3.95024 15.3346 0.666992 12.0514 0.666992 8.0013C0.666992 3.95121 3.95024 0.667969 8.00033 0.667969C12.0504 0.667969 15.3337 3.95121 15.3337 8.0013C15.3337 12.0514 12.0504 15.3346 8.00033 15.3346ZM7.22699 9.52127L10.7625 5.98573C10.8927 5.85556 11.1038 5.85556 11.2339 5.98573L11.7053 6.45714C11.8355 6.58731 11.8355 6.79837 11.7053 6.92854L7.4627 11.1712C7.33252 11.3014 7.12147 11.3014 6.99129 11.1712L4.55101 8.7309C4.42084 8.60073 4.42084 8.38967 4.55101 8.2595L5.02242 7.78809C5.15259 7.65792 5.36365 7.65792 5.49382 7.78809L7.22699 9.52127Z" fill="#34C724"/>
<g clip-path="url(#clip0_4943_48305)">
<path fill-rule="evenodd" clip-rule="evenodd" d="M0.666992 8.0013C0.666992 12.0518 3.9498 15.3346 8.00033 15.3346C12.0508 15.3346 15.3337 12.0518 15.3337 8.0013C15.3337 3.95078 12.0508 0.667969 8.00033 0.667969C3.9498 0.667969 0.666992 3.95078 0.666992 8.0013Z" fill="#34C724"/>
<path d="M11.5978 6.54792C11.7768 6.36893 11.7768 6.07873 11.5978 5.89974L11.2737 5.57565C11.0947 5.39666 10.8045 5.39666 10.6256 5.57565L6.98194 9.21889L5.62995 7.86732C5.45096 7.68832 5.16076 7.68832 4.98177 7.86732L4.65768 8.19141C4.47869 8.3704 4.47869 8.6606 4.65768 8.83959L6.60222 10.7841C6.72914 10.911 6.91197 10.948 7.07159 10.8952C7.18518 10.8925 7.29796 10.8478 7.38465 10.7611L11.5978 6.54792Z" fill="white"/>
</g>
<defs>
<clipPath id="clip0_4943_48305">
<rect width="16" height="16" fill="white"/>
</clipPath>
</defs>
</svg>

Before

Width:  |  Height:  |  Size: 896 B

After

Width:  |  Height:  |  Size: 983 B

View File

@ -24,7 +24,7 @@
</el-dropdown-menu>
</el-dropdown>
<i class="delimiter">|</i>
<el-button size="mini" icon="el-icon-close" @click="close" style="margin: 0 30px 0 20px"></el-button>
<el-button size="mini" icon="el-icon-close" @click="close" class="close-btn" style="margin: 0 24px 0 20px"></el-button>
</div>
</el-col>
</el-row>
@ -146,4 +146,8 @@ i.delimiter {
position: relative;
top: 2px;
}
.close-btn {
background-color: transparent!important;
}
</style>

View File

@ -8,10 +8,7 @@
<div class="back" @click="back" v-if="!isPublicShow">
<img src="/assets/module/figma/icon_arrow-left_outlined.svg" alt="" />
</div>
<div
@click.stop="openNewTab"
:class="editable ? 'case-name' : ['case-name-hover', 'case-name']"
>
<div :class="'case-name'">
{{ !editable ? form.name : $t('test_track.case.create_case') }}
</div>
<div class="case-edit" v-if="!editable">
@ -1742,7 +1739,8 @@ export default {
overflow: hidden;
/* 文本超出的部分打点显示 */
text-overflow: ellipsis;
padding-left: 0.5rem;
padding-right: 0.5rem;
}
.case-name-hover:hover {
cursor: pointer;
@ -1766,11 +1764,12 @@ export default {
color: #646a73;
align-items: center;
margin-left: px2rem(8);
padding: 0 0.5rem;
.version-icon {
width: 14.17px;
height: 12.6px;
margin-right: px2rem(4.95);
width: 20.17px;
height: 15.6px;
margin-right: px2rem(5);
img {
width: 100%;
@ -1781,11 +1780,13 @@ export default {
.version-title {
height: px2rem(22);
line-height: px2rem(22);
margin-top: px2rem(2);
}
.version-suffix {
height: px2rem(22);
line-height: px2rem(22);
margin-left: px2rem(5);
margin-top: px2rem(1);
}
}
}
@ -1858,6 +1859,7 @@ export default {
.label-row {
}
margin-right: px2rem(20.67);
padding: 0 0.5rem 0 0;
}
.next-public-row.head-opt {
@ -1869,6 +1871,7 @@ export default {
.label-row {
}
margin-right: px2rem(20.67);
padding: 0 0 0 0.5rem;
}
.follow-row.head-opt {
@ -1879,7 +1882,8 @@ export default {
.label-row {
}
margin-right: px2rem(20.67);
margin-right: px2rem(10);
padding: 0 0.5rem;
}
.edit-public-row.head-opt {
@ -1891,6 +1895,7 @@ export default {
.label-row {
}
margin-right: px2rem(20.67);
padding: 0 0.5rem;
}
.copy-public-row.head-opt {
@ -1902,6 +1907,7 @@ export default {
.label-row {
}
margin-right: px2rem(20.67);
padding: 0 0.5rem;
}
.add-public-row.head-opt {
@ -1912,7 +1918,8 @@ export default {
.label-row {
}
margin-right: px2rem(22.33);
margin-right: px2rem(11);
padding: 0 0.5rem;
}
.more-row.head-opt {
@ -1924,6 +1931,7 @@ export default {
.label-row {
}
margin-right: px2rem(24);
padding: 0 0.5rem;
}
}
}

View File

@ -314,13 +314,11 @@ export default {
this.form = {
title: "",
description: "",
creator: null,
creator: getCurrentUserId(),
remark: null,
tapdUsers: [],
platformStatus: null,
};
this.customFieldForm = null;
this.issueTemplate = {};
if (this.$refs.testCaseIssueList) {
this.$refs.testCaseIssueList.tableData = [];
}

View File

@ -138,6 +138,7 @@ export default {
margin-left: 12.58px;
align-items: center;
height: 100%;
cursor: pointer;
.dep-icon {
margin-right: 4.58px;
width: 14px;

View File

@ -43,6 +43,7 @@ export default {
.el-dropdown-link {
cursor: pointer;
color: #646a73;
padding: 0.2rem 0.5rem;
}
.el-dropdown-link:hover {
cursor: pointer;