From b2a1658e3730078cf2fbeb3032c23c0922544594 Mon Sep 17 00:00:00 2001 From: kils Date: Sun, 28 Apr 2024 11:15:36 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=B8=80=E7=BA=A7=E9=83=A8=E9=97=A8?= =?UTF-8?q?=E4=B8=8D=E8=83=BD=E4=BF=AE=E6=94=B9=E4=B8=8A=E7=BA=A7=E9=83=A8?= =?UTF-8?q?=E9=97=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/dept/DeptAddModal.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/views/system/dept/DeptAddModal.vue b/src/views/system/dept/DeptAddModal.vue index c3b009a..c30e549 100644 --- a/src/views/system/dept/DeptAddModal.vue +++ b/src/views/system/dept/DeptAddModal.vue @@ -40,6 +40,9 @@ const columns: Columns = [ field: 'parentId', type: 'tree-select', data: deptList, + hide: (form) => { + return form.parentId === 0 + }, props: { allowClear: true, allowSearch: true,