refactor: 重构权限管理

1.更新字段管理
This commit is contained in:
猿小天
2023-11-21 21:21:58 +08:00
parent 6045312f7e
commit fb8b0a5ac6
4 changed files with 11 additions and 3 deletions

View File

@@ -266,7 +266,6 @@ export const createCrudOptions = function ({ crudExpose, context }: CreateCrudOp
url: '/api/system/role/',
value: 'id',
label: 'name',
isTree: true,
getData: async ({ url }: { url: string }) => {
return request({
url: url,

View File

@@ -251,10 +251,10 @@ const handleResetPwdSubmit = async () => {
};
onMounted(() => {
crudExpose.doRefresh();
deptCountChart = init(deptCountBar.value as HTMLElement);
deptSexChart = init(deptSexPie.value as HTMLElement);
getDeptInfo();
crudExpose.doRefresh();
});
defineExpose({