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-top" style="cursor:pointer" @click="moveTop(index)"/>
|
||||||
<i class="el-icon-bottom" style="cursor:pointer;" @click="moveBottom(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"
|
<el-input v-if="!suggestions" :disabled="isReadOnly" v-model="item.name" size="small" maxlength="200"
|
||||||
@change="change"
|
@change="change"
|
||||||
:placeholder="keyText" show-word-limit/>
|
:placeholder="keyText" show-word-limit/>
|
||||||
<el-autocomplete :disabled="isReadOnly" :maxlength="400" v-if="suggestions" v-model="item.name" size="small"
|
<el-autocomplete :disabled="isReadOnly" :maxlength="400" v-if="suggestions" v-model="item.name" size="small"
|
||||||
:fetch-suggestions="querySearch" @change="change" :placeholder="keyText"
|
:fetch-suggestions="querySearch" @change="change" :placeholder="keyText"
|
||||||
show-word-limit/>
|
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>
|
||||||
|
|
||||||
<el-col class="item">
|
<el-col class="item">
|
||||||
<el-input v-if="!needMock" :disabled="isReadOnly" v-model="item.value" size="small" @change="change"
|
<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">
|
<div v-if="needMock">
|
||||||
<el-autocomplete
|
<el-autocomplete
|
||||||
:disabled="isReadOnly"
|
:disabled="isReadOnly"
|
||||||
|
@ -81,6 +84,10 @@
|
||||||
isShowEnable: {
|
isShowEnable: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
},
|
},
|
||||||
|
unShowSelect:{
|
||||||
|
type: Boolean,
|
||||||
|
default: false
|
||||||
|
},
|
||||||
description: String,
|
description: String,
|
||||||
items: Array,
|
items: Array,
|
||||||
isReadOnly: {
|
isReadOnly: {
|
||||||
|
|
|
@ -11,9 +11,9 @@
|
||||||
<ms-api-body :isReadOnly="false" :isShowEnable="false" :body="response.body" :headers="response.headers"/>
|
<ms-api-body :isReadOnly="false" :isShowEnable="false" :body="response.body" :headers="response.headers"/>
|
||||||
</el-tab-pane>
|
</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"
|
<ms-api-key-value :isShowEnable="false" :suggestions="headerSuggestions"
|
||||||
:items="response.statusCode"/>
|
:items="response.statusCode" :unShowSelect = "true"/>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
</el-tabs>
|
</el-tabs>
|
||||||
</el-collapse-transition>
|
</el-collapse-transition>
|
||||||
|
|
Loading…
Reference in New Issue