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

View File

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

View File

@ -20,10 +20,10 @@ const message = {
trash: "回收站", trash: "回收站",
yes: "是", yes: "是",
no: "否", no: "否",
running: "运行中", running: "运行中",
idle: "空闲", idle: "空闲",
running_status: "运行状态", running_status: "运行状态",
cpu_usage: "CPU 使用率", cpu_usage: "CPU 使用率",
expand_all: "一键展开", expand_all: "一键展开",
close_all: "一键收起", close_all: "一键收起",
example: "示例", example: "示例",
@ -1988,7 +1988,7 @@ const message = {
post_export_tip: "通过 Postman 导出测试集合", post_export_tip: "通过 Postman 导出测试集合",
swagger_export_tip: "通过 Swagger 页面导出", swagger_export_tip: "通过 Swagger 页面导出",
jmeter_export_tip: "通过 JMeter 生成 JMX 文件", jmeter_export_tip: "通过 JMeter 生成 JMX 文件",
jmeter_tip: "支持 JMeter5.2-5.4版本的 JMX 文件", jmeter_tip: "支持 JMeter5.2-5.5版本的 JMX 文件",
suffixFormatErr: "文件格式不符合要求", suffixFormatErr: "文件格式不符合要求",
file_name_to_long: "文件名称过长", file_name_to_long: "文件名称过长",
swagger_url_import: "使用 URL 导入", swagger_url_import: "使用 URL 导入",

View File

@ -20,10 +20,10 @@ const message = {
trash: "回收站", trash: "回收站",
yes: "是", yes: "是",
no: "否", no: "否",
running: "運行中", running: "運行中",
idle: "空閑", idle: "空閑",
running_status: "運行狀態", running_status: "運行狀態",
cpu_usage: "CPU 使用率", cpu_usage: "CPU 使用率",
expand_all: "一鍵展開", expand_all: "一鍵展開",
close_all: "一鍵收起", close_all: "一鍵收起",
example: "示例", example: "示例",
@ -1987,7 +1987,7 @@ const message = {
post_export_tip: "通過 Postman 導出測試集合", post_export_tip: "通過 Postman 導出測試集合",
swagger_export_tip: "通過 Swagger 頁面導出", swagger_export_tip: "通過 Swagger 頁面導出",
jmeter_export_tip: "通過 JMeter 生成 JMX 文件", jmeter_export_tip: "通過 JMeter 生成 JMX 文件",
jmeter_tip: "支持 JMeter5.2-5.4版本的 JMX 文件", jmeter_tip: "支持 JMeter5.2-5.5版本的 JMX 文件",
suffixFormatErr: "文件格式不符合要求", suffixFormatErr: "文件格式不符合要求",
file_name_to_long: "文件名稱過長", file_name_to_long: "文件名稱過長",
swagger_url_import: "使用 URL 導入", swagger_url_import: "使用 URL 導入",

View File

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