From 88c20730029c5a4a6a0bd1d8993cb4f90f1c62c3 Mon Sep 17 00:00:00 2001 From: wenyann <64353056+wenyann@users.noreply.github.com> Date: Fri, 19 Mar 2021 16:51:07 +0800 Subject: [PATCH 01/22] =?UTF-8?q?fix:=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA-?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E7=94=A8=E4=BE=8B=E4=B8=8B=E6=8B=89=E6=A1=86?= =?UTF-8?q?-=E5=88=9B=E5=BB=BA=E7=94=A8=E4=BE=8B=EF=BC=8C=E4=BC=9A?= =?UTF-8?q?=E6=8F=90=E7=A4=BA=E6=B2=A1=E9=A1=B9=E7=9B=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/business/components/track/case/TestCase.vue | 11 ++++++++--- .../components/track/case/components/TestCaseEdit.vue | 11 +++++++++++ 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/frontend/src/business/components/track/case/TestCase.vue b/frontend/src/business/components/track/case/TestCase.vue index f3bae0ef40..a2eba81345 100644 --- a/frontend/src/business/components/track/case/TestCase.vue +++ b/frontend/src/business/components/track/case/TestCase.vue @@ -260,9 +260,14 @@ export default { this.$warning(this.$t('commons.check_project_tip')); return; } -/* - this.openRecentTestCaseEditDialog(caseId); -*/ + if (caseId) { + this.$get('test/case/get/' + caseId, response => { + let testCase = response.data; + this.editTestCase(testCase) + }); + } else { + this.addTab({name: 'add'}); + } this.$router.push('/track/case/all'); } }, diff --git a/frontend/src/business/components/track/case/components/TestCaseEdit.vue b/frontend/src/business/components/track/case/components/TestCaseEdit.vue index 2d9ec236b8..a7a7b014e8 100644 --- a/frontend/src/business/components/track/case/components/TestCaseEdit.vue +++ b/frontend/src/business/components/track/case/components/TestCaseEdit.vue @@ -551,7 +551,11 @@ export default { let tmp = {}; Object.assign(tmp, testCase); tmp.steps = JSON.parse(testCase.steps); + if (tmp.steps == null) { + tmp.steps = [] + } Object.assign(this.form, tmp); + this.form.module = testCase.nodeId; this.getFileMetaData(testCase); }, @@ -964,4 +968,11 @@ export default { width: 100%; } +/deep/ .el-button-group > .el-button:first-child { + border-top-right-radius: 0; + border-bottom-right-radius: 0; + height: 32px; + width: 56px; +} + From afc0cfbde596ae641720b4949942b3d8420d7dc7 Mon Sep 17 00:00:00 2001 From: wenyann <64353056+wenyann@users.noreply.github.com> Date: Fri, 19 Mar 2021 17:19:12 +0800 Subject: [PATCH 02/22] =?UTF-8?q?fix:=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA?= =?UTF-8?q?=EF=BC=8C=E6=B5=8B=E8=AF=95=E7=94=A8=E4=BE=8B=E8=A1=A8=E5=A4=B4?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E5=92=8C=E8=AE=BE=E7=BD=AE=E7=9A=84=E4=B8=8D?= =?UTF-8?q?=E4=B8=80=E6=A0=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/common/model/JsonData.js | 9 ++++- .../track/case/components/TestCaseList.vue | 38 ++++++++++++++----- 2 files changed, 36 insertions(+), 11 deletions(-) diff --git a/frontend/src/business/components/common/model/JsonData.js b/frontend/src/business/components/common/model/JsonData.js index d60571fc3d..0726b8692c 100644 --- a/frontend/src/business/components/common/model/JsonData.js +++ b/frontend/src/business/components/common/model/JsonData.js @@ -5,12 +5,17 @@ export const Track_Test_Case = [ {id: 'num', label: i18n.t('commons.id')}, {id: 'name', label: i18n.t('commons.name')}, {id: 'priority', label: i18n.t('test_track.case.priority')}, - {id: 'type', label: i18n.t('test_track.case.type')}, - {id: 'method', label: i18n.t('test_track.case.method')}, + /* + {id: 'type', label: i18n.t('test_track.case.type')}, + */ + /* + {id: 'method', label: i18n.t('test_track.case.method')}, + */ {id: 'reviewStatus', label: i18n.t('test_track.case.status')}, {id: 'tags', label: i18n.t('commons.tag')}, {id: 'nodePath', label: i18n.t('test_track.case.module')}, {id: 'updateTime', label: i18n.t('commons.update_time')}, + {id: 'status', label: i18n.t('commons.status')} ] //用例评审-测试用例 export const Test_Case_Review = [ diff --git a/frontend/src/business/components/track/case/components/TestCaseList.vue b/frontend/src/business/components/track/case/components/TestCaseList.vue index 13483fd82c..18d6271bf0 100644 --- a/frontend/src/business/components/track/case/components/TestCaseList.vue +++ b/frontend/src/business/components/track/case/components/TestCaseList.vue @@ -102,18 +102,31 @@ --> + v-if="item.id=='reviewStatus'" + :filters="reviewStatusFilters" + column-key="reviewStatus" + min-width="100px" + :label="$t('test_track.case.status')" + :key="index"> + + + diff --git a/frontend/src/business/components/api/definition/components/complete/TCPBasicApi.vue b/frontend/src/business/components/api/definition/components/complete/TCPBasicApi.vue new file mode 100644 index 0000000000..a2e6c12956 --- /dev/null +++ b/frontend/src/business/components/api/definition/components/complete/TCPBasicApi.vue @@ -0,0 +1,156 @@ + + + + + diff --git a/frontend/src/business/components/api/definition/components/document/Anchor.vue b/frontend/src/business/components/api/definition/components/document/Anchor.vue deleted file mode 100644 index b484fc0272..0000000000 --- a/frontend/src/business/components/api/definition/components/document/Anchor.vue +++ /dev/null @@ -1,119 +0,0 @@ - - - - - diff --git a/frontend/src/business/components/api/definition/components/document/ApiDocumentAnchor.vue b/frontend/src/business/components/api/definition/components/document/ApiDocumentAnchor.vue new file mode 100644 index 0000000000..ea931ee009 --- /dev/null +++ b/frontend/src/business/components/api/definition/components/document/ApiDocumentAnchor.vue @@ -0,0 +1,734 @@ + + + + + diff --git a/frontend/src/business/components/api/definition/components/document/ApiDocumentAnchorData.vue b/frontend/src/business/components/api/definition/components/document/ApiDocumentAnchorData.vue new file mode 100644 index 0000000000..143012d80a --- /dev/null +++ b/frontend/src/business/components/api/definition/components/document/ApiDocumentAnchorData.vue @@ -0,0 +1,720 @@ + + + + + diff --git a/frontend/src/business/components/api/definition/components/document/ApiDocumentItem.vue b/frontend/src/business/components/api/definition/components/document/ApiDocumentItem.vue index bfd3dbb8de..73ec5ac3db 100644 --- a/frontend/src/business/components/api/definition/components/document/ApiDocumentItem.vue +++ b/frontend/src/business/components/api/definition/components/document/ApiDocumentItem.vue @@ -276,7 +276,6 @@ - - diff --git a/frontend/src/business/components/api/definition/components/request/tcp/TcpBasisParameters.vue b/frontend/src/business/components/api/definition/components/request/tcp/TcpBasisParameters.vue index 6a093a848a..c549f27f58 100644 --- a/frontend/src/business/components/api/definition/components/request/tcp/TcpBasisParameters.vue +++ b/frontend/src/business/components/api/definition/components/request/tcp/TcpBasisParameters.vue @@ -4,9 +4,7 @@
- -