This commit is contained in:
guochunsi
2026-01-14 11:41:04 +08:00
parent d0c8ea0223
commit 6055033289
49 changed files with 2043 additions and 1740 deletions

View File

@@ -92,8 +92,8 @@ const state: BasicTableProps = reactive<BasicTableProps>({
const response = await fetchListByStatic(params)
return {
data: {
records: response.data.data || [],
total: response.data.data?.length || 0
records: response.data || [],
total: response.data?.length || 0
}
}
},
@@ -108,7 +108,7 @@ const init = async () => {
try {
// 查询二级学院信息
const deptData = await getDeptList()
deptList.value = deptData.data.data || []
deptList.value = deptData.data || []
deptList.value.push({ deptCode: '小计(高中/职技校)', deptName: '小计(高中/职技校)' })
deptList.value.push({ deptCode: '小计(初中)', deptName: '小计(初中)' })
deptList.value.push({ deptCode: '小计(初中_联院大专)', deptName: '小计(初中_联院大专)' })
@@ -116,7 +116,7 @@ const init = async () => {
// 获取招生计划列表
const planData = await list()
planList.value = planData.data.data || []
planList.value = planData.data || []
if (planList.value.length > 0) {
queryForm.groupId = planList.value[0].id
getDataList()
@@ -125,7 +125,7 @@ const init = async () => {
// 获取字典数据
const eduRes = await getTypeValue('education_type')
eduList.value = eduRes.data.data || []
eduList.value = eduRes.data || []
} catch (error) {
console.error('初始化失败', error)
}
@@ -149,7 +149,7 @@ const chanMajor = async () => {
planMajorList.value = []
if (queryForm.groupId) {
const data = await planMajor({ groupId: queryForm.groupId })
planMajorList.value = data.data.data || []
planMajorList.value = data.data || []
}
} catch (error) {
console.error('获取专业列表失败', error)