fix(接口定义): 修复单接口用例删除后再次添加用例需要选环境的缺陷;修复xmind下载模版之后直接导入报错的缺陷
--bug=1004993 --user=宋天阳 【测试用例】导入xmind用例报错 https://www.tapd.cn/55049933/s/1024975 --bug=1004963 --user=宋天阳 单接口用例删除后,再次添加用例执行提示选择环境 https://www.tapd.cn/55049933/s/1024976
This commit is contained in:
parent
1b7dd0169e
commit
09ae82d841
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -50,7 +50,7 @@
|
||||||
:project-id="projectId"
|
:project-id="projectId"
|
||||||
:is-read-only="isReadOnly"
|
:is-read-only="isReadOnly"
|
||||||
:useEnvironment='useEnvironment'
|
:useEnvironment='useEnvironment'
|
||||||
@setEnvironment="setEnvironment"/>
|
@setEnvironment="setEnvironment" ref="environmentSelect"/>
|
||||||
</div>
|
</div>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="1" v-if="!(isReadOnly || isCaseEdit)">
|
<el-col :span="1" v-if="!(isReadOnly || isCaseEdit)">
|
||||||
|
@ -106,6 +106,9 @@
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
refreshEnvironment(){
|
||||||
|
this.$refs.environmentSelect.refreshEnvironment();
|
||||||
|
},
|
||||||
setEnvironment(data) {
|
setEnvironment(data) {
|
||||||
this.$emit('setEnvironment', data.id);
|
this.$emit('setEnvironment', data.id);
|
||||||
},
|
},
|
||||||
|
@ -124,6 +127,7 @@
|
||||||
},
|
},
|
||||||
addCase() {
|
addCase() {
|
||||||
this.$emit('addCase');
|
this.$emit('addCase');
|
||||||
|
this.refreshEnvironment();
|
||||||
},
|
},
|
||||||
getColor(enable, method) {
|
getColor(enable, method) {
|
||||||
if (enable) {
|
if (enable) {
|
||||||
|
|
|
@ -54,6 +54,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
refreshEnvironment(){
|
||||||
|
this.$emit('setEnvironment', this.environment);
|
||||||
|
},
|
||||||
getEnvironments() {
|
getEnvironments() {
|
||||||
if (this.projectId) {
|
if (this.projectId) {
|
||||||
this.$get('/api/environment/list/' + this.projectId, response => {
|
this.$get('/api/environment/list/' + this.projectId, response => {
|
||||||
|
|
Loading…
Reference in New Issue