diff --git a/api-test/frontend/src/business/automation/scenario/common/ScenarioImport.vue b/api-test/frontend/src/business/automation/scenario/common/ScenarioImport.vue index 9bbb0a720f..1a3a9181e8 100644 --- a/api-test/frontend/src/business/automation/scenario/common/ScenarioImport.vue +++ b/api-test/frontend/src/business/automation/scenario/common/ScenarioImport.vue @@ -9,17 +9,20 @@ @close="close">
{{ $t('api_test.api_import.data_format') }}
- - {{ item.name }} - - -
- - {{ $t('commons.save') }} - - - {{ $t('commons.cancel') }} - +
+ + {{ + item.name + }} + +
+ + {{ $t('commons.save') }} + + + {{ $t('commons.cancel') }} + +
@@ -38,7 +41,7 @@ - + {{ this.$t('commons.cover_scenario') }} @@ -418,6 +421,11 @@ export default { .header-bar { padding: 10px 30px; + .header-bar-btn { + display: flex; + align-items: center; + justify-content: space-between; + } } .api-import :deep(.el-dialog__body) { @@ -432,7 +440,6 @@ export default { margin-left: 10px; } - .dialog-footer { float: right; } diff --git a/api-test/frontend/src/business/definition/components/import/ApiImport.vue b/api-test/frontend/src/business/definition/components/import/ApiImport.vue index 5c360d94cf..a4f8da30b8 100644 --- a/api-test/frontend/src/business/definition/components/import/ApiImport.vue +++ b/api-test/frontend/src/business/definition/components/import/ApiImport.vue @@ -10,19 +10,24 @@ :destroy-on-close="true">
{{ $t('api_test.api_import.data_format') }}
- - - {{ item.name }} - - - -
- - {{ $t('commons.save') }} - - - {{ $t('commons.cancel') }} - +
+ + {{ item.name }} + +
+ + {{ $t('commons.save') }} + + + {{ $t('commons.cancel') }} + +
@@ -106,7 +111,7 @@ :show-desc="true" :isShowEnable="isShowEnable" :suggestions="headerSuggestions" - :items="headers"/> + :items="headers" />
{{ $t('api_test.definition.request.query_param') }}{{ $t('api_test.api_import.optional') }}: @@ -469,9 +474,9 @@ export default { clearAuthInfo() { this.headers = []; this.queryArguments = []; - this.headers.push(new KeyValue({enable: true})); - this.queryArguments.push(new KeyValue({enable: true})); - this.authConfig = {hashTree: [], authManager: {}}; + this.headers.push(new KeyValue({ enable: true })); + this.queryArguments.push(new KeyValue({ enable: true })); + this.authConfig = { hashTree: [], authManager: {} }; this.$refs.importAuth.initData(); }, changeAuthEnable() { @@ -599,6 +604,11 @@ export default { .header-bar { padding: 10px 15px; + .header-bar-btn { + display: flex; + align-items: center; + justify-content: space-between; + } } .api-import :deep(.el-dialog__body) {