处理部门上级显示

This commit is contained in:
朱耘稷
2020-12-18 14:32:50 +08:00
parent 536aa58f06
commit 253a36ead4
2 changed files with 11 additions and 2 deletions

View File

@ -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 }

View File

@ -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