chore(部门管理): 🚸 部门管理优化添加子级

This commit is contained in:
猿小天
2023-03-20 10:43:44 +08:00
parent 8f1be39f27
commit 21c3da82c8

View File

@@ -97,38 +97,6 @@ export const createCrudOptions = function ({ crudExpose }: { crudExpose: CrudExp
} }
}, },
}, },
// parent: {
// column: {
// show: false
// },
// title: '上级部门',
// type: 'dict-tree',
// dict: dict({
// url: '/api/system/dept/all_dept/',
// value: 'id',
// label: 'name',
// isTree: true,
// getData: async ({ url }: { url: string }) => {
// return request({
// url: url,
// }).then((ret: any) => {
// return ret.data
// })
// }
// }),
// form: {
// helper: '默认留空为创建者的部门',
// component: {
// span: 12,
// props: {
// props: {
// value: "id",
// label: "name",
// }
// }
// }
// }
// },
name: { name: {
title: '部门名称', title: '部门名称',
sortable: true, sortable: true,