fix(接口测试): 去掉TCP请求必填服务器名称的bug
This commit is contained in:
parent
9f1198fe9e
commit
58a8510989
|
@ -74,8 +74,10 @@
|
||||||
</el-row>
|
</el-row>
|
||||||
|
|
||||||
<el-form-item :label="$t('api_test.request.tcp.request')" prop="request">
|
<el-form-item :label="$t('api_test.request.tcp.request')" prop="request">
|
||||||
<el-input type="textarea" v-model="request.request" :autosize="{minRows: 4, maxRows: 6}">
|
<div class="send-request">
|
||||||
</el-input>
|
<ms-code-edit mode="text" :read-only="isReadOnly" :data.sync="request.request"
|
||||||
|
:modes="['text', 'json', 'xml', 'html']" theme="eclipse"/>
|
||||||
|
</div>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
<el-row :gutter="10">
|
<el-row :gutter="10">
|
||||||
|
@ -118,10 +120,11 @@ import {Scenario, TCPConfig, TCPRequest} from "@/business/components/api/test/mo
|
||||||
import MsApiAssertions from "@/business/components/api/test/components/assertion/ApiAssertions";
|
import MsApiAssertions from "@/business/components/api/test/components/assertion/ApiAssertions";
|
||||||
import MsApiExtract from "@/business/components/api/test/components/extract/ApiExtract";
|
import MsApiExtract from "@/business/components/api/test/components/extract/ApiExtract";
|
||||||
import MsJsr233Processor from "@/business/components/api/test/components/processor/Jsr233Processor";
|
import MsJsr233Processor from "@/business/components/api/test/components/processor/Jsr233Processor";
|
||||||
|
import MsCodeEdit from "@/business/components/common/components/MsCodeEdit";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "MsApiTcpRequestForm",
|
name: "MsApiTcpRequestForm",
|
||||||
components: {MsJsr233Processor, MsApiExtract, MsApiAssertions},
|
components: {MsCodeEdit, MsJsr233Processor, MsApiExtract, MsApiAssertions},
|
||||||
props: {
|
props: {
|
||||||
request: TCPRequest,
|
request: TCPRequest,
|
||||||
scenario: Scenario,
|
scenario: Scenario,
|
||||||
|
@ -134,15 +137,7 @@ export default {
|
||||||
return {
|
return {
|
||||||
activeName: "assertions",
|
activeName: "assertions",
|
||||||
classes: TCPConfig.CLASSES,
|
classes: TCPConfig.CLASSES,
|
||||||
rules: {
|
rules: {}
|
||||||
server: [
|
|
||||||
{
|
|
||||||
required: true,
|
|
||||||
message: this.$t('commons.required', [this.$t('api_test.request.tcp.server')]),
|
|
||||||
trigger: 'blur'
|
|
||||||
}
|
|
||||||
],
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -165,4 +160,9 @@ export default {
|
||||||
.tcp >>> .el-input-number {
|
.tcp >>> .el-input-number {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.send-request {
|
||||||
|
padding: 15px 0;
|
||||||
|
height: 300px;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Reference in New Issue