diff --git a/src/api/system/dept.js b/src/api/system/dept.js index ed4f944..8f920d0 100644 --- a/src/api/system/dept.js +++ b/src/api/system/dept.js @@ -8,10 +8,11 @@ export function getDepts(params) { }) } -export function getDeptSuperior(ids) { +export function getDeptSuperior(ids, exclude) { + exclude = exclude !== undefined ? exclude : false const data = ids.length || ids.length === 0 ? ids : Array.of(ids) return request({ - url: 'api/dept/superior', + url: 'api/dept/superior?exclude=' + exclude, method: 'post', data }) diff --git a/src/views/system/dept/index.vue b/src/views/system/dept/index.vue index f5811fe..62ee78f 100644 --- a/src/views/system/dept/index.vue +++ b/src/views/system/dept/index.vue @@ -161,7 +161,7 @@ export default { } }, getSupDepts(id) { - crudDept.getDeptSuperior(id).then(res => { + crudDept.getDeptSuperior(id, true).then(res => { const data = res.content this.buildDepts(data) this.depts = data