refactor(接口测试): 调整sql表单布局
This commit is contained in:
parent
7addde0db2
commit
942551b205
|
@ -5,11 +5,24 @@
|
||||||
<el-input v-model="request.name" maxlength="300" show-word-limit/>
|
<el-input v-model="request.name" maxlength="300" show-word-limit/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
<el-form-item :label="$t('api_test.request.sql.dataSource')" prop="dataSource">
|
<div class="one-row">
|
||||||
<el-select v-model="request.dataSource">
|
<el-form-item :label="$t('api_test.request.sql.dataSource')" prop="dataSource">
|
||||||
<el-option v-for="(item, index) in databaseConfigsOptions" :key="index" :value="item.id" :label="item.name"/>
|
<el-select v-model="request.dataSource">
|
||||||
</el-select>
|
<el-option v-for="(item, index) in databaseConfigsOptions" :key="index" :value="item.id" :label="item.name"/>
|
||||||
</el-form-item>
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
|
||||||
|
<el-form-item :label="$t('api_test.request.sql.timeout')" prop="queryTimeout">
|
||||||
|
<el-input-number :disabled="isReadOnly" size="mini" v-model="request.queryTimeout" :placeholder="$t('commons.millisecond')" :max="1000*10000000" :min="0"/>
|
||||||
|
</el-form-item>
|
||||||
|
|
||||||
|
<el-form-item>
|
||||||
|
<el-switch
|
||||||
|
v-model="request.useEnvironment"
|
||||||
|
:active-text="$t('api_test.request.refer_to_environment')" @change="getDatabaseConfigsOptions">
|
||||||
|
</el-switch>
|
||||||
|
</el-form-item>
|
||||||
|
</div>
|
||||||
|
|
||||||
<el-form-item :label="$t('api_test.request.sql.result_variable')" prop="resultVariable">
|
<el-form-item :label="$t('api_test.request.sql.result_variable')" prop="resultVariable">
|
||||||
<el-input v-model="request.resultVariable" maxlength="300" show-word-limit/>
|
<el-input v-model="request.resultVariable" maxlength="300" show-word-limit/>
|
||||||
|
@ -25,17 +38,6 @@
|
||||||
<!--</el-select>-->
|
<!--</el-select>-->
|
||||||
<!--</el-form-item>-->
|
<!--</el-form-item>-->
|
||||||
|
|
||||||
<el-form-item :label="$t('api_test.request.sql.timeout')" prop="queryTimeout">
|
|
||||||
<el-input-number :disabled="isReadOnly" size="mini" v-model="request.queryTimeout" :placeholder="$t('commons.millisecond')" :max="1000*10000000" :min="0"/>
|
|
||||||
</el-form-item>
|
|
||||||
|
|
||||||
<el-form-item>
|
|
||||||
<el-switch
|
|
||||||
v-model="request.useEnvironment"
|
|
||||||
:active-text="$t('api_test.request.refer_to_environment')" @change="getDatabaseConfigsOptions">
|
|
||||||
</el-switch>
|
|
||||||
</el-form-item>
|
|
||||||
|
|
||||||
<el-button :disabled="!request.enable || !scenario.enable || isReadOnly" class="debug-button" size="small" type="primary" @click="runDebug">{{$t('api_test.request.debug')}}</el-button>
|
<el-button :disabled="!request.enable || !scenario.enable || isReadOnly" class="debug-button" size="small" type="primary" @click="runDebug">{{$t('api_test.request.debug')}}</el-button>
|
||||||
|
|
||||||
<el-tabs v-model="activeName">
|
<el-tabs v-model="activeName">
|
||||||
|
@ -147,4 +149,12 @@
|
||||||
height: calc(100vh - 570px);
|
height: calc(100vh - 570px);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.one-row .el-form-item {
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.one-row .el-form-item:nth-child(2) {
|
||||||
|
margin-left: 60px;
|
||||||
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Reference in New Issue