refactor(接口测试): 优化mock环境http配置的显示

--bug=1031675 --user=王孝刚
【接口测试】github#27023,mock环境修改地址-调试-修改的地址生效,然后再进入调试mock地址又变回去了
https://www.tapd.cn/55049933/s/1425819
This commit is contained in:
wxg0103 2023-10-13 14:55:01 +08:00 committed by 刘瑞斌
parent 5c9d414dcf
commit 4726ef6514
5 changed files with 14 additions and 13 deletions

View File

@ -6,7 +6,7 @@
<el-row type="flex" justify="space-between">
<el-col :span="14">
<span class="ms-env-span" style="line-height: 30px;">{{ $t('api_test.environment.socket') }}</span>
<el-input v-model="condition.socket" style="width: 85%"
<el-input v-model="condition.socket" style="width: 85%" :disabled="httpConfig.isMock"
:placeholder="$t('api_test.request.url_description')" clearable size="small">
<template slot="prepend">
<el-select v-model="condition.protocol" class="request-protocol-select" size="small">
@ -143,6 +143,7 @@ export default {
},
},
created() {
console.log(this.httpConfig)
this.list();
},
data() {

View File

@ -2059,7 +2059,7 @@ const message = {
post_export_tip: "Export the test collection by Postman",
swagger_export_tip: "Export jSON-formatted files via Swagger website",
jmeter_export_tip: "Generating JMX file through JMeter",
jmeter_tip: "JMX files supporting JMeter 5.2-5.4",
jmeter_tip: "JMX files supporting JMeter 5.2-5.5",
suffixFormatErr: "The file format does not meet the requirements",
swagger_url_import: "Import using URL",
add_request_params: "Add request Parameters",

View File

@ -1988,7 +1988,7 @@ const message = {
post_export_tip: "通过 Postman 导出测试集合",
swagger_export_tip: "通过 Swagger 页面导出",
jmeter_export_tip: "通过 JMeter 生成 JMX 文件",
jmeter_tip: "支持 JMeter5.2-5.4版本的 JMX 文件",
jmeter_tip: "支持 JMeter5.2-5.5版本的 JMX 文件",
suffixFormatErr: "文件格式不符合要求",
file_name_to_long: "文件名称过长",
swagger_url_import: "使用 URL 导入",

View File

@ -1987,7 +1987,7 @@ const message = {
post_export_tip: "通過 Postman 導出測試集合",
swagger_export_tip: "通過 Swagger 頁面導出",
jmeter_export_tip: "通過 JMeter 生成 JMX 文件",
jmeter_tip: "支持 JMeter5.2-5.4版本的 JMX 文件",
jmeter_tip: "支持 JMeter5.2-5.5版本的 JMX 文件",
suffixFormatErr: "文件格式不符合要求",
file_name_to_long: "文件名稱過長",
swagger_url_import: "使用 URL 導入",

View File

@ -6,7 +6,7 @@
<el-row type="flex" justify="space-between">
<el-col :span="14">
<span class="ms-env-span" style="line-height: 30px;">{{ $t('api_test.environment.socket') }}</span>
<el-input v-model="condition.socket" style="width: 85%"
<el-input v-model="condition.socket" style="width: 85%" :disabled="httpConfig.isMock"
:placeholder="$t('api_test.request.url_description')" clearable size="small">
<template slot="prepend">
<el-select v-model="condition.protocol" class="request-protocol-select" size="small">