diff --git a/apps/web-antd/src/views/system/dept/index.vue b/apps/web-antd/src/views/system/dept/index.vue index 12cc026e..ce334d63 100644 --- a/apps/web-antd/src/views/system/dept/index.vue +++ b/apps/web-antd/src/views/system/dept/index.vue @@ -98,6 +98,12 @@ function handleAdd() { drawerApi.open(); } +function handleSubAdd(row: Recordable) { + const { deptId } = row; + drawerApi.setData({ id: deptId, update: false }); + drawerApi.open(); +} + async function handleEdit(record: Recordable) { drawerApi.setData({ id: record.deptId, update: true }); drawerApi.open(); @@ -155,6 +161,15 @@ function setExpandOrCollapse(expand: boolean) { > {{ $t('pages.common.edit') }} + + {{ $t('pages.common.add') }} + + +