diff --git a/backend/src/main/resources/permission.json b/backend/src/main/resources/permission.json index 07add6f990..243a048ac0 100644 --- a/backend/src/main/resources/permission.json +++ b/backend/src/main/resources/permission.json @@ -818,6 +818,21 @@ "name": "另存为", "resourceId": "PROJECT_REPORT_ANALYSIS", "license": false + }, + { + "id": "SYSTEM_PLUGIN:UPLOAD", + "name": "点击上传", + "resourceId": "SYSTEM_PLUGIN" + }, + { + "id": "SYSTEM_PLUGIN:DEL", + "name": "删除", + "resourceId": "SYSTEM_PLUGIN" + }, + { + "id": "SYSTEM_PLUGIN:VIEW", + "name": "查看脚本", + "resourceId": "SYSTEM_PLUGIN" } ], "resource": [ @@ -952,6 +967,10 @@ { "id": "PROJECT_REPORT_ANALYSIS", "name": "报表" + }, + { + "id": "SYSTEM_PLUGIN", + "name": "插件管理" } ] } \ No newline at end of file diff --git a/frontend/src/business/components/common/components/MsTableHeader.vue b/frontend/src/business/components/common/components/MsTableHeader.vue index cb910f841b..fa1224f9b1 100644 --- a/frontend/src/business/components/common/components/MsTableHeader.vue +++ b/frontend/src/business/components/common/components/MsTableHeader.vue @@ -10,7 +10,7 @@ - + :show-import="true" :upload-permission="['SYSTEM_PLUGIN:UPLOAD']"/> + @exec="handleDelete(scope.row.id)" v-permission="['SYSTEM_PLUGIN:DEL']"/>
+ @exec="handleView(scope.row)" v-permission="['SYSTEM_PLUGIN:VIEW']"/>
diff --git a/frontend/src/business/components/settings/system/User.vue b/frontend/src/business/components/settings/system/User.vue index b30d03d8ec..dbdeb0ab7c 100644 --- a/frontend/src/business/components/settings/system/User.vue +++ b/frontend/src/business/components/settings/system/User.vue @@ -4,7 +4,7 @@