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"
|
v-show="versionEnable"
|
||||||
ref="versionHistory"
|
ref="versionHistory"
|
||||||
:current-id="currentTestCaseInfo.id"
|
:current-id="currentTestCaseInfo.id"
|
||||||
:is-read="versionReadOnly"
|
|
||||||
:is-public-show="isPublicShow"
|
:is-public-show="isPublicShow"
|
||||||
:current-version-id="form.versionId"
|
:current-version-id="form.versionId"
|
||||||
@confirmOtherInfo="confirmOtherInfo"
|
@confirmOtherInfo="confirmOtherInfo"
|
||||||
|
@ -1554,7 +1553,7 @@ export default {
|
||||||
checkoutByVersionId(versionId) {
|
checkoutByVersionId(versionId) {
|
||||||
getTestCaseByVersionId(this.form.refId, versionId)
|
getTestCaseByVersionId(this.form.refId, versionId)
|
||||||
.then((response) => {
|
.then((response) => {
|
||||||
this.routerToEdit(response.data.id);
|
this.freshTestCase(response.data.id);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
checkout(testCase) {
|
checkout(testCase) {
|
||||||
|
|
|
@ -14,9 +14,8 @@
|
||||||
width="392"
|
width="392"
|
||||||
trigger="click"
|
trigger="click"
|
||||||
popper-class="version-popover"
|
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-row">
|
||||||
<div class="label">{{ $t("project.version.name") }}</div>
|
<div class="label">{{ $t("project.version.name") }}</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -47,7 +46,7 @@
|
||||||
<div
|
<div
|
||||||
class="updated opt-row"
|
class="updated opt-row"
|
||||||
@click.stop="setLatest(item)"
|
@click.stop="setLatest(item)"
|
||||||
v-if="showSetNew(item)"
|
v-if="caseVersionMap.has(item.id) && showSetNew(item)"
|
||||||
>
|
>
|
||||||
{{ $t("case.set_new") }}
|
{{ $t("case.set_new") }}
|
||||||
</div>
|
</div>
|
||||||
|
@ -82,7 +81,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- origin -->
|
<!-- origin -->
|
||||||
<span slot="reference">
|
<span slot="reference" v-loading="loading">
|
||||||
<slot
|
<slot
|
||||||
name="versionLabel"
|
name="versionLabel"
|
||||||
v-if="versionEnable && currentVersion.id"
|
v-if="versionEnable && currentVersion.id"
|
||||||
|
@ -176,10 +175,6 @@ export default {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: false,
|
default: false,
|
||||||
},
|
},
|
||||||
isRead: {
|
|
||||||
type: Boolean,
|
|
||||||
default: false,
|
|
||||||
},
|
|
||||||
currentProjectId: {
|
currentProjectId: {
|
||||||
type: String,
|
type: String,
|
||||||
default() {
|
default() {
|
||||||
|
@ -328,7 +323,6 @@ export default {
|
||||||
let isNotDataLatestVersionCase = item.id === this.dataLatestId;
|
let isNotDataLatestVersionCase = item.id === this.dataLatestId;
|
||||||
return hasVersionCase // 有当前版本的用例
|
return hasVersionCase // 有当前版本的用例
|
||||||
&& latestVersionCondition // 有最新版本的用例,则非最新版本的其他版本不显示置新
|
&& latestVersionCondition // 有最新版本的用例,则非最新版本的其他版本不显示置新
|
||||||
&& !this.isRead // 不是只读
|
|
||||||
&& this.hasEditPermission
|
&& this.hasEditPermission
|
||||||
&& !isNotDataLatestVersionCase // 已经是最新版本,不显示置新
|
&& !isNotDataLatestVersionCase // 已经是最新版本,不显示置新
|
||||||
},
|
},
|
||||||
|
|
|
@ -109,7 +109,7 @@ export default {
|
||||||
props: {
|
props: {
|
||||||
title: String,
|
title: String,
|
||||||
size: {
|
size: {
|
||||||
type: Number,
|
type: [Number, String],
|
||||||
default: 1100,
|
default: 1100,
|
||||||
},
|
},
|
||||||
enablePagination: {
|
enablePagination: {
|
||||||
|
|
Loading…
Reference in New Issue