From e855fc1ef6c7f1014b13f0d93ad68b71d9364784 Mon Sep 17 00:00:00 2001 From: smallwei <1634566606@qq.com> Date: Fri, 15 Feb 2019 15:19:23 +0800 Subject: [PATCH] fix dept tree --- src/api/system/dept.js | 7 +++++++ src/views/system/dept.vue | 16 ++++++++++++++-- src/views/system/dict.vue | 3 ++- 3 files changed, 23 insertions(+), 3 deletions(-) diff --git a/src/api/system/dept.js b/src/api/system/dept.js index 88b857e..32f4354 100644 --- a/src/api/system/dept.js +++ b/src/api/system/dept.js @@ -48,3 +48,10 @@ export const getDept = (id) => { } }) } +export const getDeptTree = () => { + return request({ + url: 'api/blade-system/dept/tree', + method: 'get' + }) +} + diff --git a/src/views/system/dept.vue b/src/views/system/dept.vue index e090b8e..174a032 100644 --- a/src/views/system/dept.vue +++ b/src/views/system/dept.vue @@ -33,7 +33,14 @@