fix(测试跟踪): 功能用例编辑页,置新按钮不显示

--bug=1028150 --user=陈建星 【测试跟踪】功能用例没有设为最新版按钮了 https://www.tapd.cn/55049933/s/1397770
This commit is contained in:
jianxing 2023-07-26 14:23:13 +08:00 committed by fit2-zhao
parent 52b94aa95b
commit a066000070
3 changed files with 5 additions and 12 deletions

View File

@ -29,7 +29,6 @@
v-show="versionEnable"
ref="versionHistory"
:current-id="currentTestCaseInfo.id"
:is-read="versionReadOnly"
:is-public-show="isPublicShow"
:current-version-id="form.versionId"
@confirmOtherInfo="confirmOtherInfo"
@ -1554,7 +1553,7 @@ export default {
checkoutByVersionId(versionId) {
getTestCaseByVersionId(this.form.refId, versionId)
.then((response) => {
this.routerToEdit(response.data.id);
this.freshTestCase(response.data.id);
});
},
checkout(testCase) {

View File

@ -14,9 +14,8 @@
width="392"
trigger="click"
popper-class="version-popover"
v-loading="loading"
>
<div class="version-history-wrap">
<div class="version-history-wrap" v-loading="loading">
<div class="label-row">
<div class="label">{{ $t("project.version.name") }}</div>
</div>
@ -47,7 +46,7 @@
<div
class="updated opt-row"
@click.stop="setLatest(item)"
v-if="showSetNew(item)"
v-if="caseVersionMap.has(item.id) && showSetNew(item)"
>
{{ $t("case.set_new") }}
</div>
@ -82,7 +81,7 @@
</div>
<!-- origin -->
<span slot="reference">
<span slot="reference" v-loading="loading">
<slot
name="versionLabel"
v-if="versionEnable && currentVersion.id"
@ -176,10 +175,6 @@ export default {
type: Boolean,
default: false,
},
isRead: {
type: Boolean,
default: false,
},
currentProjectId: {
type: String,
default() {
@ -328,7 +323,6 @@ export default {
let isNotDataLatestVersionCase = item.id === this.dataLatestId;
return hasVersionCase //
&& latestVersionCondition //
&& !this.isRead //
&& this.hasEditPermission
&& !isNotDataLatestVersionCase //
},

View File

@ -109,7 +109,7 @@ export default {
props: {
title: String,
size: {
type: Number,
type: [Number, String],
default: 1100,
},
enablePagination: {