feat: 权限逻辑处理

This commit is contained in:
xuziqiang
2024-06-14 18:27:07 +08:00
parent da3d5840df
commit bc80a22180
13 changed files with 680 additions and 725 deletions

View File

@@ -478,7 +478,7 @@
headerActions: [
{
label: '新增',
name: 'RoleTypeAdd',
name: 'userAdd',
type: 'primary',
handle: () => {
addformvisible.value = true;
@@ -504,26 +504,9 @@
columnActions: {
title: '操作',
actions: [
// {
// label: '编辑',
// name: 'RoleTypeEdit',
// // dynamicParams: 'uuid',
// handle: (record: any) => {
// console.log(record, 'record');
// formData2.value = record;
// opMap.type = 'edit';
// opMap.fuc = (formData2: any) => {
// Object.assign(
// mockData.value.filter((item) => item.id === record.id)[0],
// formData2,
// );
// };
// addformvisible.value = true;
// },
// },
{
label: '删除',
name: 'RoleTypeEdit',
name: 'userAdd',
confirm: true,
handle: (record: any, name: any, reload: any) => {
const id = record.roleId;