Browse Source

处理部门上级显示

master
朱耘稷 4 years ago
parent
commit
253a36ead4
  1. 10
      src/api/system/dept.js
  2. 3
      src/views/system/dept/index.vue

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

3
src/views/system/dept/index.vue

@ -136,7 +136,8 @@ export default {
} }
}, },
getSupDepts(id) { getSupDepts(id) {
crudDept.getDeptSuperior(id).then(res => { var data={"pid":id};
crudDept.getDeptSuperior(data).then(res => {
const date = res.content const date = res.content
this.buildDepts(date) this.buildDepts(date)
this.depts = date this.depts = date

Loading…
Cancel
Save