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
7a8b914e
Commit
7a8b914e
authored
Nov 29, 2024
by
石建新(贵阳日报)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
20842cc4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
29 deletions
+12
-29
addPost.vue
src/pages/signUp/addPost.vue
+10
-28
utils.js
src/utils/utils.js
+2
-1
No files found.
src/pages/signUp/addPost.vue
View file @
7a8b914e
...
...
@@ -176,17 +176,6 @@
</view>
<form-item
title=
"年龄"
icon=
""
:required=
"true"
>
<!--
<wd-col-picker
v-model=
"ageValue"
:columns=
"ageColumns"
:column-change=
"ageColumnChange"
@
confirm=
"params => ageHandleConfirm(params, item)"
use-default-slot
>
<view
:class=
"`inner flex-between $
{item.ageText ? '' : 'placeholder'}`">
{{
item
.
ageText
||
"请选择年龄范围"
}}
</view>
</wd-col-picker>
-->
<view
@
click=
"showAgeSelect(index)"
:class=
"`inner flex-between $
{item.ageText ? '' : 'placeholder'}`">
{{
item
.
ageText
||
"请选择年龄范围"
}}
</view>
...
...
@@ -248,7 +237,12 @@
</form-item>
<form-row
:fill=
"false"
>
<form-item
title=
"招聘人数"
icon=
"edit"
:required=
"true"
>
<input
type=
"number"
v-model=
"item.recruitmentNumber"
placeholder=
"请输入招聘人数"
/>
<input
@
input=
"inputWorkNum($event, item)"
type=
"number"
v-model=
"item.recruitmentNumber"
placeholder=
"请输入招聘人数"
/>
</form-item>
<form-item
title=
"联系电话"
icon=
"edit"
:required=
"true"
>
<input
type=
"number"
v-model=
"item.contactPhone"
placeholder=
"请输入联系电话"
/>
...
...
@@ -438,6 +432,9 @@ onLoad(({ articleId, type }) => {
}
});
});
function
inputWorkNum
(
e
,
item
)
{
console
.
log
(
"e"
,
e
,
item
);
}
getMajorTreeApi
().
then
(
res
=>
{
console
.
log
(
res
);
if
(
res
.
code
===
200
)
{
...
...
@@ -495,13 +492,6 @@ function deleteItem(index) {
jobForm
.
value
.
splice
(
index
,
1
);
}
const
initageColumns
=
()
=>
{
// const temp = [
// {
// value: "不限",
// label: "不限",
// next: false
// }
// ];
const
temp
=
[];
for
(
let
i
=
16
;
i
<
81
;
i
++
)
{
temp
.
push
({
...
...
@@ -510,16 +500,7 @@ const initageColumns = () => {
next
:
true
});
}
// columns.value.push(temp);
ageColumns
.
value
=
[
temp
,
temp
];
// for (let i = 16; i
<
81
;
i
++
)
{
// temp.push({
// value: i,
// label: i + "岁",
// next: true
// });
// }
// ageColumns.value.push(temp);
};
initageColumns
();
const
getEnumWorkMode
=
async
()
=>
{
...
...
@@ -855,6 +836,7 @@ const submitFrom = () => {
"minAgeRequirement"
,
"contactPhone"
,
"contactPerson"
,
"recruitmentNumber"
,
"majorRequirement"
],
"post"
...
...
src/utils/utils.js
View file @
7a8b914e
...
...
@@ -103,6 +103,7 @@ export const validateForm = (formData, requiredFields, type) => {
professionalCertificates
:
"职业等级证书"
,
specialCertificates
:
"特种作业证书"
,
avatarPath
:
"头像"
,
recruitmentNumber
:
"招聘人数"
,
majorText
:
"专业"
};
for
(
const
field
of
requiredFields
)
{
...
...
@@ -117,7 +118,7 @@ export const validateForm = (formData, requiredFields, type) => {
return
false
;
}
}
else
if
(
fieldValue
===
null
||
fieldValue
===
undefined
)
{
}
else
if
(
fieldValue
===
null
||
fieldValue
===
undefined
||
fieldValue
===
""
)
{
// const title = fieldMapping[field] || (type === "post" ? "岗位信息" : "表单");
const
title
=
fieldMapping
[
field
]
||
(
type
===
"post"
?
"相关信息"
:
"相关信息"
);
uni
.
showToast
({
...
...
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