fix(接口测试): 修复接口定义上传文件,实际查看没有文件的缺陷
--bug=1033861 --user=王孝刚 【接口定义】上传文件,不填名称,提示保存成功,实际查看没文件 https://www.tapd.cn/55049933/s/1447921
This commit is contained in:
parent
e7e6431cb4
commit
4c92142105
|
@ -557,7 +557,7 @@ export default {
|
|||
if (!this.parameters[this.parameters.length - 1].min) {
|
||||
this.$set(this.parameters[this.parameters.length - 1], 'min', 0);
|
||||
}
|
||||
if (!this.parameters[this.parameters.length - 1].value) {
|
||||
if (!this.parameters[this.parameters.length - 1].value && this.parameters[this.parameters.length - 1].type !== 'file') {
|
||||
this.$set(this.parameters[this.parameters.length - 1], 'value', null);
|
||||
}
|
||||
if (!this.parameters[this.parameters.length - 1].uuid) {
|
||||
|
@ -566,7 +566,6 @@ export default {
|
|||
if (!this.parameters[this.parameters.length - 1].description) {
|
||||
this.$set(this.parameters[this.parameters.length - 1], 'description', null);
|
||||
}
|
||||
this.$set(this.parameters[this.parameters.length - 1], 'files', null);
|
||||
}
|
||||
let savedApiParamsShowFields = getShowFields(this.storageKey);
|
||||
if (savedApiParamsShowFields) {
|
||||
|
|
|
@ -299,7 +299,6 @@ export default {
|
|||
this.visible = false;
|
||||
}
|
||||
this.$refs.environmentEdit.clearValidate();
|
||||
this.currentEnvironment = null;
|
||||
removeGoBackListener(this.close);
|
||||
this.isCopy = false;
|
||||
},
|
||||
|
|
|
@ -123,7 +123,7 @@
|
|||
<template slot-scope="scope">
|
||||
<el-select
|
||||
v-model="scope.row.type"
|
||||
v-if="!scope.row.scope || scope.row.scope == 'api'"
|
||||
v-if="scope.row.scope == 'api'"
|
||||
:placeholder="$t('commons.please_select')"
|
||||
size="mini"
|
||||
@change="changeType($event, scope.row)"
|
||||
|
@ -141,6 +141,7 @@
|
|||
v-model="scope.row.type"
|
||||
:placeholder="$t('commons.please_select')"
|
||||
size="mini"
|
||||
@change="changeUiType($event, scope.row)"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in uiTypeSelectOptions"
|
||||
|
@ -462,6 +463,15 @@ export default {
|
|||
}
|
||||
});
|
||||
},
|
||||
changeUiType(value, data) {
|
||||
data.value = ''
|
||||
this.items.forEach((item) => {
|
||||
if (item.id === data.id) {
|
||||
item.type = value;
|
||||
item.value = data.value;
|
||||
}
|
||||
});
|
||||
},
|
||||
changeVariableVal(row) {
|
||||
this.items.forEach((item) => {
|
||||
if (item.id === row.id) {
|
||||
|
|
Loading…
Reference in New Issue