Xiao_123 2 месяцев назад
Родитель
Сommit
6bc84317bd

+ 2 - 1
src/views/recruit/personal/PersonalCenter/student/information/index.vue

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