diff --git a/backend/src/main/resources/permission.json b/backend/src/main/resources/permission.json index 007d28b0bf..ac031f9b61 100644 --- a/backend/src/main/resources/permission.json +++ b/backend/src/main/resources/permission.json @@ -798,6 +798,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": [ @@ -928,6 +943,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 3088110c69..f85eefa1f4 100644 --- a/frontend/src/business/components/settings/system/User.vue +++ b/frontend/src/business/components/settings/system/User.vue @@ -4,7 +4,7 @@