提交 4aaea904 authored 作者: 王鹏飞's avatar 王鹏飞

chore: update

上级 65745ccc
......@@ -29,10 +29,14 @@ export function useArea() {
})
})
const treeList = json2Array(areaList.province_list).map(item => {
const children = json2Array(areaList.city_list).filter(item2 => {
return item2.code.slice(0, 2) === item.code.slice(0, 2)
})
const treeList = provinceList.value.map(item => {
const children = json2Array(areaList.city_list)
.filter(item2 => {
return item2.code.slice(0, 2) === item.code.slice(0, 2)
})
.sort((a, b) => {
return a.label.localeCompare(b.label)
})
return { ...item, children }
})
......
......@@ -8,7 +8,7 @@ export function getJobList(params?: {
type?: number
education?: number
work_locations?: string
company_id?: string
company_name?: string
}) {
return httpRequest.get('/api/hr/api/v1/positions', { params })
}
......
......@@ -11,13 +11,14 @@ const listOptions = {
httpRequest: getJobList,
params: {
name: '',
company_name: '',
education: undefined,
type: undefined,
work_locations: ''
}
},
filters: [
{ type: 'input', label: '企业名称', prop: 'name', placeholder: '请输入' },
{ type: 'input', label: '企业名称', prop: 'company_name', placeholder: '请输入' },
{ type: 'select', label: '学历要求', prop: 'education', options: educationList },
{ type: 'select', label: '工作地点', prop: 'work_locations', slots: 'filter-area' },
{ type: 'select', label: '岗位类型', prop: 'type', options: jobTypeList },
......
......@@ -52,12 +52,14 @@ const listOptions = {
prop: 'project_prefix_group',
align: 'center',
computed({ row }: { row: JobType }) {
return row.project_prefix_group
?.split(',')
.map(item => {
return projectPrefix[item] || item
})
.join(',')
return (
row.project_prefix_group
?.split(',')
.map(item => {
return projectPrefix[item] || item
})
.join(',') || '-'
)
}
},
{ label: '操作', slots: 'table-actions', align: 'center' }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论