From d6cc864783726a63ea729e4085ae09244c54da62 Mon Sep 17 00:00:00 2001 From: "xinxin.wu" Date: Sat, 6 Apr 2024 10:41:55 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E6=8A=A5=E5=91=8Abug&=E5=85=AC=E5=85=B1?= =?UTF-8?q?=E8=84=9A=E6=9C=ACbug&=E4=B8=89=E6=96=B9=E6=8F=92=E4=BB=B6bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../project-management/commonScript.ts | 6 + .../project-management/commonScript.ts | 2 + .../business/ms-assertion/comp/ScriptTab.vue | 17 +- .../business/ms-assertion/index.vue | 13 +- .../src/components/business/ms-tree/index.vue | 2 +- .../pure/ms-form-create/form-create.ts | 2 +- .../pure/ms-form-create/formCreate.vue | 2 + .../pure/ms-form-create/ms-form-create.vue | 2 + .../components/pure/ms-tags-input/index.vue | 66 ++--- frontend/src/models/apiTest/report.ts | 1 + .../models/projectManagement/commonScript.ts | 13 + .../api-test/components/condition/index.vue | 2 +- .../response/result/index.vue | 16 +- .../management/case/caseReportDrawer.vue | 6 +- .../report/component/case/setReportChart.vue | 36 ++- .../report/component/caseReportCom.vue | 1 + .../report/component/caseReportDrawer.vue | 4 - .../report/component/reportDetailDrawer.vue | 4 - .../api-test/report/component/scenarioCom.vue | 40 ++- .../report/component/step/stepTree.vue | 49 +++- .../components/scriptDetailDrawer.vue | 255 +++++++++++++----- .../project-management/commonScript/index.vue | 16 +- .../commonScript/locale/en-US.ts | 1 + .../commonScript/locale/zh-CN.ts | 1 + 24 files changed, 371 insertions(+), 186 deletions(-) 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 @@