refactor: 请求参数修改

This commit is contained in:
Captain.B 2020-08-12 12:55:41 +08:00
parent be57bf66a5
commit 0263662f97
1 changed files with 11 additions and 14 deletions

View File

@ -38,7 +38,7 @@
<el-dialog :title="$t('api_test.request.parameters_advance')" <el-dialog :title="$t('api_test.request.parameters_advance')"
:visible.sync="itemValueVisible" :visible.sync="itemValueVisible"
class="advanced-item-value" class="advanced-item-value"
width="50%"> width="70%">
<!-- <el-form> <!-- <el-form>
<el-form-item> <el-form-item>
<el-input :autosize="{ minRows: 2, maxRows: 4}" type="textarea" :placeholder="valueText" <el-input :autosize="{ minRows: 2, maxRows: 4}" type="textarea" :placeholder="valueText"
@ -79,7 +79,7 @@
<p><strong>{{ $t('api_test.request.parameters_filter_tips') }}</strong></p> <p><strong>{{ $t('api_test.request.parameters_filter_tips') }}</strong></p>
</div> </div>
</div>--> </div>-->
<el-tabs tab-position="left" style="height: 60vh;"> <el-tabs tab-position="left" style="height: 40vh;">
<el-tab-pane label="Mock 数据"> <el-tab-pane label="Mock 数据">
<el-row type="flex" :gutter="20" style="overflow-x: auto;"> <el-row type="flex" :gutter="20" style="overflow-x: auto;">
<el-col :span="6"> <el-col :span="6">
@ -95,18 +95,15 @@
@select="change"> @select="change">
</el-autocomplete> </el-autocomplete>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6" v-for="(f, index) in itemFuncs" :key="index">
<el-row v-for="(func, index) in funcs" :key="index"> <el-select size="small" clearable placeholder="请选择">
<div @click="addFunc(func)" style="padding-top: 5px;"> <el-option
<el-col :span="12"> v-for="(func, index) in funcs"
<el-radio v-model="currentFunc" :label="func.name">{{ func.name }}</el-radio> :key="index"
</el-col> :label="func.name"
<el-col :span="12"> :value="func.name">
<el-input size="mini" :placeholder="param.name" v-model="param.value" </el-option>
v-for="(param, index) in func.params" :key="index"/> </el-select>
</el-col>
</div>
</el-row>
</el-col> </el-col>
<!--<el-col v-for="(f, index) in itemFuncs" :key="index"> <!--<el-col v-for="(f, index) in itemFuncs" :key="index">
<el-menu> <el-menu>