fix: 系统用户组和项目用户组页面权限控制
This commit is contained in:
parent
7f5dbede2f
commit
f9de1d0ed0
|
@ -1,19 +1,23 @@
|
||||||
CREATE TABLE `issue_follow` (
|
CREATE TABLE `issue_follow`
|
||||||
`issue_id` varchar(50) DEFAULT NULL,
|
(
|
||||||
`follow_id` varchar(50) DEFAULT NULL,
|
`issue_id` varchar(50) DEFAULT NULL,
|
||||||
UNIQUE KEY `issue_follow_pk` (`issue_id`,`follow_id`),
|
`follow_id` varchar(50) DEFAULT NULL,
|
||||||
KEY `issue_follow_follow_id_index` (`follow_id`),
|
UNIQUE KEY `issue_follow_pk` (`issue_id`, `follow_id`),
|
||||||
KEY `issue_follow_issue_id_index` (`issue_id`)
|
KEY `issue_follow_follow_id_index` (`follow_id`),
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
KEY `issue_follow_issue_id_index` (`issue_id`)
|
||||||
|
) ENGINE = InnoDB
|
||||||
|
DEFAULT CHARSET = utf8mb4;
|
||||||
|
|
||||||
-- group
|
-- group
|
||||||
insert into user_group_permission (id, group_id, permission_id, module_id)
|
INSERT INTO user_group_permission (id, group_id, permission_id, module_id)
|
||||||
values (UUID(), 'project_group', 'PROJECT_GROUP:READ', 'PROJECT_GROUP');
|
VALUES (UUID(), 'project_group', 'PROJECT_GROUP:READ', 'PROJECT_GROUP');
|
||||||
insert into user_group_permission (id, group_id, permission_id, module_id)
|
INSERT INTO user_group_permission (id, group_id, permission_id, module_id)
|
||||||
values (UUID(), 'project_group', 'PROJECT_GROUP:READ+CREATE', 'PROJECT_GROUP');
|
VALUES (UUID(), 'project_group', 'PROJECT_GROUP:READ+CREATE', 'PROJECT_GROUP');
|
||||||
insert into user_group_permission (id, group_id, permission_id, module_id)
|
INSERT INTO user_group_permission (id, group_id, permission_id, module_id)
|
||||||
values (UUID(), 'project_group', 'PROJECT_GROUP:READ+EDIT', 'PROJECT_GROUP');
|
VALUES (UUID(), 'project_group', 'PROJECT_GROUP:READ+EDIT', 'PROJECT_GROUP');
|
||||||
insert into user_group_permission (id, group_id, permission_id, module_id)
|
INSERT INTO user_group_permission (id, group_id, permission_id, module_id)
|
||||||
values (UUID(), 'project_group', 'PROJECT_GROUP:READ+DELETE', 'PROJECT_GROUP');
|
VALUES (UUID(), 'project_group', 'PROJECT_GROUP:READ+DELETE', 'PROJECT_GROUP');
|
||||||
|
INSERT INTO user_group_permission (id, group_id, permission_id, module_id)
|
||||||
|
VALUES (UUID(), 'project_group', 'PROJECT_GROUP:READ+SETTING_PERMISSION', 'PROJECT_GROUP');
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -305,6 +305,11 @@
|
||||||
"name": "删除用户组与权限",
|
"name": "删除用户组与权限",
|
||||||
"resourceId": "PROJECT_GROUP"
|
"resourceId": "PROJECT_GROUP"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"id": "PROJECT_GROUP:READ+SETTING_PERMISSION",
|
||||||
|
"name": "设置权限",
|
||||||
|
"resourceId": "PROJECT_GROUP"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"id": "PROJECT_MANAGER:READ",
|
"id": "PROJECT_MANAGER:READ",
|
||||||
"name": "查询项目",
|
"name": "查询项目",
|
||||||
|
|
|
@ -45,13 +45,13 @@
|
||||||
<el-table-column :label="$t('commons.operating')" min-width="120">
|
<el-table-column :label="$t('commons.operating')" min-width="120">
|
||||||
<template v-slot:default="scope">
|
<template v-slot:default="scope">
|
||||||
<div>
|
<div>
|
||||||
<ms-table-operator :edit-permission="['SYSTEM_GROUP:READ+EDIT', 'ORGANIZATION_GROUP:READ+EDIT']"
|
<ms-table-operator :edit-permission="['PROJECT_GROUP:READ+EDIT']"
|
||||||
:delete-permission="['SYSTEM_GROUP:READ+DELETE', 'ORGANIZATION_GROUP:READ+DELETE']"
|
:delete-permission="['PROJECT_GROUP:READ+DELETE']"
|
||||||
@editClick="edit(scope.row)" @deleteClick="del(scope.row)">
|
@editClick="edit(scope.row)" @deleteClick="del(scope.row)">
|
||||||
<template v-slot:middle>
|
<template v-slot:middle>
|
||||||
<!-- <ms-table-operator-button tip="复制" icon="el-icon-document-copy" @exec="copy(scope.row)"/>-->
|
<!-- <ms-table-operator-button tip="复制" icon="el-icon-document-copy" @exec="copy(scope.row)"/>-->
|
||||||
<ms-table-operator-button
|
<ms-table-operator-button
|
||||||
v-permission="['SYSTEM_GROUP:READ+SETTING_PERMISSION', 'ORGANIZATION_GROUP:READ+SETTING_PERMISSION']"
|
v-permission="['PROJECT_GROUP:READ+SETTING_PERMISSION']"
|
||||||
:tip="$t('group.set_permission')" icon="el-icon-s-tools" @exec="setPermission(scope.row)"/>
|
:tip="$t('group.set_permission')" icon="el-icon-s-tools" @exec="setPermission(scope.row)"/>
|
||||||
</template>
|
</template>
|
||||||
</ms-table-operator>
|
</ms-table-operator>
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<div v-loading="result.loading">
|
<div v-loading="result.loading">
|
||||||
<el-card>
|
<el-card>
|
||||||
<template v-slot:header>
|
<template v-slot:header>
|
||||||
<ms-table-header :create-permission="['SYSTEM_GROUP:READ+CREATE','ORGANIZATION_GROUP:READ+CREATE']"
|
<ms-table-header :create-permission="['SYSTEM_GROUP:READ+CREATE']"
|
||||||
:condition.sync="condition" @search="initData" @create="create"
|
:condition.sync="condition" @search="initData" @create="create"
|
||||||
:create-tip="$t('group.create')" :title="$t('group.group_permission')"/>
|
:create-tip="$t('group.create')" :title="$t('group.group_permission')"/>
|
||||||
</template>
|
</template>
|
||||||
|
@ -43,13 +43,13 @@
|
||||||
<el-table-column :label="$t('commons.operating')" min-width="120">
|
<el-table-column :label="$t('commons.operating')" min-width="120">
|
||||||
<template v-slot:default="scope">
|
<template v-slot:default="scope">
|
||||||
<div>
|
<div>
|
||||||
<ms-table-operator :edit-permission="['SYSTEM_GROUP:READ+EDIT', 'ORGANIZATION_GROUP:READ+EDIT']"
|
<ms-table-operator :edit-permission="['SYSTEM_GROUP:READ+EDIT']"
|
||||||
:delete-permission="['SYSTEM_GROUP:READ+DELETE', 'ORGANIZATION_GROUP:READ+DELETE']"
|
:delete-permission="['SYSTEM_GROUP:READ+DELETE']"
|
||||||
@editClick="edit(scope.row)" @deleteClick="del(scope.row)">
|
@editClick="edit(scope.row)" @deleteClick="del(scope.row)">
|
||||||
<template v-slot:middle>
|
<template v-slot:middle>
|
||||||
<!-- <ms-table-operator-button tip="复制" icon="el-icon-document-copy" @exec="copy(scope.row)"/>-->
|
<!-- <ms-table-operator-button tip="复制" icon="el-icon-document-copy" @exec="copy(scope.row)"/>-->
|
||||||
<ms-table-operator-button
|
<ms-table-operator-button
|
||||||
v-permission="['SYSTEM_GROUP:READ+SETTING_PERMISSION', 'ORGANIZATION_GROUP:READ+SETTING_PERMISSION']"
|
v-permission="['SYSTEM_GROUP:READ+SETTING_PERMISSION']"
|
||||||
:tip="$t('group.set_permission')" icon="el-icon-s-tools" @exec="setPermission(scope.row)"/>
|
:tip="$t('group.set_permission')" icon="el-icon-s-tools" @exec="setPermission(scope.row)"/>
|
||||||
</template>
|
</template>
|
||||||
</ms-table-operator>
|
</ms-table-operator>
|
||||||
|
|
Loading…
Reference in New Issue