修改权限膜拜

This commit is contained in:
xie7654
2025-07-03 17:14:06 +08:00
parent 6dfc242166
commit 232ed06008
4 changed files with 27 additions and 7 deletions

View File

@@ -17,6 +17,16 @@ ${form_fields}
];
}
/**
* 获取编辑表单的字段配置
*/
export function useGridFormSchema(): VbenFormSchema[] {
return [
${form_fields}
];
}
/**
* 获取表格列配置
* @description 使用函数的形式返回列数据而不是直接export一个Array常量是为了响应语言切换时重新翻译表头
@@ -36,7 +46,10 @@ ${columns}
onClick: onActionClick,
},
name: 'CellOperation',
options: ['edit', 'delete'],
options: [
op('${app_name}:${model_name_snake}:edit', 'edit'),
op('${app_name}:${model_name_snake}:delete', 'delete'),
],
},
field: 'action',
fixed: 'right',