diff --git a/framework/sdk-parent/frontend/src/components/environment/ApiEnvironmentConfig.vue b/framework/sdk-parent/frontend/src/components/environment/ApiEnvironmentConfig.vue index 7200126dba..45b63bb32d 100644 --- a/framework/sdk-parent/frontend/src/components/environment/ApiEnvironmentConfig.vue +++ b/framework/sdk-parent/frontend/src/components/environment/ApiEnvironmentConfig.vue @@ -1,17 +1,41 @@ diff --git a/framework/sdk-parent/frontend/src/components/environment/EnvironmentCommonConfig.vue b/framework/sdk-parent/frontend/src/components/environment/EnvironmentCommonConfig.vue index d105795cbd..2c306bba3f 100644 --- a/framework/sdk-parent/frontend/src/components/environment/EnvironmentCommonConfig.vue +++ b/framework/sdk-parent/frontend/src/components/environment/EnvironmentCommonConfig.vue @@ -1,49 +1,79 @@ diff --git a/framework/sdk-parent/frontend/src/components/environment/commons/ApiScenarioVariables.vue b/framework/sdk-parent/frontend/src/components/environment/commons/ApiScenarioVariables.vue index 9177a6ee2d..da5a073908 100644 --- a/framework/sdk-parent/frontend/src/components/environment/commons/ApiScenarioVariables.vue +++ b/framework/sdk-parent/frontend/src/components/environment/commons/ApiScenarioVariables.vue @@ -85,7 +85,7 @@ v-model="scope.row.scope" :placeholder="$t('commons.please_select')" size="mini" - @change="changeType($event, scope.row)" + @change="changeScope($event, scope.row)" > { + if (item.id === row.id) { + item.scope = value; + } + }); + this.changeType(row.type, row); + }, changeType(value, data) { - data.value = ""; - if ( - !data.delimiter || + data.value = '' + const notDelimiters = !data.delimiter || (!data.files && data.files.length === 0) || !data.quotedData + if ( + notDelimiters ) { data.delimiter = ","; data.files = []; data.quotedData = "false"; } - if (!data.scope || data.scope == "ui") { - data.type = "STRING"; - } this.items.forEach((item) => { if (item.id === data.id) { - item.scope = value; - item.type = data.type; + item.type = value; item.value = data.value; + if(notDelimiters) { + item.delimiter = data.delimiter; + item.files = data.files; + item.quotedData = data.quotedData; + } } }); },