From 253a36ead41ceb5668279be8a76c7d7adfc057a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=B1=E8=80=98=E7=A8=B7?= <18026623439@163.com> Date: Fri, 18 Dec 2020 14:32:50 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86=E9=83=A8=E9=97=A8=E4=B8=8A?= =?UTF-8?q?=E7=BA=A7=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/dept.js | 10 +++++++++- src/views/system/dept/index.vue | 3 ++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/api/system/dept.js b/src/api/system/dept.js index 59998ba..842508a 100644 --- a/src/api/system/dept.js +++ b/src/api/system/dept.js @@ -32,4 +32,12 @@ export function edit(data) { }) } -export default { add, edit, del, getDepts } +export function getDeptSuperior(data) { + return request({ + url: 'api/dept', + method: 'get', + data + }) +} + +export default { add, edit, del, getDepts, getDeptSuperior } diff --git a/src/views/system/dept/index.vue b/src/views/system/dept/index.vue index 2731b22..f4e5d67 100644 --- a/src/views/system/dept/index.vue +++ b/src/views/system/dept/index.vue @@ -136,7 +136,8 @@ export default { } }, getSupDepts(id) { - crudDept.getDeptSuperior(id).then(res => { + var data={"pid":id}; + crudDept.getDeptSuperior(data).then(res => { const date = res.content this.buildDepts(date) this.depts = date