角色授权按钮更新
This commit is contained in:
@@ -48,7 +48,7 @@ export const createCrudOptions = function ({ crudExpose, context }: CreateCrudOp
|
|||||||
//固定右侧
|
//固定右侧
|
||||||
fixed: 'right',
|
fixed: 'right',
|
||||||
width: computed(() => {
|
width: computed(() => {
|
||||||
if (auth('role:AuthorizedAdd') || auth('role:AuthorizedSearch')){
|
if (auth('role:AllAuthorizedUser') || auth('role:AllCanMenu')){
|
||||||
return 420;
|
return 420;
|
||||||
}
|
}
|
||||||
return 320;
|
return 320;
|
||||||
@@ -66,7 +66,7 @@ export const createCrudOptions = function ({ crudExpose, context }: CreateCrudOp
|
|||||||
assignment: {
|
assignment: {
|
||||||
type: 'primary',
|
type: 'primary',
|
||||||
text: '授权用户',
|
text: '授权用户',
|
||||||
show: auth('role:SetUserRole') || auth('role:AuthorizedSearch'),
|
show: auth('role:AllAuthorizedUser'),
|
||||||
click: (ctx: any) => {
|
click: (ctx: any) => {
|
||||||
const { row } = ctx;
|
const { row } = ctx;
|
||||||
context!.RoleUserDrawer.handleDrawerOpen(row);
|
context!.RoleUserDrawer.handleDrawerOpen(row);
|
||||||
|
|||||||
Reference in New Issue
Block a user