fix(项目设置): 修复环境相关问题

--bug=1025127 --user=王孝刚 【项目设置】项目环境-创建环境页面显示错误
https://www.tapd.cn/55049933/s/1359460
This commit is contained in:
wxg0103 2023-04-04 17:19:02 +08:00 committed by fit2-zhao
parent 8047f12387
commit 7212bf4b8c
4 changed files with 11 additions and 9 deletions

View File

@ -148,7 +148,7 @@
{{ $t('commons.confirm') }}
</el-button>
<el-button size="small" style="margin-left: 10px" @click="cancelVariable"
>{{ $t('commons.cancel') }}
>{{ $t('commons.cancel') }}
</el-button>
<el-button v-if="showDelete" size="small" style="margin-left: 10px" @click="deleteVariable">
{{ $t('commons.delete') }}
@ -167,7 +167,7 @@
placement="top-start"
slot="label">
<span
>{{ $t('api_test.request.headers') }}
>{{ $t('api_test.request.headers') }}
<div class="el-step__icon is-text ms-api-col ms-header" v-if="headers.length > 1">
<div class="el-step__icon-inner">
{{ headers.length - 1 }}
@ -468,10 +468,10 @@ export default {
if (messages !== '') {
this.$alert(
this.$t('api_test.scenario.variables') +
'【' +
messages.substr(0, messages.length - 1) +
'】' +
this.$t('load_test.param_is_duplicate')
'【' +
messages.substr(0, messages.length - 1) +
'】' +
this.$t('load_test.param_is_duplicate')
);
}
});
@ -485,6 +485,7 @@ export default {
this.variables.forEach((item) => {
item.hidden = undefined;
if (item.name && item.name != '') {
item.showMore = false;
saveVariables.push(item);
}
});

View File

@ -85,6 +85,7 @@ export default {
this.icon= ['fa', 'expand-alt'];
}
this.$emit("update:isFullScreen",bool);
this.$emit("fullScreen");
},
},
};

View File

@ -90,7 +90,7 @@
v-if="!scope.row.scope || scope.row.scope == 'api'"
:placeholder="$t('commons.please_select')"
size="mini"
@change="changeType(scope.row)">
@change="changeType(scope.row)">
<el-option v-for="item in typeSelectOptions" :key="item.value" :label="item.label" :value="item.value" />
</el-select>

View File

@ -1,10 +1,10 @@
<template>
<el-dialog :visible="dialogVisible" :title="dialogTitle"
@close="close" :close-on-click-modal="false" append-to-body
width="35%">
width="550px">
<el-form :rules="rules" label-width="80px" v-model="modeId">
<el-form-item prop="modeId" :label="$t('commons.import_mode')">
<el-select size="small" v-model="modeId">
<el-select size="small" v-model="modeId" style="width: 360px">
<el-option v-for="item in modeOptions" :key="item.id" :label="item.name" :value="item.id"/>
</el-select>
</el-form-item>