diff --git a/frontend/src/api/modules/project-management/commonScript.ts b/frontend/src/api/modules/project-management/commonScript.ts index c40bba7b97..bd0df6b7b1 100644 --- a/frontend/src/api/modules/project-management/commonScript.ts +++ b/frontend/src/api/modules/project-management/commonScript.ts @@ -3,6 +3,7 @@ import { AddCommonScriptUrl, ConnectionWebsocketUrl, DeleteCommonScriptUrl, + getChangeHistoryUrl, GetCommonScriptDetailUrl, GetCommonScriptPageUrl, GetCommonScriptStatusUrl, @@ -19,6 +20,7 @@ import type { ModulesTreeType } from '@/models/caseManagement/featureCase'; import { CommonList, TableQueryParams } from '@/models/common'; import type { AddOrUpdateCommonScript, + changeHistory, CommonScriptItem, TestScriptType, } from '@/models/projectManagement/commonScript'; @@ -57,6 +59,10 @@ export function getCommonScriptStatus(data: AddOrUpdateCommonScript) { export function getInsertCommonScriptPage(data: TableQueryParams) { return MSR.post>({ url: GetInsertCommonScriptPageUrl, data }); } +// 获取公共脚本变更历史详情 +export function getChangeHistory(data: TableQueryParams) { + return MSR.post>({ url: getChangeHistoryUrl, data }); +} /** * 表格筛选字段的数据查询 diff --git a/frontend/src/api/requrls/project-management/commonScript.ts b/frontend/src/api/requrls/project-management/commonScript.ts index c7db10e30b..808d75f4f7 100644 --- a/frontend/src/api/requrls/project-management/commonScript.ts +++ b/frontend/src/api/requrls/project-management/commonScript.ts @@ -25,3 +25,5 @@ export const GetFormApiImportModuleCountUrl = '/api/definition/module/count'; export const TestScriptUrl = '/api/test/custom/func/run'; // websoket连接 export const ConnectionWebsocketUrl = '/ws/api'; +// 公共脚本变更历史详情 +export const getChangeHistoryUrl = '/project/custom/func/history/page'; diff --git a/frontend/src/components/business/ms-assertion/comp/ScriptTab.vue b/frontend/src/components/business/ms-assertion/comp/ScriptTab.vue index decafcc519..9437539b46 100644 --- a/frontend/src/components/business/ms-assertion/comp/ScriptTab.vue +++ b/frontend/src/components/business/ms-assertion/comp/ScriptTab.vue @@ -1,14 +1,5 @@