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
1ba82120
Commit
1ba82120
authored
Oct 29, 2024
by
李明环(东信)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完善创建岗位
parent
f3cbae62
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
126 deletions
+21
-126
step1.vue
src/pages/recommend/releasePostion/step1.vue
+2
-50
step3.vue
src/pages/recommend/releasePostion/step3.vue
+3
-9
step4.vue
src/pages/recommend/releasePostion/step4.vue
+1
-52
store.js
src/pages/recommend/releasePostion/store.js
+15
-15
No files found.
src/pages/recommend/releasePostion/step1.vue
View file @
1ba82120
<
template
>
<
template
>
<div
class=
"page"
>
<div
class=
"page"
>
<NavBar
:showIcon=
"true"
:showTitle=
"false"
title=
""
backgroundBox=
"#FFFFFF"
></NavBar>
<NavBar
:showIcon=
"true"
:showTitle=
"false"
title=
""
backgroundBox=
"#FFFFFF"
></NavBar>
<!--
<Filter
/>
-->
<!--
<Filter
/>
-->
<view
class=
"title"
>
<view
class=
"title"
>
<view
class=
"t1"
>
1/5填写职位信息
</view>
<view
class=
"t1"
>
1/5填写职位信息
</view>
<view
class=
"t2"
>
选择对应的职位并填写职位信息
</view>
<view
class=
"t2"
>
选择对应的职位并填写职位信息
</view>
...
@@ -35,55 +35,7 @@
...
@@ -35,55 +35,7 @@
<textarea
v-model=
"pinias.formData.positionDesc"
placeholder=
"请输入你的职位描述"
></textarea>
<textarea
v-model=
"pinias.formData.positionDesc"
placeholder=
"请输入你的职位描述"
></textarea>
</form-item>
</form-item>
</form-row>
</form-row>
<!--
<view
class=
"switch"
>
<view
v-for=
"(item, index) in EnumWorkMode"
:class=
"item.code == pinias.formData.workMode ? 'active' : ''"
@
tap=
"changeWorkMode(item.code)"
:key=
"index"
>
{{
item
.
text
}}
</view>
</view>
-->
<!--
<view
class=
"form-item"
>
<view
class=
"form-item-title"
>
职位类型
</view>
<wd-col-picker
v-model=
"value"
:columns=
"columns"
:column-change=
"columnChange"
@
confirm=
"handleConfirm"
label-key=
"name"
value-key=
"id"
use-default-slot
>
<view
:class=
"`inner flex-between $
{pinias.formData.jobTypeName ? '' : 'placeholder'}`">
{{
pinias
.
formData
.
jobTypeName
||
"请选择职位类型"
}}
<view
class=
"arrow"
></view>
</view>
</wd-col-picker>
</view>
-->
<!--
<view
class=
"form-item"
>
<view
class=
"form-item-title"
>
职位标题
</view>
<view
class=
"inner flex-between"
>
<input
v-model=
"pinias.formData.jobName"
type=
"text"
placeholder-class=
"placeholder"
placeholder=
"请输入职业标题"
/>
</view>
</view>
-->
<!--
<view
class=
"form-item describe"
style=
"border: 0"
>
<view
class=
"form-item-title"
>
职位描述
</view>
<wd-textarea
custom-class=
"textarea"
show-word-limit
maxlength=
"500"
v-model=
"pinias.formData.positionDesc"
placeholder=
"请输入你的职位描述"
/>
</view>
-->
</view>
</view>
<wd-tabbar
<wd-tabbar
@
tap=
"next"
@
tap=
"next"
custom-style=
"display: flex;justify-content: center !important;z-index:1;"
custom-style=
"display: flex;justify-content: center !important;z-index:1;"
...
@@ -97,7 +49,7 @@
...
@@ -97,7 +49,7 @@
</
template
>
</
template
>
<
script
setup
>
<
script
setup
>
//
import Filter from "@/components/filter/index.vue";
import
Filter
from
"@/components/filter/index.vue"
;
import
{
getEumData
}
from
"@/utils/utils"
;
import
{
getEumData
}
from
"@/utils/utils"
;
import
{
ref
}
from
"vue"
;
import
{
ref
}
from
"vue"
;
import
{
dictJobTypeApi
}
from
"@/api/common"
;
import
{
dictJobTypeApi
}
from
"@/api/common"
;
...
...
src/pages/recommend/releasePostion/step3.vue
View file @
1ba82120
...
@@ -5,15 +5,10 @@
...
@@ -5,15 +5,10 @@
<view
class=
"t1"
>
3/5工作地点
</view>
<view
class=
"t1"
>
3/5工作地点
</view>
<view
class=
"t2"
>
添加准确的就职工作地址
</view>
<view
class=
"t2"
>
添加准确的就职工作地址
</view>
</view>
</view>
<!--
<address-select></address-select>
-->
<view
class=
"content"
>
<view
class=
"content"
>
<view
class=
"form-item"
>
<view
class=
"form-item"
>
<view
class=
"form-item-title"
>
工作地址
</view>
<view
class=
"form-item-title"
>
工作地址
</view>
<view
:class=
"`inner flex-between $
{address ? '' : 'placeholder'}`">
<view
:class=
"`inner flex-between $
{address ? '' : 'placeholder'}`">
<!--
<view
class=
"flex-align-center"
>
<image
src=
"@/static/image/icon/position.png"
/>
{{
address
||
pinias
.
formData
.
address
||
"请选择工作地址"
}}
</view>
-->
<wd-col-picker
<wd-col-picker
v-model=
"cityValue"
v-model=
"cityValue"
:columns=
"cityOpstion"
:columns=
"cityOpstion"
...
@@ -51,7 +46,6 @@ import town from "@/assets/town.json";
...
@@ -51,7 +46,6 @@ import town from "@/assets/town.json";
/* tab */
/* tab */
const
pinias
=
useReleasePostionStore
();
const
pinias
=
useReleasePostionStore
();
const
showTab
=
ref
(
true
);
const
showTab
=
ref
(
true
);
const
address
=
ref
(
""
);
import
{
validateForm
}
from
"@/utils/utils"
;
import
{
validateForm
}
from
"@/utils/utils"
;
// 地区选择
// 地区选择
...
@@ -78,14 +72,14 @@ const columnChangeCity = ({ selectedItem, resolve, finish }) => {
...
@@ -78,14 +72,14 @@ const columnChangeCity = ({ selectedItem, resolve, finish }) => {
}
}
};
};
const
handleConfirmCity
=
({
selectedItems
})
=>
{
const
handleConfirmCity
=
({
selectedItems
})
=>
{
cityText
.
value
=
selectedItems
.
map
(
v
=>
v
.
name
).
join
(
"-"
);
cityText
.
value
=
selectedItems
.
map
(
v
=>
v
.
name
||
''
).
join
(
"-"
);
citySelectedItems
=
selectedItems
;
citySelectedItems
=
selectedItems
;
const
[
city
,
district
,
street
]
=
selectedItems
;
const
[
city
,
district
,
street
]
=
selectedItems
;
pinias
.
formData
.
address
=
selectedItems
.
map
(
v
=>
v
.
name
).
join
(
""
);
pinias
.
formData
.
address
=
selectedItems
.
map
(
v
=>
v
.
name
||
''
).
join
(
""
);
pinias
.
formData
.
provinceCode
=
520000
;
pinias
.
formData
.
provinceCode
=
520000
;
pinias
.
formData
.
cityCode
=
city
.
code
;
pinias
.
formData
.
cityCode
=
city
.
code
;
pinias
.
formData
.
districtCode
=
district
.
code
;
pinias
.
formData
.
districtCode
=
district
.
code
;
pinias
.
formData
.
street
=
street
.
name
;
pinias
.
formData
.
street
=
street
?
street
.
name
:
''
;
/*params.provinceCode = province.code;
/*params.provinceCode = province.code;
params.provinceName = province.name;
params.provinceName = province.name;
...
...
src/pages/recommend/releasePostion/step4.vue
View file @
1ba82120
...
@@ -55,58 +55,6 @@
...
@@ -55,58 +55,6 @@
</wd-col-picker>
</wd-col-picker>
</form-item>
</form-item>
</form-row>
</form-row>
<!--
<view
class=
"form-item"
>
<view
class=
"form-item-title"
>
身份要求
</view>
<wd-picker
:columns=
"identityPostion"
value-key=
"code"
label-key=
"text"
v-model=
"pinias.formData.identityRequirement"
@
confirm=
"handleConfirmIdentity"
use-default-slot
>
<view
:class=
"`inner flex-between $
{identityText ? '' : 'placeholder'}`">
<view
class=
"flex-align-center"
bind:tap=
"onShowIdentitySelect"
>
{{
identityText
||
"请选择身份要求"
}}
</view>
<view
class=
"arrow"
></view>
</view>
</wd-picker>
</view>
-->
<!--
<view
class=
"form-item"
>
<view
class=
"form-item-title"
>
学历要求
</view>
<wd-picker
:columns=
"educationPostion"
value-key=
"code"
label-key=
"text"
v-model=
"pinias.formData.educationRequirement"
@
confirm=
"handleConfirmEducation"
use-default-slot
>
<view
:class=
"`inner flex-between $
{educationText ? '' : 'placeholder'}`">
<view
class=
"flex-align-center"
bind:tap=
"onShowIdentitySelect"
>
{{
educationText
||
"请选择学历要求"
}}
</view>
<view
class=
"arrow"
></view>
</view>
</wd-picker>
</view>
<view
class=
"form-item"
>
<view
class=
"form-item-title"
>
年龄要求
</view>
<wd-col-picker
v-model=
"value"
:columns=
"columns"
:column-change=
"columnChange"
@
confirm=
"handleConfirm"
use-default-slot
>
<view
:class=
"`inner flex-between $
{ageText ? '' : 'placeholder'}`" bind:tap="onOpen">
{{
ageText
||
"请选择年龄要求"
}}
<view
class=
"arrow"
></view>
</view>
</wd-col-picker>
</view>
-->
<form-row
:fill=
"false"
>
<form-row
:fill=
"false"
>
<form-item
title=
"专业技术职称"
icon=
"edit"
>
<form-item
title=
"专业技术职称"
icon=
"edit"
>
<input
type=
"text"
v-model=
"majorInputValue"
placeholder=
"请填写职称"
/>
<input
type=
"text"
v-model=
"majorInputValue"
placeholder=
"请填写职称"
/>
...
@@ -279,6 +227,7 @@ const next = () => {
...
@@ -279,6 +227,7 @@ const next = () => {
certificateInputValue
certificateInputValue
certificateSelectValue
certificateSelectValue
specialLicenseValue */
specialLicenseValue */
/* 拼接证书字段 */
if
(
majorInputValue
.
value
&&
majorSelectValue
.
value
)
if
(
majorInputValue
.
value
&&
majorSelectValue
.
value
)
pinias
.
formData
.
positionalTitle
=
majorInputValue
.
value
+
"-"
+
majorSelectValue
.
value
;
pinias
.
formData
.
positionalTitle
=
majorInputValue
.
value
+
"-"
+
majorSelectValue
.
value
;
if
(
certificateInputValue
.
value
&&
certificateSelectValue
.
value
)
if
(
certificateInputValue
.
value
&&
certificateSelectValue
.
value
)
...
...
src/pages/recommend/releasePostion/store.js
View file @
1ba82120
...
@@ -33,21 +33,21 @@ export const useReleasePostionStore = defineStore("useReleasePostionStore", () =
...
@@ -33,21 +33,21 @@ export const useReleasePostionStore = defineStore("useReleasePostionStore", () =
const
formData
=
ref
({
const
formData
=
ref
({
workMode
:
1
,
workMode
:
1
,
name
:
""
,
name
:
""
,
jobTypeId
:
1
,
jobTypeId
:
null
,
jobTypePid
:
""
,
jobTypePid
:
""
,
jobTypeName
:
""
,
jobTypeName
:
""
,
postitDesc
:
""
,
postitDesc
:
""
,
negotiableSalary
:
0
,
negotiableSalary
:
0
,
settlementType
:
4
,
settlementType
:
4
,
minSalary
:
1
,
minSalary
:
null
,
maxSalary
:
1
,
maxSalary
:
null
,
benefits
:
""
,
benefits
:
""
,
identityRequirement
:
1
,
identityRequirement
:
1
,
educationRequirement
:
1
,
educationRequirement
:
null
,
minAgeRequirement
:
1
,
minAgeRequirement
:
null
,
maxAgeRequirement
:
1
,
maxAgeRequirement
:
null
,
recruitmentNumber
:
1
,
recruitmentNumber
:
1
,
accommodation
:
1
,
accommodation
:
0
,
provinceCode
:
""
,
provinceCode
:
""
,
cityCode
:
""
,
cityCode
:
""
,
districtCode
:
""
,
districtCode
:
""
,
...
@@ -58,7 +58,7 @@ export const useReleasePostionStore = defineStore("useReleasePostionStore", () =
...
@@ -58,7 +58,7 @@ export const useReleasePostionStore = defineStore("useReleasePostionStore", () =
articleId
:
""
,
articleId
:
""
,
positionalTitle
:
""
,
positionalTitle
:
""
,
professionalCertificates
:
""
,
professionalCertificates
:
""
,
specialCertificates
:
"
xx证书-中级
"
specialCertificates
:
""
});
});
function
setFormDataKey
(
key
,
data
)
{
function
setFormDataKey
(
key
,
data
)
{
formData
.
value
[
key
]
=
data
;
formData
.
value
[
key
]
=
data
;
...
@@ -67,21 +67,21 @@ export const useReleasePostionStore = defineStore("useReleasePostionStore", () =
...
@@ -67,21 +67,21 @@ export const useReleasePostionStore = defineStore("useReleasePostionStore", () =
formData
.
value
=
{
formData
.
value
=
{
workMode
:
1
,
workMode
:
1
,
name
:
""
,
name
:
""
,
jobTypeId
:
1
,
jobTypeId
:
null
,
jobTypePid
:
""
,
jobTypePid
:
""
,
jobTypeName
:
""
,
jobTypeName
:
""
,
postitDesc
:
""
,
postitDesc
:
""
,
negotiableSalary
:
0
,
negotiableSalary
:
0
,
settlementType
:
4
,
settlementType
:
4
,
minSalary
:
1
,
minSalary
:
null
,
maxSalary
:
1
,
maxSalary
:
null
,
benefits
:
""
,
benefits
:
""
,
identityRequirement
:
1
,
identityRequirement
:
1
,
educationRequirement
:
1
,
educationRequirement
:
1
,
minAgeRequirement
:
1
,
minAgeRequirement
:
null
,
maxAgeRequirement
:
1
,
maxAgeRequirement
:
null
,
recruitmentNumber
:
1
,
recruitmentNumber
:
1
,
accommodation
:
1
,
accommodation
:
0
,
provinceCode
:
""
,
provinceCode
:
""
,
cityCode
:
""
,
cityCode
:
""
,
districtCode
:
""
,
districtCode
:
""
,
...
@@ -92,7 +92,7 @@ export const useReleasePostionStore = defineStore("useReleasePostionStore", () =
...
@@ -92,7 +92,7 @@ export const useReleasePostionStore = defineStore("useReleasePostionStore", () =
articleId
:
""
,
articleId
:
""
,
positionalTitle
:
""
,
positionalTitle
:
""
,
professionalCertificates
:
""
,
professionalCertificates
:
""
,
specialCertificates
:
"
xx证书-中级
"
specialCertificates
:
""
};
};
console
.
log
(
"this.formthis.formDatathis.formDatathis.formDatathis.formDataData"
,
formData
.
value
);
console
.
log
(
"this.formthis.formDatathis.formDatathis.formDatathis.formDataData"
,
formData
.
value
);
}
}
...
...
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