From e15930c08bbc843a83b1a6a6deae78b1a96dd838 Mon Sep 17 00:00:00 2001 From: song-tianyang Date: Wed, 11 Jan 2023 15:21:23 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=B7=B3=E8=BD=AC=E5=88=B0=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E5=92=8C=E6=8E=A5=E5=8F=A3=E5=9C=BA=E6=99=AF?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E7=9A=84=E7=9B=B8=E5=85=B3=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复跳转到接口测试和接口场景页面的相关问题 --- .../src/business/automation/ApiAutomation.vue | 5 +- .../component/ApiScenarioComponent.vue | 1 + .../scenario/component/LoopController.vue | 7 +- .../scenario/component/StepExtendBtns.vue | 1 + .../components/list/ApiDeleteConfirm.vue | 2 + .../components/reference/ShowReference.vue | 1 + .../functional/FunctionalTestCaseEdit.vue | 476 +++++++++++------- .../components/TestReviewTestCaseEdit.vue | 427 +++++++++------- .../src/business/module/api/ReferenceView.vue | 208 ++++---- 9 files changed, 677 insertions(+), 451 deletions(-) diff --git a/api-test/frontend/src/business/automation/ApiAutomation.vue b/api-test/frontend/src/business/automation/ApiAutomation.vue index 81fd357556..f94be4d6e3 100644 --- a/api-test/frontend/src/business/automation/ApiAutomation.vue +++ b/api-test/frontend/src/business/automation/ApiAutomation.vue @@ -372,10 +372,10 @@ export default { } }, _getCurrentUserId() { - const {id, userGroups} = getCurrentUser(); + const { id, userGroups } = getCurrentUser(); if (userGroups) { // 是否是当前项目下的成员 - let index = userGroups.findIndex(ug => ug.sourceId === getCurrentProjectID()); + let index = userGroups.findIndex((ug) => ug.sourceId === getCurrentProjectID()); if (index !== -1) { return id; } @@ -786,6 +786,7 @@ export default { let automationData = this.$router.resolve({ name: 'ApiAutomationWithQuery', params: { + versionId: 'default', redirectID: getUUID(), dataType: 'scenario', dataSelectRange: 'edit:' + resource.id, diff --git a/api-test/frontend/src/business/automation/scenario/component/ApiScenarioComponent.vue b/api-test/frontend/src/business/automation/scenario/component/ApiScenarioComponent.vue index 6354db91b0..3692692678 100644 --- a/api-test/frontend/src/business/automation/scenario/component/ApiScenarioComponent.vue +++ b/api-test/frontend/src/business/automation/scenario/component/ApiScenarioComponent.vue @@ -355,6 +355,7 @@ export default { let automationData = this.$router.resolve({ name: 'ApiAutomationWithQuery', params: { + versionId: 'default', redirectID: getUUID(), dataType: 'scenario', dataSelectRange: 'edit:' + resource.id, diff --git a/api-test/frontend/src/business/automation/scenario/component/LoopController.vue b/api-test/frontend/src/business/automation/scenario/component/LoopController.vue index 2915c2a5c0..baff3dc6be 100644 --- a/api-test/frontend/src/business/automation/scenario/component/LoopController.vue +++ b/api-test/frontend/src/business/automation/scenario/component/LoopController.vue @@ -84,7 +84,7 @@ v-model="controller.countController.interval" :disabled="controller.disabled" :placeholder="$t('commons.millisecond')" - :max="1000 * 10000000" + :max="1000 * 1000000" :min="0" :step="1000" size="small" /> @@ -129,7 +129,7 @@ :disabled="controller.disabled" size="small" :placeholder="$t('commons.millisecond')" - :max="1000 * 10000000" + :max="1000 * 1000000" :min="0" :step="1000" /> ms @@ -165,12 +165,11 @@ :disabled="controller.disabled" size="small" :placeholder="$t('commons.millisecond')" - :max="1000 * 10000000" + :max="1000 * 1000000" :min="3000" :step="1000" /> ms -