Merge branch 'master' into deploy

This commit is contained in:
Zheng Jie
2023-07-07 17:50:12 +08:00
2 changed files with 7 additions and 6 deletions

View File

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

View File

@@ -161,10 +161,10 @@ export default {
}
},
getSupDepts(id) {
crudDept.getDeptSuperior(id).then(res => {
const date = res.content
this.buildDepts(date)
this.depts = date
crudDept.getDeptSuperior(id, true).then(res => {
const data = res.content
this.buildDepts(data)
this.depts = data
})
},
buildDepts(depts) {