fix(接口测试): 去掉TCP请求必填服务器名称的bug

This commit is contained in:
q4speed 2020-10-20 16:30:34 +08:00
parent 9f1198fe9e
commit 58a8510989
1 changed files with 12 additions and 12 deletions

View File

@ -74,8 +74,10 @@
</el-row>
<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}">
</el-input>
<div class="send-request">
<ms-code-edit mode="text" :read-only="isReadOnly" :data.sync="request.request"
:modes="['text', 'json', 'xml', 'html']" theme="eclipse"/>
</div>
</el-form-item>
<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 MsApiExtract from "@/business/components/api/test/components/extract/ApiExtract";
import MsJsr233Processor from "@/business/components/api/test/components/processor/Jsr233Processor";
import MsCodeEdit from "@/business/components/common/components/MsCodeEdit";
export default {
name: "MsApiTcpRequestForm",
components: {MsJsr233Processor, MsApiExtract, MsApiAssertions},
components: {MsCodeEdit, MsJsr233Processor, MsApiExtract, MsApiAssertions},
props: {
request: TCPRequest,
scenario: Scenario,
@ -134,15 +137,7 @@ export default {
return {
activeName: "assertions",
classes: TCPConfig.CLASSES,
rules: {
server: [
{
required: true,
message: this.$t('commons.required', [this.$t('api_test.request.tcp.server')]),
trigger: 'blur'
}
],
}
rules: {}
}
},
@ -165,4 +160,9 @@ export default {
.tcp >>> .el-input-number {
width: 100%;
}
.send-request {
padding: 15px 0;
height: 300px;
}
</style>