Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
S
saas
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
saas
Commits
4aaea904
提交
4aaea904
authored
6月 23, 2022
作者:
王鹏飞
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chore: update
上级
65745ccc
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
13 行增加
和
6 行删除
+13
-6
useArea.ts
src/composables/useArea.ts
+6
-2
api.ts
src/modules/hr/job/api.ts
+1
-1
Index.vue
src/modules/hr/job/views/Index.vue
+2
-1
JobView.vue
src/modules/hr/posts/views/JobView.vue
+4
-2
没有找到文件。
src/composables/useArea.ts
浏览文件 @
4aaea904
...
@@ -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
}
})
})
...
...
src/modules/hr/job/api.ts
浏览文件 @
4aaea904
...
@@ -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
})
}
}
...
...
src/modules/hr/job/views/Index.vue
浏览文件 @
4aaea904
...
@@ -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
},
...
...
src/modules/hr/posts/views/JobView.vue
浏览文件 @
4aaea904
...
@@ -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
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论