增加角色批量授权用户

(cherry picked commit from <gitee.com//lxy0722/django-vue3-admin/commit/702eb7d7aeb2a9c30416a8ebb503a4b8e3367492>
This commit is contained in:
lxy
2025-01-08 11:20:47 +08:00
committed by lxy
parent 1fe0a89338
commit ffc6246105
10 changed files with 761 additions and 7 deletions

View File

@@ -0,0 +1,29 @@
import { defineStore } from 'pinia';
/**
* 权限抽屉:角色-用户
*/
export const RoleUserStores = defineStore('RoleUserStores', {
state: (): any => ({
drawerVisible: false,
role_id: undefined,
role_name: undefined,
}),
actions: {
/**
* 打开权限修改抽屉
*/
handleDrawerOpen(row: any) {
this.drawerVisible = true;
this.role_name = row.name;
this.role_id = row.id;
},
/**
* 关闭权限修改抽屉
*/
handleDrawerClose() {
this.drawerVisible = false;
},
},
});