feat(部门管理): 新增编辑实现

This commit is contained in:
sheng
2023-07-31 14:49:12 +08:00
committed by 李强
parent 05f4e2970d
commit 7110d10432
6 changed files with 100 additions and 79 deletions

View File

@@ -12,6 +12,7 @@ export const createCrudOptions = function ({ crudExpose }: CreateCrudOptionsProp
* 处理crud警告Invalid prop: type check failed for prop "name". Expected String with value "2", got Number with value 2.
*/
res.data.forEach((item: any) => {
item.dept = String(item.dept);
if (item.role && Array.isArray(item.role) && item.role.length > 0) {
item.role = item.role.map((r: number) => String(r));
}