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

chore: update

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