fix(测试跟踪): 创建用例时用例名称不显示问题
This commit is contained in:
parent
e565020031
commit
cbe63d6828
|
@ -4,13 +4,13 @@
|
||||||
<div class="case-edit-box">
|
<div class="case-edit-box">
|
||||||
<!-- 创建 or 编辑用例 -->
|
<!-- 创建 or 编辑用例 -->
|
||||||
<div class="edit-header-container">
|
<div class="edit-header-container">
|
||||||
<div class="header-content-row">
|
<div class="header-content-row" :style="!isPublicShow ? 'width: 80%' : 'max-width: 65%'">
|
||||||
|
|
||||||
<!-- 用例名称展示与编辑 -->
|
<!-- 用例名称展示与编辑 -->
|
||||||
<test-case-edit-name-view
|
<test-case-edit-name-view
|
||||||
:is-add="isAdd"
|
:is-add="isAdd"
|
||||||
:editable-state="editableState"
|
:editable-state="editableState"
|
||||||
:is-name-edit.sync="isNameEdit"
|
:is-name-edit.sync="isNameEdit"
|
||||||
|
:is-public-show="isPublicShow"
|
||||||
:form="form"
|
:form="form"
|
||||||
@save="saveCaseWithoutRefresh"
|
@save="saveCaseWithoutRefresh"
|
||||||
/>
|
/>
|
||||||
|
@ -1804,7 +1804,6 @@ export default {
|
||||||
.header-content-row {
|
.header-content-row {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
width: 80%;
|
|
||||||
.back {
|
.back {
|
||||||
margin-left: px2rem(24);
|
margin-left: px2rem(24);
|
||||||
width: px2rem(20);
|
width: px2rem(20);
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<!-- 基于form组件进行表单验证 -->
|
<!-- 基于form组件进行表单验证 -->
|
||||||
<el-form ref="caseDetailForm" :rules="rules" :model="form">
|
<el-form ref="caseDetailForm" :rules="rules" :model="form">
|
||||||
<!-- case name -->
|
<!-- case name -->
|
||||||
<div class="case-name-row" v-on:keydown.enter.prevent v-if="editableState">
|
<div class="case-name-row" v-on:keydown.enter.prevent v-if="editable">
|
||||||
<div class="case-name case-title-wrap">
|
<div class="case-name case-title-wrap">
|
||||||
<div class="name title-wrap">{{ $t("case.case_name") }}</div>
|
<div class="name title-wrap">{{ $t("case.case_name") }}</div>
|
||||||
<div class="required required-item"></div>
|
<div class="required required-item"></div>
|
||||||
|
|
|
@ -33,6 +33,7 @@ export default {
|
||||||
isNameEdit: Boolean,
|
isNameEdit: Boolean,
|
||||||
editableState: Boolean,
|
editableState: Boolean,
|
||||||
isAdd: Boolean,
|
isAdd: Boolean,
|
||||||
|
isPublicShow: Boolean
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
@ -62,6 +63,9 @@ export default {
|
||||||
this.$emit('save');
|
this.$emit('save');
|
||||||
},
|
},
|
||||||
handleNameClick() {
|
handleNameClick() {
|
||||||
|
if (this.isPublicShow) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
this.$emit('update:isNameEdit', !this.isNameEdit);
|
this.$emit('update:isNameEdit', !this.isNameEdit);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue