refactor(接口测试): tcp协议前后置sql配置页面显示错位的缺陷

--bug=1011632 --user=王孝刚 【接口测试】tcp协议-前/后置sql配置页面显示错位
https://www.tapd.cn/55049933/s/1125289
This commit is contained in:
wxg0103 2022-03-24 12:06:17 +08:00 committed by 刘瑞斌
parent 25ae00ee65
commit c0eb1251d8
3 changed files with 7 additions and 5 deletions

View File

@ -6,7 +6,7 @@
</div>
<el-card class="card-content">
<el-form :model="api" :rules="rules" ref="apiData" :inline="true" label-position="right">
<el-form :model="api" :rules="rules" ref="apiData" :inline="true" label-position="right" style="height: 100%">
<!-- 操作按钮 -->
<el-dropdown split-button type="primary" class="ms-api-buttion" @click="handleCommand('add')"
@ -31,7 +31,7 @@
{{ $t('api_test.definition.request.run_env') }}
<environment-select :type="'TCP'" :current-data="api" :project-id="projectId" ref="environmentSelect"/>
</el-form-item>
</el-form>
<!-- TCP 请求参数 -->
<div v-if="api.method=='TCP'" v-loading="loading">
@ -48,7 +48,7 @@
<esb-definition v-xpack v-if="showXpackCompnent" :show-script="true" :request="api.request"
@callback="runTest" ref="requestForm"/>
</div>
</el-form>
<div v-if="api.method=='ESB'">
<p class="tip">{{ $t('api_test.definition.request.res_param') }}</p>

View File

@ -305,6 +305,7 @@ export default {
if (this.request.disabled) {
jdbcPreProcessor.label = 'SCENARIO-REF-STEP';
}
jdbcPreProcessor.active = false;
this.request.hashTree.push(jdbcPreProcessor);
this.sort();
this.reload();
@ -317,6 +318,7 @@ export default {
if (this.request.disabled) {
jdbcPostProcessor.label = 'SCENARIO-REF-STEP';
}
jdbcPostProcessor.active = false;
this.request.hashTree.push(jdbcPostProcessor);
this.sort();
this.reload();

View File

@ -360,7 +360,7 @@ export default {
this.result.loading = true;
this.fields = getTableHeaderWithCustomFields(this.tableHeaderKey, []);
this.result.loading = false;
this.$refs.table.reloadTable();
setTimeout(this.$refs.table.reloadTable(), 500);
},
customHeader() {
const list = deepClone(this.tableLabel);
@ -388,8 +388,8 @@ export default {
this.tableData = data.listObject;
});
setTimeout(this.$refs.table.reloadTable(), 200);
}
setTimeout(this.$refs.table.reloadTable(), 500);
},
getNexPageData() {
getTestReviewTestCase(this.currentPage * this.pageSize + 1, 1, this.condition, (data) => {