Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
V
vue-form
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
vue-form
Commits
9c931bcc
提交
9c931bcc
authored
12月 26, 2019
作者:
王鹏飞
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改工作经验配置文件
上级
cad3f115
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
124 行增加
和
53 行删除
+124
-53
App.vue
examples/App.vue
+1
-1
career.js
examples/page/career.js
+79
-16
education.js
examples/page/education.js
+24
-36
profile.js
examples/page/profile.js
+20
-0
没有找到文件。
examples/App.vue
浏览文件 @
9c931bcc
...
...
@@ -21,7 +21,7 @@
</
template
>
<
script
>
import
registerForm
from
'./page/registerForm'
console
.
log
(
registerForm
)
export
default
{
name
:
'app'
,
data
()
{
...
...
examples/page/career.js
浏览文件 @
9c931bcc
...
...
@@ -4,9 +4,8 @@ export default {
showProgress
:
true
,
progress
:
0
,
get
:
{
action
:
'/zws/v1/enrollment/car
r
ers?project_id=1001'
,
action
:
'/zws/v1/enrollment/car
e
ers?project_id=1001'
,
callback
(
data
)
{
data
.
date_of_starting_to_work
=
data
.
date_of_starting_to_work
+
''
return
data
}
},
...
...
@@ -18,28 +17,92 @@ export default {
}
},
form
:
{
hasAdd
:
true
,
options
:
{
labelWidth
:
'160px'
},
model
:
[
{
times
:
[],
start_date
:
null
,
end_date
:
null
,
school_name_cn
:
''
,
school_city
:
''
,
major_cn
:
''
,
degree
:
0
}
],
items
:
[
{
type
:
'date-picker-form'
,
elemType
:
'monthrange'
,
label
:
'工作时间'
,
model
:
'times'
,
required
:
true
,
attrs
:
{
'value-format'
:
'yyyy-MM'
},
rules
:
[{
required
:
true
,
message
:
'请选择工作时间'
,
trigger
:
'blur'
}]
},
{
type
:
'input-form'
,
label
:
'姓名'
,
model
:
'real_name_cn'
,
placeholder
:
'123123'
,
label
:
'工作单位'
,
model
:
'company_name_cn'
,
rules
:
[{
required
:
true
,
message
:
'请输入工作单位'
,
trigger
:
'blur'
}]
},
{
type
:
'select-form'
,
values
:
[{
label
:
'请选择'
,
value
:
0
}],
label
:
'行业类别'
,
model
:
'industry'
,
rules
:
[
{
required
:
true
,
message
:
'请输入活动名称'
,
trigger
:
'blur'
},
{
min
:
3
,
max
:
5
,
message
:
'长度在 3 到 5 个字符'
,
trigger
:
'blur'
}
{
required
:
true
,
message
:
'请选择行业类别'
,
trigger
:
'change'
}
]
},
{
type
:
'input-form'
,
label
:
'工作部门'
,
model
:
'dept_cn'
,
rules
:
[{
required
:
true
,
message
:
'请输入工作部门'
,
trigger
:
'blur'
}]
},
{
type
:
'input-form'
,
label
:
'工作职位'
,
model
:
'position_cn'
,
rules
:
[{
required
:
true
,
message
:
'请输入工作职位'
,
trigger
:
'blur'
}]
},
{
type
:
'select-form'
,
values
:
[
{
label
:
'请选择'
,
value
:
0
},
{
label
:
'高层管理(总经理/副总经理以上级)'
,
value
:
1
},
{
label
:
'高级管理(总助/执行主任/执行总监级)'
,
value
:
2
},
{
label
:
'中级管理(总监/部门经理级)'
,
value
:
3
},
{
label
:
'初级经理(主管/一级经理级)'
,
value
:
4
},
{
label
:
'职员'
,
value
:
5
},
{
label
:
'其他'
,
value
:
9
}
],
label
:
'职位类型'
,
model
:
'job_type'
,
rules
:
[
{
required
:
true
,
message
:
'请选择职位类型'
,
trigger
:
'change'
}
]
},
{
type
:
'input-form'
,
label
:
'工作年薪(万元)'
,
model
:
'annual_salary'
},
{
type
:
'input-form'
,
label
:
'工作描述'
,
model
:
'job_desc_cn'
,
attrs
:
{
type
:
'textarea'
}
},
{
type
:
'input-form'
,
label
:
'公司(单位)简介'
,
model
:
'company_profile'
,
attrs
:
{
type
:
'textarea'
}
}
]
}
...
...
examples/page/education.js
浏览文件 @
9c931bcc
...
...
@@ -6,22 +6,25 @@ export default {
get
:
{
action
:
'/zws/v1/enrollment/educations?project_id=1001'
,
callback
(
data
)
{
const
{
start_date
:
startDate
,
end_date
:
endDate
}
=
data
if
(
startDate
)
{
data
.
times
=
[
startDate
+
''
,
endDate
+
''
]
}
return
data
return
data
.
map
(
item
=>
{
const
{
start_date
:
startDate
,
end_date
:
endDate
}
=
item
if
(
startDate
)
{
item
.
times
=
[
startDate
+
''
,
endDate
+
''
]
}
return
item
})
}
},
update
:
{
action
:
'/zws/v1/enrollment/educations/batch-upload'
,
data
:
{
project_id
:
1001
},
callback
(
data
)
{
console
.
log
(
data
)
let
[
startDate
,
endDate
]
=
data
.
times
data
.
start_date
=
startDate
data
.
end_date
=
endDate
return
data
return
data
.
map
(
item
=>
{
let
[
startDate
,
endDate
]
=
item
.
times
item
.
start_date
=
startDate
item
.
end_date
=
endDate
return
item
})
}
},
form
:
{
...
...
@@ -31,6 +34,7 @@ export default {
},
model
:
[
{
times
:
[],
start_date
:
null
,
end_date
:
null
,
school_name_cn
:
''
,
...
...
@@ -46,30 +50,21 @@ export default {
label
:
'教育时间'
,
model
:
'times'
,
required
:
true
,
attrs
:
{
'value-format'
:
'yyyy-MM'
}
attrs
:
{
'value-format'
:
'yyyy-MM'
},
rules
:
[{
required
:
true
,
message
:
'请选择教育时间'
,
trigger
:
'blur'
}]
},
{
type
:
'input-form'
,
label
:
'学校名称'
,
model
:
'school_name_cn'
,
rules
:
[
{
required
:
true
,
message
:
'请输入学校名称'
,
trigger
:
'blur'
}
]
rules
:
[{
required
:
true
,
message
:
'请输入学校名称'
,
trigger
:
'blur'
}]
},
{
type
:
'input-form'
,
label
:
'学校所在国家'
,
model
:
'school_country'
,
rules
:
[
{
required
:
true
,
message
:
'请输入学校所在国家'
,
trigger
:
'blur'
}
{
required
:
true
,
message
:
'请输入学校所在国家'
,
trigger
:
'blur'
}
]
},
{
...
...
@@ -77,24 +72,14 @@ export default {
label
:
'学校所在城市'
,
model
:
'school_city'
,
rules
:
[
{
required
:
true
,
message
:
'请输入学校所在城市'
,
trigger
:
'blur'
}
{
required
:
true
,
message
:
'请输入学校所在城市'
,
trigger
:
'blur'
}
]
},
{
type
:
'input-form'
,
label
:
'专业名称'
,
model
:
'major_cn'
,
rules
:
[
{
required
:
true
,
message
:
'请输入专业名称'
,
trigger
:
'blur'
}
]
rules
:
[{
required
:
true
,
message
:
'请输入专业名称'
,
trigger
:
'blur'
}]
},
{
type
:
'select-form'
,
...
...
@@ -110,7 +95,10 @@ export default {
{
label
:
'其他'
,
value
:
9
}
],
label
:
'学历/学位'
,
model
:
'degree'
model
:
'degree'
,
rules
:
[
{
required
:
true
,
message
:
'请选择学历/学位'
,
trigger
:
'change'
}
]
}
]
}
...
...
examples/page/profile.js
浏览文件 @
9c931bcc
...
...
@@ -21,6 +21,26 @@ export default {
options
:
{
labelWidth
:
'160px'
},
mode
:
{
real_name_cn
:
''
,
real_name_en
:
''
,
id_type
:
null
,
id_number
:
''
,
birthday
:
null
,
gender
:
null
,
nationality
:
null
,
date_of_starting_to_work
:
null
,
phone_number
:
''
,
email
:
''
,
qq_account
:
''
,
we_chat_account
:
''
,
mailing_address
:
''
,
emergency_contact_name
:
''
,
emergency_contacts_phone
:
''
,
english_level
:
null
,
english_score
:
''
,
channel
:
null
},
items
:
[
{
type
:
'input-form'
,
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论