From e30209e990436d9d57ca834cafb2dda4ee5d3692 Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Wed, 17 Mar 2021 13:03:59 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E6=B5=8B=E8=AF=95=E5=AE=A1?= =?UTF-8?q?=E6=89=B9=E4=B8=8E=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92=E8=84=91?= =?UTF-8?q?=E5=9B=BE=E7=BC=96=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/package.json | 2 +- .../components/common/components/MsModuleMinder.vue | 7 +++++++ .../components/track/common/minder/TestCaseMinder.vue | 2 ++ .../components/track/common/minder/TestPlanMinder.vue | 1 + .../components/track/common/minder/TestReviewMinder.vue | 1 + 5 files changed, 12 insertions(+), 1 deletion(-) diff --git a/frontend/package.json b/frontend/package.json index 95dc60202e..6dc8af31e0 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -49,7 +49,7 @@ "xml-js": "^1.6.11", "yan-progress": "^1.0.3", "jsonpath": "^1.1.0", - "vue-minder-editor-plus": "^1.0.17", + "vue-minder-editor-plus": "^1.0.18", "jsencrypt": "^3.1.0" }, "devDependencies": { diff --git a/frontend/src/business/components/common/components/MsModuleMinder.vue b/frontend/src/business/components/common/components/MsModuleMinder.vue index b57b3fe069..f489472ba8 100644 --- a/frontend/src/business/components/common/components/MsModuleMinder.vue +++ b/frontend/src/business/components/common/components/MsModuleMinder.vue @@ -7,6 +7,7 @@ :height="700" :progress-enable="false" :tags="tags" + :distinct-tags="distinctTags" @save="save" /> @@ -36,6 +37,12 @@ export default { return [] } }, + distinctTags: { + type: Array, + default() { + return [] + } + } }, data() { return { diff --git a/frontend/src/business/components/track/common/minder/TestCaseMinder.vue b/frontend/src/business/components/track/common/minder/TestCaseMinder.vue index 85340c98f2..e5ddc1fbfe 100644 --- a/frontend/src/business/components/track/common/minder/TestCaseMinder.vue +++ b/frontend/src/business/components/track/common/minder/TestCaseMinder.vue @@ -3,6 +3,7 @@ v-loading="result.loading" :tree-nodes="treeNodes" :data-map="dataMap" + :tags="tags" @save="save" /> @@ -17,6 +18,7 @@ name: "TestCaseMinder", return{ testCase: [], dataMap: new Map(), + tags: ['用例', '测试步骤', '预期结果', '备注'], result: {} } }, diff --git a/frontend/src/business/components/track/common/minder/TestPlanMinder.vue b/frontend/src/business/components/track/common/minder/TestPlanMinder.vue index 012b08ece6..b9a163da1f 100644 --- a/frontend/src/business/components/track/common/minder/TestPlanMinder.vue +++ b/frontend/src/business/components/track/common/minder/TestPlanMinder.vue @@ -4,6 +4,7 @@ :tree-nodes="treeNodes" :data-map="dataMap" :tags="tags" + :distinct-tags="[...tags, '未开始']" @save="save" /> diff --git a/frontend/src/business/components/track/common/minder/TestReviewMinder.vue b/frontend/src/business/components/track/common/minder/TestReviewMinder.vue index b42b16be99..6295625b19 100644 --- a/frontend/src/business/components/track/common/minder/TestReviewMinder.vue +++ b/frontend/src/business/components/track/common/minder/TestReviewMinder.vue @@ -4,6 +4,7 @@ :tree-nodes="treeNodes" :data-map="dataMap" :tags="tags" + :distinct-tags="[...tags, '未开始']" @save="save" />