From 6caf0e73474266518db131ecaffb64e741f1a6b1 Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Wed, 26 May 2021 22:39:19 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA?= =?UTF-8?q?=E9=83=A8=E5=88=86=E6=9D=83=E9=99=90=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/package.json | 2 +- .../api/automation/scenario/ApiScenarioModule.vue | 3 +++ .../api/definition/components/module/ApiModule.vue | 3 +++ .../components/common/components/MsModuleMinder.vue | 4 +++- .../components/common/components/MsTableButton.vue | 8 ++------ .../src/business/components/track/case/TestCase.vue | 4 ++-- .../components/track/case/components/ShowMoreBtn.vue | 10 +++++++++- .../components/track/case/components/TestCaseEdit.vue | 7 +++++-- .../components/track/case/components/TestCaseList.vue | 3 ++- .../src/business/components/track/common/NodeTree.vue | 10 +++++++++- .../components/track/common/TestCaseNodeTree.vue | 3 +++ .../components/track/common/minder/TestCaseMinder.vue | 6 +++++- .../plan/common/TestPlanTestCaseStatusButton.vue | 3 +++ .../components/track/plan/components/TestPlanList.vue | 4 ++++ .../comonents/functional/FunctionalTestCaseEdit.vue | 11 +++++------ 15 files changed, 59 insertions(+), 22 deletions(-) diff --git a/frontend/package.json b/frontend/package.json index aa71a7ebd8..cba23d34a8 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -52,7 +52,7 @@ "vue-float-action-button": "^0.6.6", "vue-i18n": "^8.15.3", "vue-jsonpath-picker": "^1.1.5", - "vue-minder-editor-plus": "^1.0.25", + "vue-minder-editor-plus": "^1.0.26", "vue-papa-parse": "^2.0.0", "vue-pdf": "^4.2.0", "vue-router": "^3.1.3", diff --git a/frontend/src/business/components/api/automation/scenario/ApiScenarioModule.vue b/frontend/src/business/components/api/automation/scenario/ApiScenarioModule.vue index e53456519a..79ac23a62c 100644 --- a/frontend/src/business/components/api/automation/scenario/ApiScenarioModule.vue +++ b/frontend/src/business/components/api/automation/scenario/ApiScenarioModule.vue @@ -8,6 +8,9 @@ :tree-nodes="data" :allLabel="$t('commons.all_module_title')" :type="isReadOnly ? 'view' : 'edit'" + :delete-permission="['PROJECT_API_SCENARIO:READ+DELETE']" + :add-permission="['PROJECT_API_SCENARIO:READ+CREATE']" + :update-permission="['PROJECT_API_SCENARIO:READ+EDIT']" @add="add" @edit="edit" @drag="drag" diff --git a/frontend/src/business/components/api/definition/components/module/ApiModule.vue b/frontend/src/business/components/api/definition/components/module/ApiModule.vue index a8865165af..56d2c47180 100644 --- a/frontend/src/business/components/api/definition/components/module/ApiModule.vue +++ b/frontend/src/business/components/api/definition/components/module/ApiModule.vue @@ -13,6 +13,9 @@ @drag="drag" @remove="remove" @refresh="list" + :delete-permission="['PROJECT_API_DEFINITION:READ+DELETE_API']" + :add-permission="['PROJECT_API_DEFINITION:READ+CREATE_API']" + :update-permission="['PROJECT_API_DEFINITION:READ+EDIT_API']" @nodeSelectEvent="nodeChange" ref="nodeTree"> diff --git a/frontend/src/business/components/common/components/MsModuleMinder.vue b/frontend/src/business/components/common/components/MsModuleMinder.vue index 79b7c63264..70190beb1a 100644 --- a/frontend/src/business/components/common/components/MsModuleMinder.vue +++ b/frontend/src/business/components/common/components/MsModuleMinder.vue @@ -14,6 +14,7 @@ :default-mold="defaultMode" @afterMount="$emit('afterMount')" @moldChange="handleMoldChange" + :disabled="disabled" @save="save" /> @@ -63,7 +64,8 @@ export default { }, tagDisableCheck: Function, tagEditCheck: Function, - priorityDisableCheck: Function + priorityDisableCheck: Function, + disabled: Boolean }, data() { return { diff --git a/frontend/src/business/components/common/components/MsTableButton.vue b/frontend/src/business/components/common/components/MsTableButton.vue index a4129e7422..624e423d2b 100644 --- a/frontend/src/business/components/common/components/MsTableButton.vue +++ b/frontend/src/business/components/common/components/MsTableButton.vue @@ -7,11 +7,6 @@