From 6c6d86acafa77c24ad8a3a1ec1735fc9a3e6cfd7 Mon Sep 17 00:00:00 2001 From: dap <15891557205@163.com> Date: Mon, 7 Oct 2024 11:40:39 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20action=20=E6=96=B0=E5=A2=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web-antd/src/views/system/dept/index.vue | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) 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') }} + + +