feat(接口测试): 导入调整

This commit is contained in:
baiqi 2024-09-02 18:21:13 +08:00 committed by Craftsman
parent 16b4102a72
commit d3580a2146
1 changed files with 5 additions and 1 deletions

View File

@ -24,7 +24,10 @@
</div> </div>
</div> </div>
<a-form ref="importFormRef" :model="importForm" layout="vertical"> <a-form ref="importFormRef" :model="importForm" layout="vertical">
<a-form-item :label="t('apiTestManagement.importType')"> <a-form-item
v-if="importForm.platform === RequestImportFormat.SWAGGER"
:label="t('apiTestManagement.importType')"
>
<a-radio-group v-model:model-value="importForm.type" type="button"> <a-radio-group v-model:model-value="importForm.type" type="button">
<a-radio :value="RequestImportType.API">{{ t('apiTestManagement.fileImport') }}</a-radio> <a-radio :value="RequestImportType.API">{{ t('apiTestManagement.fileImport') }}</a-radio>
<a-radio :value="RequestImportType.SCHEDULE">{{ t('apiTestManagement.timeImport') }}</a-radio> <a-radio :value="RequestImportType.SCHEDULE">{{ t('apiTestManagement.timeImport') }}</a-radio>
@ -449,6 +452,7 @@
importForm.value.platform = format; importForm.value.platform = format;
if (format !== RequestImportFormat.SWAGGER) { if (format !== RequestImportFormat.SWAGGER) {
importType.value = 'file'; importType.value = 'file';
importForm.value.type = RequestImportType.API;
} }
} }