feat: 接口定义状态码优化
This commit is contained in:
parent
9723e560b8
commit
0c3677ded3
|
@ -18,19 +18,22 @@
|
|||
<i class="el-icon-top" style="cursor:pointer" @click="moveTop(index)"/>
|
||||
<i class="el-icon-bottom" style="cursor:pointer;" @click="moveBottom(index)"/>
|
||||
|
||||
<el-col class="item">
|
||||
<el-col class="item" v-if="unShowSelect===false">
|
||||
<el-input v-if="!suggestions" :disabled="isReadOnly" v-model="item.name" size="small" maxlength="200"
|
||||
@change="change"
|
||||
:placeholder="keyText" show-word-limit/>
|
||||
<el-autocomplete :disabled="isReadOnly" :maxlength="400" v-if="suggestions" v-model="item.name" size="small"
|
||||
:fetch-suggestions="querySearch" @change="change" :placeholder="keyText"
|
||||
show-word-limit/>
|
||||
</el-col>
|
||||
|
||||
<el-col class="item" v-if="unShowSelect===true">
|
||||
<el-input v-if="suggestions" :disabled="isReadOnly" v-model="item.name" size="small" maxlength="200" :placeholder="keyText" show-word-limit/>
|
||||
</el-col>
|
||||
|
||||
<el-col class="item">
|
||||
<el-input v-if="!needMock" :disabled="isReadOnly" v-model="item.value" size="small" @change="change"
|
||||
:placeholder="valueText" show-word-limit/>
|
||||
:placeholder="unShowSelect?$t('commons.description'):valueText" show-word-limit/>
|
||||
<div v-if="needMock">
|
||||
<el-autocomplete
|
||||
:disabled="isReadOnly"
|
||||
|
@ -81,6 +84,10 @@
|
|||
isShowEnable: {
|
||||
type: Boolean,
|
||||
},
|
||||
unShowSelect:{
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
description: String,
|
||||
items: Array,
|
||||
isReadOnly: {
|
||||
|
|
|
@ -11,9 +11,9 @@
|
|||
<ms-api-body :isReadOnly="false" :isShowEnable="false" :body="response.body" :headers="response.headers"/>
|
||||
</el-tab-pane>
|
||||
|
||||
<el-tab-pane :label="$t('api_test.definition.request.status_code')" name="status_code" class="pane">
|
||||
<el-tab-pane :label="$t('api_test.definition.request.status_code')" name="status_code" class="pane" >
|
||||
<ms-api-key-value :isShowEnable="false" :suggestions="headerSuggestions"
|
||||
:items="response.statusCode"/>
|
||||
:items="response.statusCode" :unShowSelect = "true"/>
|
||||
</el-tab-pane>
|
||||
</el-tabs>
|
||||
</el-collapse-transition>
|
||||
|
|
Loading…
Reference in New Issue