fix(接口定义): 修复test页面的环境编辑多个图标的缺陷
--bug=1016041 --user=王孝刚 【接口测试】接口定义 - TEST页面,选择环境下拉框 - 点开环境配置,变量名和类型后有个小圈 https://www.tapd.cn/55049933/s/1229274
This commit is contained in:
parent
e1a3c7c4c4
commit
d6e1458b3b
|
@ -127,7 +127,6 @@ export default {
|
||||||
rules: {
|
rules: {
|
||||||
method: [{required: true, message: this.$t('test_track.case.input_maintainer'), trigger: 'change'}],
|
method: [{required: true, message: this.$t('test_track.case.input_maintainer'), trigger: 'change'}],
|
||||||
path: [{required: true, message: this.$t('api_test.definition.request.path_info'), trigger: 'blur'}],
|
path: [{required: true, message: this.$t('api_test.definition.request.path_info'), trigger: 'blur'}],
|
||||||
environmentId: [{required: true, message: this.$t('api_test.definition.request.run_env'), trigger: 'change'}],
|
|
||||||
},
|
},
|
||||||
runData: [],
|
runData: [],
|
||||||
reportId: "",
|
reportId: "",
|
||||||
|
@ -218,6 +217,10 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
runTest() {
|
runTest() {
|
||||||
|
if (!this.api.environmentId) {
|
||||||
|
this.$warning(this.$t('api_test.environment.select_environment'));
|
||||||
|
return;
|
||||||
|
}
|
||||||
this.$refs['apiData'].validate((valid) => {
|
this.$refs['apiData'].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.runLoading = true;
|
this.runLoading = true;
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
</div>
|
</div>
|
||||||
<el-card class="card-content">
|
<el-card class="card-content">
|
||||||
|
|
||||||
<el-form :model="api" :rules="rules" ref="apiData" :inline="true" label-position="right" style="height: 100%">
|
<el-form :model="api" ref="apiData" :inline="true" label-position="right" style="height: 100%">
|
||||||
|
|
||||||
<!-- 操作按钮 -->
|
<!-- 操作按钮 -->
|
||||||
<el-dropdown split-button type="primary" class="ms-api-buttion" @click="handleCommand('add')"
|
<el-dropdown split-button type="primary" class="ms-api-buttion" @click="handleCommand('add')"
|
||||||
|
@ -116,9 +116,6 @@ export default {
|
||||||
environments: [],
|
environments: [],
|
||||||
refreshSign: "",
|
refreshSign: "",
|
||||||
createCase: "",
|
createCase: "",
|
||||||
rules: {
|
|
||||||
environmentId: [{required: true, message: this.$t('api_test.definition.request.run_env'), trigger: 'change'}],
|
|
||||||
},
|
|
||||||
runData: [],
|
runData: [],
|
||||||
reportId: "",
|
reportId: "",
|
||||||
showXpackCompnent: false,
|
showXpackCompnent: false,
|
||||||
|
@ -187,6 +184,10 @@ export default {
|
||||||
this.$emit('refresh');
|
this.$emit('refresh');
|
||||||
},
|
},
|
||||||
runTest() {
|
runTest() {
|
||||||
|
if (!this.api.environmentId) {
|
||||||
|
this.$warning(this.$t('api_test.environment.select_environment'));
|
||||||
|
return;
|
||||||
|
}
|
||||||
this.$refs['apiData'].validate((valid) => {
|
this.$refs['apiData'].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.runLoading = true;
|
this.runLoading = true;
|
||||||
|
|
Loading…
Reference in New Issue