提交 616757a9 authored 作者: matian's avatar matian

updates

上级 57bf4235
......@@ -4,7 +4,7 @@ import httpRequest from '@/utils/axios'
export function getAlumniList(params?: {
username?: string
sex?: number
class_id?: string
class_id?: number
province?: string
city?: string
industry?: string
......@@ -15,7 +15,7 @@ export function getAlumniList(params?: {
return httpRequest.get('/api/hr/admin/v1/alumni-tenants', { params })
}
// 获取校友详情
export function getAlumniView(params: { id: string }) {
export function getAlumniView(params: { id: number }) {
return httpRequest.get(`/api/hr/admin/v1/alumni-tenant/${params.id}`, { params })
}
// 获取班级列表
......@@ -23,7 +23,7 @@ export function getClassList(params: {
page?: number
limit?: number
project_prefix: string
id: string
id: number
name: string
}) {
return httpRequest.get(`/api/hr/admin/v1/classes`, { params })
......
......@@ -71,13 +71,13 @@ const listOptions = $computed(() => {
prop: 'sex',
align: 'center',
computed(row: any) {
if (row.row.sex === 0) {
if (row.row.sex === '0') {
return '女士'
} else if (row.row.sex === 1) {
} else if (row.row.sex === '1') {
return '先生'
} else if (row.row.sex === 2) {
} else if (row.row.sex === '2') {
return '未知'
} else if (row.row.sex === 999) {
} else if (row.row.sex === '999') {
return '全部'
}
}
......
......@@ -17,13 +17,13 @@ const getAlumniDetail = () => {
})
}
const sex = computed(() => {
if (detailList.value.sex === 0) {
if (detailList.value.sex === '0') {
return '女士'
} else if (detailList.value.sex === 1) {
} else if (detailList.value.sex === '1') {
return '先生'
} else if (detailList.value.sex === 2) {
} else if (detailList.value.sex === '2') {
return '未知'
} else if (detailList.value.sex === 999) {
} else if (detailList.value.sex === '999') {
return '全部'
}
})
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论