From 48090e2049aa1a3440da5426d912c1777d91e0bc Mon Sep 17 00:00:00 2001 From: xiangpei <xiangpei@timesnew.cn> Date: 星期三, 19 二月 2025 14:52:11 +0800 Subject: [PATCH] 部门无上级部门时,修改的回显问题 --- src/views/system/dept/index.vue | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/src/views/system/dept/index.vue b/src/views/system/dept/index.vue index 4dd044a..efaa417 100644 --- a/src/views/system/dept/index.vue +++ b/src/views/system/dept/index.vue @@ -303,6 +303,13 @@ const noResultsOptions = { deptId: this.form.parentId, deptName: this.form.parentName, children: [] }; this.deptOptions.push(noResultsOptions); } + if (row.parentId === 0) { + this.deptOptions.push({ + deptId: 0, + deptName: '鏃�', + children: [] + }); + } }); }); }, -- Gitblit v1.8.0