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
0cf2d0a69e
commit
ae8fe56470
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -50,7 +50,7 @@
|
|||
:project-id="projectId"
|
||||
:is-read-only="isReadOnly"
|
||||
:useEnvironment='useEnvironment'
|
||||
@setEnvironment="setEnvironment"/>
|
||||
@setEnvironment="setEnvironment" ref="environmentSelect"/>
|
||||
</div>
|
||||
</el-col>
|
||||
<el-col :span="1" v-if="!(isReadOnly || isCaseEdit)">
|
||||
|
@ -106,6 +106,9 @@
|
|||
},
|
||||
},
|
||||
methods: {
|
||||
refreshEnvironment(){
|
||||
this.$refs.environmentSelect.refreshEnvironment();
|
||||
},
|
||||
setEnvironment(data) {
|
||||
this.$emit('setEnvironment', data.id);
|
||||
},
|
||||
|
@ -124,6 +127,7 @@
|
|||
},
|
||||
addCase() {
|
||||
this.$emit('addCase');
|
||||
this.refreshEnvironment();
|
||||
},
|
||||
getColor(enable, method) {
|
||||
if (enable) {
|
||||
|
|
|
@ -54,6 +54,9 @@
|
|||
}
|
||||
},
|
||||
methods: {
|
||||
refreshEnvironment(){
|
||||
this.$emit('setEnvironment', this.environment);
|
||||
},
|
||||
getEnvironments() {
|
||||
if (this.projectId) {
|
||||
this.$get('/api/environment/list/' + this.projectId, response => {
|
||||
|
|
Loading…
Reference in New Issue