Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mp-enterprise-people-recruitment-h5
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
彭佳妮(贵阳日报)
mp-enterprise-people-recruitment-h5
Commits
72074153
Commit
72074153
authored
Oct 31, 2024
by
石建新(贵阳日报)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
7f540a52
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
21 deletions
+29
-21
article.js
src/api/article.js
+0
-4
user.js
src/api/user.js
+7
-0
addPost.vue
src/pages/signUp/addPost.vue
+22
-17
No files found.
src/api/article.js
View file @
72074153
...
...
@@ -9,7 +9,3 @@ export const getArticleTypesApi = type => instance.post(`/article/category/list/
//招聘会报名状态
export
const
registerStatus
=
articleId
=>
instance
.
post
(
`/article/jobFair/check/
${
articleId
}
`
);
\ No newline at end of file
// 参加招聘会
export
const
jobFairRegisterApi
=
params
=>
instance
.
post
(
`/jobFair/register`
,
params
);
src/api/user.js
View file @
72074153
...
...
@@ -56,3 +56,10 @@ export const positionuUdateList = params => instance.post("/b/position/updateLis
//根据id获取反馈信息
export
const
feedbackById
=
params
=>
instance
.
post
(
`/feedback/
${
params
}
`
);
//根据id获取反馈信息
export
const
jobFair
=
params
=>
instance
.
post
(
`/jobFair/
${
params
}
`
);
// 参加招聘会
export
const
jobFairRegisterApi
=
params
=>
instance
.
post
(
`/jobFair/register`
,
params
);
src/pages/signUp/addPost.vue
View file @
72074153
...
...
@@ -166,7 +166,12 @@
</view>
<form-row
:fill=
"false"
>
<form-item
title=
"专业技术职称"
icon=
"edit"
>
<input
type=
"text"
@
input=
"inputMajor($event, item)"
v-model=
"majorInputValue"
placeholder=
"请填写职称"
/>
<input
type=
"text"
@
input=
"inputMajor($event, item)"
v-model=
"item.majorInputValue"
placeholder=
"请填写职称"
/>
</form-item>
<form-item
title=
""
>
<wd-picker
...
...
@@ -190,7 +195,7 @@
<input
type=
"text"
@
input=
"inputLeve($event, item)"
v-model=
"certificateInputValue"
v-model=
"
item.
certificateInputValue"
placeholder=
"请填写职业资格"
/>
</form-item>
...
...
@@ -203,9 +208,9 @@
v-model=
"certificateSelectValue"
use-default-slot
>
<view
:class=
"`inner flex-between $
{certificateSelectValue ? '' : 'placeholder'}`">
<view
:class=
"`inner flex-between $
{
item.
certificateSelectValue ? '' : 'placeholder'}`">
<view
class=
"flex-align-center"
>
{{
certificateSelectValue
||
"请选择职业资格等级"
}}
{{
item
.
certificateSelectValue
||
"请选择职业资格等级"
}}
</view>
</view>
</wd-picker>
...
...
@@ -274,7 +279,7 @@
<
script
setup
>
import
{
ref
}
from
"vue"
;
import
{
positionList
,
positionAddList
,
positionuUdateList
}
from
"@/api/user"
;
import
{
positionList
,
positionAddList
,
positionuUdateList
,
jobFair
,
jobFairRegisterApi
}
from
"@/api/user"
;
import
Selectbox
from
"@/components/form/selectbox.vue"
;
import
FormItem
from
"@/components/form/form-item.vue"
;
import
FormRow
from
"@/components/form/form-row.vue"
;
...
...
@@ -379,6 +384,11 @@ const jobForm = ref([
onLoad
(({
articleId
,
type
})
=>
{
articleIds
.
value
=
articleId
;
pageType
.
value
=
type
;
jobForm
.
value
[
0
].
articleId
=
articleId
;
jobFair
(
articleId
).
then
(
res
=>
{
value
.
value
=
res
.
data
.
positionIds
.
split
(
","
);
console
.
log
(
"res"
,
res
);
});
});
const
tabList
=
ref
([
{
id
:
213213
,
name
:
"选择已有岗位"
,
type
:
1
},
...
...
@@ -387,7 +397,6 @@ const tabList = ref([
const
getEnumCertificatesLevel
=
async
()
=>
{
levelOptions
.
value
=
await
getEumData
(
"EnumCertificatesLevel"
);
console
.
log
(
levelOptions
.
value
);
};
getEnumCertificatesLevel
();
const
initPostion
=
async
()
=>
{
...
...
@@ -435,9 +444,9 @@ positionList({}).then(res => {
item
.
workDic
=
EnumWorkMode
.
value
.
find
(
v
=>
v
.
code
==
item
.
workMode
).
text
;
return
item
;
});
res
.
data
=
res
.
data
.
filter
(
item
=>
{
return
!
item
.
articleId
;
});
//
res.data = res.data.filter(item => {
//
return !item.articleId;
//
});
gwList
.
value
=
res
.
data
;
});
const
getJobType
=
()
=>
{
...
...
@@ -639,6 +648,7 @@ const handleConfirmEducation = (params, item) => {
};
const
inputLeve
=
(
e
,
item
)
=>
{
const
{
value
}
=
e
.
detail
;
item
.
certificateInputValue
=
value
;
item
.
professionalCertificates
=
value
+
"-"
+
certificateSelectValue
.
value
;
};
const
handlelevelation
=
(
params
,
item
)
=>
{
...
...
@@ -647,6 +657,7 @@ const handlelevelation = (params, item) => {
};
const
inputMajor
=
(
e
,
item
)
=>
{
const
{
value
}
=
e
.
detail
;
item
.
majorInputValue
=
value
;
item
.
positionalTitle
=
value
+
"-"
+
majorSelectValue
.
value
;
};
const
handMajoration
=
(
params
,
item
)
=>
{
...
...
@@ -658,17 +669,14 @@ const submitFrom = () => {
if
(
pageType
.
value
==
"update"
)
{
let
updateArr
=
gwList
.
value
.
filter
(
item
=>
value
.
value
.
includes
(
String
(
item
.
id
)));
updateArr
=
updateArr
.
map
(
item
=>
{
return
{
id
:
item
.
id
,
articleId
:
articleIds
.
value
};
return
item
.
id
;
});
if
(
updateArr
.
length
>
0
)
{
xma
.
showLoading
({
title
:
"提交中..."
,
mask
:
true
});
positionuUdateList
(
updateArr
).
then
(
res
=>
{
jobFairRegisterApi
({
positionIdList
:
updateArr
,
articleId
:
articleIds
.
value
}
).
then
(
res
=>
{
xma
.
hideLoading
();
if
(
res
.
code
==
200
)
{
xma
.
navigateBack
({
...
...
@@ -698,9 +706,6 @@ const submitFrom = () => {
"address"
,
"identityRequirement"
,
"educationRequirement"
,
"positionalTitle"
,
"professionalCertificates"
,
"specialCertificates"
,
"contactPhone"
,
"contactPerson"
])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment