增加角色批量授权用户
(cherry picked commit from <gitee.com//lxy0722/django-vue3-admin/commit/702eb7d7aeb2a9c30416a8ebb503a4b8e3367492>
This commit is contained in:
29
web/src/views/system/role/stores/RoleUserStores.ts
Normal file
29
web/src/views/system/role/stores/RoleUserStores.ts
Normal 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;
|
||||
},
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user