同步权限

This commit is contained in:
阿辉
2025-07-06 16:54:26 +08:00
parent a2e07a89e1
commit 483863e238
5 changed files with 397 additions and 382 deletions

View File

@@ -75,7 +75,7 @@ export const createCrudOptions = function ({ crudExpose, context }: CreateCrudOp
actionbar: {
buttons: {
add: {
show: auth('role:AuthorizedAdd'),
show: auth('role:SetMenu'),
click: (ctx: any) => {
context!.subUserRef.value.dialog = true;
nextTick(() => {
@@ -91,7 +91,7 @@ export const createCrudOptions = function ({ crudExpose, context }: CreateCrudOp
//固定右侧
fixed: 'left',
width: 120,
show: auth('role:AuthorizedDel'),
show: auth('role:SetMenu'),
buttons: {
view: {
show: false,
@@ -115,7 +115,7 @@ export const createCrudOptions = function ({ crudExpose, context }: CreateCrudOp
title: "选择",
form: { show: false},
column: {
show: auth('role:AuthorizedDel'),
show: auth('role:SetMenu'),
type: "selection",
align: "center",
width: "55px",