1.完成新版接口授权

This commit is contained in:
猿小天
2023-10-29 00:43:44 +08:00
parent 10b159aa15
commit 1b71ba156b
2 changed files with 14 additions and 4 deletions

View File

@@ -11,6 +11,7 @@ export const createCrudOptions = function ({ crudExpose,propsContext }: CreateCr
};
const editRequest = async ({ form, row }: EditReq) => {
form.id = row.id;
form.role = row.role;
return await api.UpdateObj(form);
};
const delRequest = async ({ row }: DelReq) => {
@@ -187,6 +188,9 @@ export const createCrudOptions = function ({ crudExpose,propsContext }: CreateCr
title:'数据权限部门',
column:{
minWidth:120,
cellRender(scope){
return <div>{scope.row.dept_name}</div>
}
},
form:{
show: compute(({form})=>{