refactor(接口定义): 场景变量批量添加提示

--bug=1015924 --user=王孝刚 【接口测试】github#16911,批量添加场景变量,列表添加后类型显示为常量
,建议加个提示 https://www.tapd.cn/55049933/s/1226687
This commit is contained in:
wxg0103 2022-08-18 15:01:45 +08:00 committed by fit2-zhao
parent ba3ad31268
commit 918e318d13
5 changed files with 10 additions and 2 deletions

View File

@ -295,7 +295,7 @@ export default {
downloadFile('MS_' + variablesJson.length + '_Environments_variables.json', JSON.stringify(variablesJson));
},
batchAddParameter() {
this.$refs.batchAddParameter.open();
this.$refs.batchAddParameter.open('scenario');
},
batchAddHeader() {
this.$refs.batchAddHeader.open();

View File

@ -6,6 +6,7 @@
<el-row>
<el-col :span="14">
<div v-html="$t('api_test.batch_add_parameter')"/>
<div v-if="isScenario" v-html="$t('api_test.bach_add_type_info')"/>
</el-col>
<el-col :span="10" class="buttons">
<el-button size="mini" @click="handleClose">{{ $t('commons.cancel') }}</el-button>
@ -42,10 +43,14 @@ export default {
return {
dialogVisible: false,
parameters: "",
isScenario: false
}
},
methods: {
open() {
open(data) {
if (data && data === 'scenario') {
this.isScenario = true;
}
this.dialogVisible = true;
listenGoBack(this.handleClose);
},

View File

@ -1199,6 +1199,7 @@ export default {
please_select_case: "Please select case",
fail_to_stop: "Fail to stop",
batch_add_parameter: "Format: parameter name: parameter value <br/> likeAccept-Encoding:utf-8 <br/> Note: The parameter names in batch addition are repeated, and the last data is the latest data by default",
bach_add_type_info: "Note: only constants can be added in batch",
params_format_warning: "Incorrect data format at line {0}",
create_performance_test_tips: 'This operation cannot be completed without permission to create performance tests',
jar_config: {

View File

@ -1209,6 +1209,7 @@ export default {
please_select_case: "请选择用例",
fail_to_stop: "失败停止",
batch_add_parameter: "格式:参数名:参数值 <br/> 如Accept-Encoding:utf-8 <br/> 注:批量添加里的参数名重复,默认以最后一条数据为最新数据",
bach_add_type_info: "注:批量添加只能添加常量",
params_format_warning: "第{0}行数据格式有误",
create_performance_test_tips: '没有创建性能测试的权限,无法完成此操作',
jar_config: {

View File

@ -1206,6 +1206,7 @@ export default {
please_select_case: "請選擇用例",
fail_to_stop: "失敗停止",
batch_add_parameter: "格式:參數名:參數值 <br/> 如Accept-Encoding:utf-8 <br/> 注:批量添加里的參數名重複,默認以最後一條數據為最新數據",
bach_add_type_info: "注:批量添加只能添加常數",
params_format_warning: "第{0}行數據格式有誤",
create_performance_test_tips: '沒有創建性能測試的權限,無法完成此操作',
jar_config: {