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
0e3ebc2a
Commit
0e3ebc2a
authored
Nov 13, 2024
by
石建新(贵阳日报)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
834af99d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
17 deletions
+25
-17
form-item.vue
src/components/form/form-item.vue
+9
-1
addPost.vue
src/pages/signUp/addPost.vue
+16
-16
No files found.
src/components/form/form-item.vue
View file @
0e3ebc2a
<
template
>
<
template
>
<div
class=
"form-item"
:style=
"
{ borderWidth: props.border ? '2rpx' : '0' }">
<div
class=
"form-item"
:style=
"
{ borderWidth: props.border ? '2rpx' : '0' }">
<p
class=
"title"
>
<p
class=
"title"
>
{{
props
.
title
}}
<span>
{{
props
.
subTitle
}}
</span>
{{
props
.
title
}}
<span>
{{
props
.
subTitle
}}
</span
><span
class=
"required"
v-if=
"props.required"
>
*
</span>
</p>
</p>
<div
class=
"temp"
></div>
<div
class=
"temp"
></div>
<img
v-if=
"icon"
class=
"icon"
:src=
"iconPath"
alt=
""
/>
<img
v-if=
"icon"
class=
"icon"
:src=
"iconPath"
alt=
""
/>
...
@@ -26,6 +27,10 @@ const props = defineProps({
...
@@ -26,6 +27,10 @@ const props = defineProps({
type
:
Boolean
,
type
:
Boolean
,
default
:
()
=>
true
default
:
()
=>
true
},
},
required
:
{
type
:
Boolean
,
default
:
()
=>
false
},
// 图标 (如果为空不显示)
// 图标 (如果为空不显示)
icon
:
{
icon
:
{
type
:
String
as
PropType
<
"arrow"
|
"edit"
|
""
>
,
type
:
String
as
PropType
<
"arrow"
|
"edit"
|
""
>
,
...
@@ -56,6 +61,9 @@ const iconPath = new URL(`../../static/image/icon/${props.icon}.png`, import.met
...
@@ -56,6 +61,9 @@ const iconPath = new URL(`../../static/image/icon/${props.icon}.png`, import.met
font-size
:
12px
;
font-size
:
12px
;
color
:
#77818f
;
color
:
#77818f
;
}
}
.required
{
color
:
red
;
}
}
}
.temp
{
.temp
{
margin-top
:
36px
;
margin-top
:
36px
;
...
...
src/pages/signUp/addPost.vue
View file @
0e3ebc2a
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
></selectbox>
></selectbox>
<!-- 职位类型 -->
<!-- 职位类型 -->
<form-row>
<form-row>
<form-item
title=
"职位类型"
>
<form-item
title=
"职位类型"
:required=
"true"
>
<wd-col-picker
<wd-col-picker
v-model=
"positionTypeValue"
v-model=
"positionTypeValue"
:columns=
"columns"
:columns=
"columns"
...
@@ -46,24 +46,24 @@
...
@@ -46,24 +46,24 @@
</form-row>
</form-row>
<!-- 岗位名称 -->
<!-- 岗位名称 -->
<form-row>
<form-row>
<form-item
title=
"岗位名称"
icon=
"arrow"
>
<form-item
title=
"岗位名称"
icon=
"arrow"
:required=
"true"
>
<input
type=
"text"
v-model=
"item.name"
placeholder=
"请输入岗位名称"
/>
<input
type=
"text"
v-model=
"item.name"
placeholder=
"请输入岗位名称"
/>
</form-item>
</form-item>
</form-row>
</form-row>
<!-- 职位描述 -->
<!-- 职位描述 -->
<form-row>
<form-row>
<form-item
title=
"岗位描述"
:border=
"false"
icon=
""
>
<form-item
title=
"岗位描述"
:border=
"false"
icon=
""
:required=
"true"
>
<textarea
maxlength=
"800"
v-model=
"item.positionDesc"
placeholder=
"请输入你的岗位描述"
></textarea>
<textarea
maxlength=
"800"
v-model=
"item.positionDesc"
placeholder=
"请输入你的岗位描述"
></textarea>
</form-item>
</form-item>
</form-row>
</form-row>
<form-item
title=
"岗位薪资"
icon=
""
>
<form-item
title=
"岗位薪资"
icon=
""
:required=
"true"
>
<view
<view
v-if=
"item.settlementType == 4"
v-if=
"item.settlementType == 4"
:class=
"`inner flex-between $
{item.salaryText ? '' : 'placeholder'}`"
:class=
"`inner flex-between $
{item.salaryText ? '' : 'placeholder'}`"
style="display: flex; justify-content: space-between; width: 100%"
style="display: flex; justify-content: space-between; width: 100%"
@click="onOpen(item, index)"
@click="onOpen(item, index)"
>
>
{{
item
.
salaryText
||
"请选择
岗位薪资待遇
"
}}
{{
item
.
salaryText
||
"请选择
月薪范围
"
}}
<!--
<view
class=
"arrow"
></view>
-->
<!--
<view
class=
"arrow"
></view>
-->
<checkbox
<checkbox
...
@@ -80,8 +80,8 @@
...
@@ -80,8 +80,8 @@
style="display: flex; justify-content: space-between; width: 100%"
style="display: flex; justify-content: space-between; width: 100%"
@click="onOpen(item, index)"
@click="onOpen(item, index)"
>
>
<!--
{{
item
.
salaryText
||
"请选择时薪范围"
}}
-->
{{
item
.
salaryText
||
"请选择时薪范围"
}}
{{
item
.
salaryText
||
"请选择岗位薪资待遇"
}}
<!--
{{
item
.
salaryText
||
"请选择岗位薪资待遇"
}}
-->
<!--
<view
class=
"arrow"
></view>
-->
<!--
<view
class=
"arrow"
></view>
-->
<checkbox
<checkbox
class=
"checkbox"
class=
"checkbox"
...
@@ -93,7 +93,7 @@
...
@@ -93,7 +93,7 @@
</view>
</view>
</form-item>
</form-item>
<form-item
title=
"工作地点"
icon=
""
>
<form-item
title=
"工作地点"
icon=
""
:required=
"true"
>
<wd-col-picker
<wd-col-picker
v-model=
"cityValue"
v-model=
"cityValue"
:columns=
"cityOpstion"
:columns=
"cityOpstion"
...
@@ -108,7 +108,7 @@
...
@@ -108,7 +108,7 @@
</p>
</p>
</wd-col-picker>
</wd-col-picker>
</form-item>
</form-item>
<form-item
title=
"是否提供食宿"
icon=
""
>
<form-item
title=
"是否提供食宿"
icon=
""
:required=
"true"
>
<wd-radio-group
v-model=
"item.accommodation"
inline
shape=
"dot"
>
<wd-radio-group
v-model=
"item.accommodation"
inline
shape=
"dot"
>
<wd-radio
v-for=
"(v, n) in radioOpstion"
:value=
"v.code"
:key=
"n"
>
{{
v
.
text
}}
</wd-radio>
<wd-radio
v-for=
"(v, n) in radioOpstion"
:value=
"v.code"
:key=
"n"
>
{{
v
.
text
}}
</wd-radio>
</wd-radio-group>
</wd-radio-group>
...
@@ -124,7 +124,7 @@
...
@@ -124,7 +124,7 @@
>
>
</view>
</view>
</form-item>
</form-item>
<form-item
title=
"人员类别"
icon=
""
>
<form-item
title=
"人员类别"
icon=
""
:required=
"true"
>
<wd-picker
<wd-picker
:columns=
"identityPostion"
:columns=
"identityPostion"
value-key=
"code"
value-key=
"code"
...
@@ -141,7 +141,7 @@
...
@@ -141,7 +141,7 @@
</wd-picker>
</wd-picker>
</form-item>
</form-item>
<view>
<view>
<form-item
title=
"学历"
icon=
""
>
<form-item
title=
"学历"
icon=
""
:required=
"true"
>
<wd-picker
<wd-picker
:columns=
"educationPostion"
:columns=
"educationPostion"
value-key=
"code"
value-key=
"code"
...
@@ -158,7 +158,7 @@
...
@@ -158,7 +158,7 @@
</wd-picker>
</wd-picker>
</form-item>
</form-item>
<form-item
title=
"专业"
icon=
""
>
<form-item
title=
"专业"
icon=
""
:required=
"true"
>
<wd-col-picker
<wd-col-picker
v-model=
"majorValue"
v-model=
"majorValue"
:columns=
"majorOpstion"
:columns=
"majorOpstion"
...
@@ -175,7 +175,7 @@
...
@@ -175,7 +175,7 @@
</form-item>
</form-item>
</view>
</view>
<form-item
title=
"年龄"
icon=
""
>
<form-item
title=
"年龄"
icon=
""
:required=
"true"
>
<wd-col-picker
<wd-col-picker
v-model=
"ageValue"
v-model=
"ageValue"
:columns=
"ageColumns"
:columns=
"ageColumns"
...
@@ -244,13 +244,13 @@
...
@@ -244,13 +244,13 @@
<input
v-model=
"item.specialCertificates"
type=
"text"
placeholder=
"请填写特种作业证"
/>
<input
v-model=
"item.specialCertificates"
type=
"text"
placeholder=
"请填写特种作业证"
/>
</form-item>
</form-item>
<form-row
:fill=
"false"
>
<form-row
:fill=
"false"
>
<form-item
title=
"招聘人数"
icon=
"edit"
>
<form-item
title=
"招聘人数"
icon=
"edit"
:required=
"true"
>
<input
type=
"number"
v-model=
"item.recruitmentNumber"
placeholder=
"请输入招聘人数"
/>
<input
type=
"number"
v-model=
"item.recruitmentNumber"
placeholder=
"请输入招聘人数"
/>
</form-item>
</form-item>
<form-item
title=
"联系电话"
icon=
"edit"
>
<form-item
title=
"联系电话"
icon=
"edit"
:required=
"true"
>
<input
type=
"number"
v-model=
"item.contactPhone"
placeholder=
"请输入联系电话"
/>
<input
type=
"number"
v-model=
"item.contactPhone"
placeholder=
"请输入联系电话"
/>
</form-item>
</form-row
</form-item>
</form-row
><form-item
title=
"联系人"
icon=
"edit"
>
><form-item
title=
"联系人"
icon=
"edit"
:required=
"true"
>
<input
type=
"text"
v-model=
"item.contactPerson"
placeholder=
"请输入联系人"
/>
<input
type=
"text"
v-model=
"item.contactPerson"
placeholder=
"请输入联系人"
/>
</form-item>
</form-item>
</view>
</view>
...
...
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