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

View File

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