fix(测试跟踪): 功能用例编辑页,置新按钮不显示
--bug=1028150 --user=陈建星 【测试跟踪】功能用例没有设为最新版按钮了 https://www.tapd.cn/55049933/s/1397770
This commit is contained in:
parent
52b94aa95b
commit
a066000070
|
@ -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) {
|
||||
|
|
|
@ -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 // 已经是最新版本,不显示置新
|
||||
},
|
||||
|
|
|
@ -109,7 +109,7 @@ export default {
|
|||
props: {
|
||||
title: String,
|
||||
size: {
|
||||
type: Number,
|
||||
type: [Number, String],
|
||||
default: 1100,
|
||||
},
|
||||
enablePagination: {
|
||||
|
|
Loading…
Reference in New Issue