From ddd7fa4587ee112d361b26d7e21d888f6178efd9 Mon Sep 17 00:00:00 2001 From: fit2-zhao Date: Wed, 13 Apr 2022 15:46:36 +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=E6=96=B0=E5=BB=BA=E6=8E=A5=E5=8F=A3case?= =?UTF-8?q?=E6=89=A7=E8=A1=8C=E5=AE=8C=E6=88=90=E5=90=8E=E7=82=B9=E5=87=BB?= =?UTF-8?q?JSONPath=E6=8E=A8=E8=8D=90=E5=A4=B1=E6=95=88=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1012120 --user=赵勇 [接口测试]github #125681.19.2版本,新建接口case,执行完成后,点击JSONPath抓取功能无法使用了 https://www.tapd.cn/55049933/s/1133885 --- .../components/case/ApiCaseItem.vue | 56 ++++++++++++++----- .../components/case/ApiCaseList.vue | 15 +++-- 2 files changed, 51 insertions(+), 20 deletions(-) diff --git a/frontend/src/business/components/api/definition/components/case/ApiCaseItem.vue b/frontend/src/business/components/api/definition/components/case/ApiCaseItem.vue index 1869ed90c7..13b3b70a8d 100644 --- a/frontend/src/business/components/api/definition/components/case/ApiCaseItem.vue +++ b/frontend/src/business/components/api/definition/components/case/ApiCaseItem.vue @@ -110,25 +110,52 @@

{{ $t('api_test.definition.request.req_param') }}

- - - - - + + + + +

{{ $t('api_test.definition.request.res_param') }}

- +
- +
@@ -226,7 +253,6 @@ export default { } }, props: { - runResult: {}, loaded: { type: Boolean, default: false, diff --git a/frontend/src/business/components/api/definition/components/case/ApiCaseList.vue b/frontend/src/business/components/api/definition/components/case/ApiCaseList.vue index 9108eaabdb..c8188886fe 100644 --- a/frontend/src/business/components/api/definition/components/case/ApiCaseList.vue +++ b/frontend/src/business/components/api/definition/components/case/ApiCaseList.vue @@ -32,7 +32,6 @@ :api="api" :currentApi="currentApi" :loaded="loaded" - :runResult="runResult" :maintainerOptions="maintainerOptions" :api-case="apiCaseList[0]" ref="apiCaseItem"/> @@ -40,8 +39,14 @@ - + @@ -68,6 +73,7 @@ export default { type: Boolean, default: false }, + saveButtonText: String, refreshSign: String, currentApi: { type: Object @@ -82,7 +88,6 @@ export default { batchLoadingIds: [], singleLoading: false, singleRunId: "", - runResult: {}, runData: [], reportId: "", testCaseId: "", @@ -248,7 +253,7 @@ export default { if (data) { let status = data.error > 0 ? "error" : "success"; this.apiCaseList[0].execResult = status - this.runResult = data; + this.apiCaseList[0].responseData = data; this.$refs.apiCaseItem.runLoading = false; this.$store.state.currentApiCase = {refresh: true, id: data.id, status: status}; }