From 278d58f3c6ceb0567247a3010489cc9e2cf89396 Mon Sep 17 00:00:00 2001 From: wanglei Date: Fri, 23 May 2025 17:18:12 +0800 Subject: [PATCH] =?UTF-8?q?=E9=83=A8=E9=97=A8=E7=AE=A1=E7=90=86=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/views/system/dept/index.vue | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/ruoyi-ui/src/views/system/dept/index.vue b/ruoyi-ui/src/views/system/dept/index.vue index d45682f..cac45cf 100644 --- a/ruoyi-ui/src/views/system/dept/index.vue +++ b/ruoyi-ui/src/views/system/dept/index.vue @@ -118,7 +118,7 @@ - + @@ -329,7 +329,12 @@ export default { this.open = true; this.title = "添加部门"; listDept(this.queryParams).then(response => { - this.deptOptions = this.handleTree(response.data, "deptId"); + this.deptOptions = []; + this.deptOptions.push({ + deptId: 0, + deptName:"顶级部门", + children: this.handleTree(response.data, "deptId") + }); }); }, /** 展开/折叠操作 */