Merge branch 'master' into deploy
This commit is contained in:
@@ -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)
|
const data = ids.length || ids.length === 0 ? ids : Array.of(ids)
|
||||||
return request({
|
return request({
|
||||||
url: 'api/dept/superior',
|
url: 'api/dept/superior?exclude=' + exclude,
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data
|
data
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -161,10 +161,10 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
getSupDepts(id) {
|
getSupDepts(id) {
|
||||||
crudDept.getDeptSuperior(id).then(res => {
|
crudDept.getDeptSuperior(id, true).then(res => {
|
||||||
const date = res.content
|
const data = res.content
|
||||||
this.buildDepts(date)
|
this.buildDepts(data)
|
||||||
this.depts = date
|
this.depts = data
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
buildDepts(depts) {
|
buildDepts(depts) {
|
||||||
|
|||||||
Reference in New Issue
Block a user