Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
campSite
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
杨梦雪
campSite
Commits
4ea156a9
Commit
4ea156a9
authored
Dec 16, 2021
by
杨梦雪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
referInfo 入学年份
parent
5d33ab62
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
63 additions
and
21 deletions
+63
-21
src/components/index/SignUp/referInfo.vue
src/components/index/SignUp/referInfo.vue
+63
-21
No files found.
src/components/index/SignUp/referInfo.vue
View file @
4ea156a9
...
@@ -138,12 +138,26 @@
...
@@ -138,12 +138,26 @@
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"入学年份(高中)"
prop=
"start_school_date"
>
<el-form-item
label=
"入学年份"
prop=
"start_school_date"
>
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<el-select
v-model=
"start_grade"
placeholder=
"年级"
clearable
>
<el-option
v-for=
"(item, index) in gradeArrs"
:key=
"index"
:label=
"item"
:value=
"item"
>
</el-option>
</el-select>
</el-col>
<el-col
:span=
"12"
>
<el-select
<el-select
ref=
"start_school_date"
ref=
"start_school_date"
v-model=
"referForm.start_school_date
"
v-model=
"start_year
"
placeholder=
"年份"
placeholder=
"年份"
clearable
clearable
@
change=
"getyear()"
>
>
<el-option
<el-option
v-for=
"(item, index) in yearArrs"
v-for=
"(item, index) in yearArrs"
...
@@ -153,6 +167,8 @@
...
@@ -153,6 +167,8 @@
>
>
</el-option>
</el-option>
</el-select>
</el-select>
</el-col>
</el-row>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
...
@@ -534,6 +550,22 @@ export default {
...
@@ -534,6 +550,22 @@ export default {
bdYear
:
""
,
//选择的生日年份
bdYear
:
""
,
//选择的生日年份
bdMonth
:
""
,
//选择的生日月份
bdMonth
:
""
,
//选择的生日月份
bdDay
:
""
,
//选择的生日日期
bdDay
:
""
,
//选择的生日日期
//入学年份(初中高中)
gradeArrs
:
[
"
初一
"
,
"
初二
"
,
"
初三
"
,
"
高一
"
,
"
高二
"
,
"
高三
"
,
"
大一
"
,
"
大二
"
,
"
大三
"
,
"
大四
"
,
],
//选择年级
start_grade
:
""
,
start_year
:
""
,
// 政治面貌
// 政治面貌
political_status
:
[
political_status
:
[
{
{
...
@@ -589,14 +621,19 @@ export default {
...
@@ -589,14 +621,19 @@ export default {
// console.log(val.gender)
// console.log(val.gender)
this
.
referForm
.
gender
=
val
.
gender
;
this
.
referForm
.
gender
=
val
.
gender
;
}
}
if
(
val
.
birthday
&&
val
.
birthday
!==
""
)
{
//出生日期
//出生日期
if
(
val
.
birthday
&&
val
.
birthday
!==
""
)
{
this
.
bdYear
=
val
.
birthday
.
slice
(
0
,
4
);
//前4位取年
this
.
bdYear
=
val
.
birthday
.
slice
(
0
,
4
);
//前4位取年
this
.
bdMonth
=
val
.
birthday
.
slice
(
4
,
6
);
//中2位取月
this
.
bdMonth
=
val
.
birthday
.
slice
(
4
,
6
);
//中2位取月
this
.
bdDay
=
val
.
birthday
.
slice
(
6
,
8
);
//后2位取日
this
.
bdDay
=
val
.
birthday
.
slice
(
6
,
8
);
//后2位取日
}
}
if
(
val
.
jiguan_city
!==
null
&&
val
.
jiguan_province
!==
null
)
{
//入学年份
if
(
val
.
start_school_date
&&
val
.
start_school_date
!==
""
)
{
this
.
start_year
=
val
.
start_school_date
.
slice
(
0
,
4
);
//年份
this
.
start_grade
=
val
.
start_school_date
.
slice
(
5
,
8
);
//年级
}
//籍贯
//籍贯
if
(
val
.
jiguan_city
!==
null
&&
val
.
jiguan_province
!==
null
)
{
if
(
this
.
referForm
.
jiguan_city
)
{
if
(
this
.
referForm
.
jiguan_city
)
{
}
}
this
.
jgProvinceCode
=
Number
(
val
.
jiguan_province
);
this
.
jgProvinceCode
=
Number
(
val
.
jiguan_province
);
...
@@ -604,12 +641,12 @@ export default {
...
@@ -604,12 +641,12 @@ export default {
this
.
jiguan_city
=
Number
(
val
.
jiguan_city
);
this
.
jiguan_city
=
Number
(
val
.
jiguan_city
);
}
}
// console.log(val.school_province, val.school_city, val.school);
// console.log(val.school_province, val.school_city, val.school);
//学校
if
(
if
(
val
.
school_province
!==
null
&&
val
.
school_province
!==
null
&&
val
.
school_city
!==
null
&&
val
.
school_city
!==
null
&&
val
.
school
!==
null
val
.
school
!==
null
)
{
)
{
//学校
this
.
referForm
.
school_province
=
Number
(
val
.
school_province
);
this
.
referForm
.
school_province
=
Number
(
val
.
school_province
);
this
.
referForm
.
school_city
=
Number
(
val
.
school_city
);
this
.
referForm
.
school_city
=
Number
(
val
.
school_city
);
this
.
referForm
.
school
=
Number
(
val
.
school
);
this
.
referForm
.
school
=
Number
(
val
.
school
);
...
@@ -657,20 +694,25 @@ export default {
...
@@ -657,20 +694,25 @@ export default {
res
.
data
.
info
.
jiguan_province
.
toString
()
+
res
.
data
.
info
.
jiguan_province
.
toString
()
+
res
.
data
.
info
.
jiguan_city
.
toString
();
res
.
data
.
info
.
jiguan_city
.
toString
();
}
}
if
(
res
.
data
.
info
.
email
==
null
)
{
if
(
res
.
data
.
info
.
email
==
null
)
{
const
code
=
this
.
$store
.
state
.
indexIdentity
;
const
code
=
this
.
$store
.
state
.
indexIdentity
;
this
.
referForm
.
email
=
window
.
localStorage
.
getItem
(
"
email
"
+
code
);
//本地取用户邮箱
this
.
referForm
.
email
=
window
.
localStorage
.
getItem
(
"
email
"
+
code
);
//本地取用户邮箱
}
}
});
});
},
},
//组装出生日期
getTime
()
{
getTime
()
{
this
.
referForm
.
birthday
=
this
.
referForm
.
birthday
=
this
.
bdYear
.
toString
()
+
this
.
bdYear
.
toString
()
+
this
.
bdMonth
.
toString
()
+
this
.
bdMonth
.
toString
()
+
this
.
bdDay
.
toString
();
//组装出生日期
this
.
bdDay
.
toString
();
// console.log(this.referForm.birthday);
// console.log(this.referForm.birthday);
},
},
//组装入学年份
getyear
()
{
this
.
referForm
.
start_school_date
=
this
.
start_year
.
toString
()
+
"
-
"
+
this
.
start_grade
.
toString
();
},
// 获取省份城市
// 获取省份城市
getProAndCity
()
{
getProAndCity
()
{
getProAndCity
({}).
then
((
res
)
=>
{
getProAndCity
({}).
then
((
res
)
=>
{
...
...
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