|
@@ -146,11 +146,12 @@ const getDepartmentList = async (e) => {
|
|
if (!item) return
|
|
if (!item) return
|
|
const query = {
|
|
const query = {
|
|
page: { size: 9999, current: 1 },
|
|
page: { size: 9999, current: 1 },
|
|
- entity: { schoolId: e }
|
|
|
|
|
|
+ entity: { schoolId: typeof e === 'object' ? e.schoolId : e }
|
|
}
|
|
}
|
|
const res = await departmentList(query)
|
|
const res = await departmentList(query)
|
|
const list = res?.records?.length ? res.records : []
|
|
const list = res?.records?.length ? res.records : []
|
|
item.items = list.map(e => e.entity)
|
|
item.items = list.map(e => e.entity)
|
|
|
|
+ if (typeof e === 'object') item.value = null
|
|
}
|
|
}
|
|
|
|
|
|
// 获取学生基本信息
|
|
// 获取学生基本信息
|