diff --git a/frontend/public/images/noResponse.svg b/frontend/public/images/noResponse.svg new file mode 100644 index 0000000000..6e8aada60a --- /dev/null +++ b/frontend/public/images/noResponse.svg @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/frontend/src/api/modules/api-test/management.ts b/frontend/src/api/modules/api-test/management.ts index 332c0f8fef..275587e253 100644 --- a/frontend/src/api/modules/api-test/management.ts +++ b/frontend/src/api/modules/api-test/management.ts @@ -22,6 +22,9 @@ import { GetModuleTreeUrl, ImportDefinitionUrl, MoveModuleUrl, + OperationHistoryUrl, + RecoverOperationHistoryUrl, + SaveOperationHistoryUrl, SortDefinitionUrl, SwitchDefinitionScheduleUrl, ToggleFollowDefinitionUrl, @@ -50,9 +53,12 @@ import { ApiDefinitionUpdateParams, CheckScheduleParams, CreateImportApiDefinitionScheduleParams, + DefinitionHistoryItem, + DefinitionHistoryPageParams, EnvModule, ImportApiDefinitionParams, mockParams, + RecoverDefinitionParams, UpdateScheduleParams, } from '@/models/apiTest/management'; import { @@ -209,6 +215,21 @@ export function toggleFollowDefinition(id: string | number) { return MSR.get({ url: ToggleFollowDefinitionUrl, params: id }); } +// 接口定义-变更历史 +export function operationHistory(data: DefinitionHistoryPageParams) { + return MSR.post>({ url: OperationHistoryUrl, data }); +} + +// 接口定义-保存变更历史为指定版本 +export function saveOperationHistory(data: ExecuteRequestParams) { + return MSR.post({ url: SaveOperationHistoryUrl, data }); +} + +// 接口定义-恢复至指定变更历史 +export function recoverOperationHistory(data: RecoverDefinitionParams) { + return MSR.post({ url: RecoverOperationHistoryUrl, data }); +} + /** * Mock */ diff --git a/frontend/src/api/requrls/api-test/management.ts b/frontend/src/api/requrls/api-test/management.ts index 95d705f3a7..36d02b0a21 100644 --- a/frontend/src/api/requrls/api-test/management.ts +++ b/frontend/src/api/requrls/api-test/management.ts @@ -31,6 +31,10 @@ export const GetDefinitionScheduleUrl = '/api/definition/schedule/get'; // 接 export const DeleteDefinitionScheduleUrl = '/api/definition/schedule/delete'; // 接口定义-定时同步-删除 export const DebugDefinitionUrl = '/api/definition/debug'; // 接口定义-调试 export const ToggleFollowDefinitionUrl = '/api/definition/follow'; // 接口定义-关注/取消关注 +export const OperationHistoryUrl = '/api/definition/operation-history'; // 接口定义-变更历史 +export const SaveOperationHistoryUrl = '/api/definition/operation-history/save'; // 接口定义-另存变更历史为指定版本 +export const RecoverOperationHistoryUrl = '/api/definition/operation-history/recover'; // 接口定义-变更历史恢复 + /** * Mock */ diff --git a/frontend/src/components/business/ms-add-attachment/index.vue b/frontend/src/components/business/ms-add-attachment/index.vue index e81363acac..f0eda24eb6 100644 --- a/frontend/src/components/business/ms-add-attachment/index.vue +++ b/frontend/src/components/business/ms-add-attachment/index.vue @@ -97,9 +97,9 @@
- + - {{ file.name }} + {{ file.label }} @@ -116,9 +116,9 @@
- + - {{ file.name }} + {{ file.label }}
@@ -175,7 +175,7 @@ - - diff --git a/frontend/src/views/api-test/management/components/management/api/preview/detail.vue b/frontend/src/views/api-test/management/components/management/api/preview/detail.vue new file mode 100644 index 0000000000..1ed4c47cbc --- /dev/null +++ b/frontend/src/views/api-test/management/components/management/api/preview/detail.vue @@ -0,0 +1,728 @@ + + + + + diff --git a/frontend/src/views/api-test/management/components/management/api/preview/history.vue b/frontend/src/views/api-test/management/components/management/api/preview/history.vue new file mode 100644 index 0000000000..79306e033b --- /dev/null +++ b/frontend/src/views/api-test/management/components/management/api/preview/history.vue @@ -0,0 +1,124 @@ + + + + + diff --git a/frontend/src/views/api-test/management/components/management/api/preview/index.vue b/frontend/src/views/api-test/management/components/management/api/preview/index.vue new file mode 100644 index 0000000000..47ac80b72b --- /dev/null +++ b/frontend/src/views/api-test/management/components/management/api/preview/index.vue @@ -0,0 +1,188 @@ + + + + + diff --git a/frontend/src/views/api-test/management/components/management/api/preview/quote.vue b/frontend/src/views/api-test/management/components/management/api/preview/quote.vue new file mode 100644 index 0000000000..1fae6f6be3 --- /dev/null +++ b/frontend/src/views/api-test/management/components/management/api/preview/quote.vue @@ -0,0 +1,136 @@ + + + + + diff --git a/frontend/src/views/api-test/management/components/management/index.vue b/frontend/src/views/api-test/management/components/management/index.vue index bca27cc9c7..5307834adc 100644 --- a/frontend/src/views/api-test/management/components/management/index.vue +++ b/frontend/src/views/api-test/management/components/management/index.vue @@ -10,7 +10,7 @@ /> - +