Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
project-online-pc
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
project-online-pc
Commits
d1643670
提交
d1643670
authored
10月 16, 2022
作者:
matian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
updates
上级
abf5e76b
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
54 行增加
和
15 行删除
+54
-15
education.js
modules/my/application/form/info/education.js
+8
-3
preview.vue
modules/my/application/preview.vue
+16
-4
cjd.js
modules/my/interview/form/cjd.js
+20
-4
yynl.js
modules/my/interview/form/yynl.js
+10
-4
没有找到文件。
modules/my/application/form/info/education.js
浏览文件 @
d1643670
...
...
@@ -13,9 +13,13 @@ export default function(_this) {
get
:
{
action
:
`
${
process
.
env
.
baseURL
}
/api/enrollment/v1.0/application-materials/
${
process
.
env
.
projectId
}
`
,
callback
(
data
)
{
const
{
educations
:
list
=
[],
submission_stage
:
submissionStage
=
'FILLING'
}
=
data
.
data
.
material
const
{
basic_info
:
basicInfo
=
{},
educations
:
list
=
[],
submission_stage
:
submissionStage
=
'FILLING'
}
=
data
.
data
.
material
this
.
form
.
options
.
disabled
=
submissionStage
!==
'FILLING'
return
list
.
length
?
list
:
[{}]
return
Object
.
assign
({},
basicInfo
,
list
.
length
?
list
:
[{}])
}
},
update
:
{
...
...
@@ -27,7 +31,8 @@ export default function(_this) {
return
result
},
{})
})
return
{
educations
}
const
basic_info
=
{
education_status
:
data
.
education_status
}
return
{
basic_info
,
educations
}
}
},
form
:
{
...
...
modules/my/application/preview.vue
浏览文件 @
d1643670
...
...
@@ -38,6 +38,21 @@
<div
v-html=
"item.computed(material[item.code])"
></div>
</
template
>
<
template
v-else-if=
"item.isMultiple"
>
<div
v-if=
"item.code === 'educations'"
style=
"margin-bottom:20px;padding-bottom: 10px;border-bottom: 1px solid #f1f1f1;"
>
<dl>
<dt>
当前状态:
</dt>
<dd>
{{
material
.
basic_info
.
education_status
}}
</dd>
<dt>
GPA:
</dt>
<dd>
{{
material
.
basic_info
.
gpa_score
}}
</dd>
</dl>
<dl>
<dt>
语言成绩
</dt>
<dd></dd>
</dl>
</div>
<div
class=
"group"
v-for=
"(data, index) in material[item.code]"
:key=
"index"
>
<dl
v-for=
"subitem in item.items"
...
...
@@ -249,10 +264,7 @@ export default {
},
{
label
:
'专业名称'
,
code
:
'major_cn'
},
{
label
:
'学校名称'
,
code
:
'school_name_cn'
},
{
label
:
'学历/学位'
,
code
:
'degree'
},
{
label
:
'当前状态'
,
code
:
'education_status'
},
{
label
:
'GPA'
,
code
:
'gpa_score'
},
{
label
:
'语言成绩'
,
code
:
'language_score'
}
{
label
:
'学历/学位'
,
code
:
'degree'
}
]
},
{
...
...
modules/my/interview/form/cjd.js
浏览文件 @
d1643670
...
...
@@ -6,7 +6,11 @@ export default function(_this) {
get
:
{
action
:
`
${
process
.
env
.
baseURL
}
/api/enrollment/v1.0/application-materials/
${
process
.
env
.
projectId
}
`
,
callback
(
data
)
{
const
{
attachments
=
[],
submission_stage
:
submissionStage
=
'FILLING'
}
=
data
.
data
.
material
const
{
basic_info
:
basicInfo
=
{},
attachments
=
[],
submission_stage
:
submissionStage
=
'FILLING'
}
=
data
.
data
.
material
const
stageList
=
[
'FILLING'
,
'PREPAYMENT'
,
...
...
@@ -18,7 +22,7 @@ export default function(_this) {
'CLOSED'
]
this
.
form
.
options
.
disabled
=
stageList
.
findIndex
(
item
=>
item
===
submissionStage
)
>
2
return
attachments
.
reduce
(
const
attachment
=
attachments
.
reduce
(
(
result
,
item
)
=>
{
if
(
item
.
file_type_id
===
'REPORT_CARD_CN'
)
{
result
.
REPORT_CARD_CN
.
push
(
item
)
...
...
@@ -30,18 +34,30 @@ export default function(_this) {
},
{
REPORT_CARD_CN
:
[],
REPORT_CARD_EN
:
[]
}
)
return
{
basicInfo
,
attachment
}
}
},
update
:
{
action
:
`
${
process
.
env
.
baseURL
}
/api/enrollment/v1.0/application-materials/
${
process
.
env
.
projectId
}
/put`
,
beforeRequest
(
data
)
{
// const basicInfo = ['gpa_score'].reduce((result, key) => {
// result[key] = data[key]
// return result
// }, {})
const
basicInfo
=
{
gpa_score
:
data
.
gpa_score
}
return
{
basic_info
:
basicInfo
}
}
},
form
:
{
prev
:
{
to
:
{
query
:
{
active
:
'interview_ywjl'
}
}
},
next
:
{
to
:
{
query
:
{
active
:
'interview_yynl'
}
}
},
next
:
{
to
:
{
query
:
{
active
:
'interview_yynl'
}
}
,
isSubmit
:
true
},
hasButton
:
false
,
options
:
{
'label-position'
:
'top'
},
items
:
[
{
type
:
'v-input'
,
label
:
'GPA成绩 (填写示例:3.9 / 5.0)'
,
model
:
'
id_number
'
,
model
:
'
gpa_score
'
,
attrs
:
{
placeholder
:
'请填写您的GPA成绩'
},
rules
:
[{
required
:
true
,
message
:
'请填写您的GPA成绩'
,
trigger
:
'blur'
}]
},
...
...
modules/my/interview/form/yynl.js
浏览文件 @
d1643670
...
...
@@ -6,7 +6,11 @@ export default function(_this) {
get
:
{
action
:
`
${
process
.
env
.
baseURL
}
/api/enrollment/v1.0/application-materials/
${
process
.
env
.
projectId
}
`
,
callback
(
data
)
{
const
{
attachments
=
[],
submission_stage
:
submissionStage
=
'FILLING'
}
=
data
.
data
.
material
const
{
basic_info
:
basicInfo
=
{},
attachments
=
[],
submission_stage
:
submissionStage
=
'FILLING'
}
=
data
.
data
.
material
const
stageList
=
[
'FILLING'
,
'PREPAYMENT'
,
...
...
@@ -18,7 +22,7 @@ export default function(_this) {
'CLOSED'
]
this
.
form
.
options
.
disabled
=
stageList
.
findIndex
(
item
=>
item
===
submissionStage
)
>
2
return
attachments
.
reduce
(
const
attachment
=
attachments
.
reduce
(
(
result
,
item
)
=>
{
if
(
item
.
file_type_id
===
'INTERNATIONAL_LANGUAGE_SCORE'
)
{
result
.
INTERNATIONAL_LANGUAGE_SCORE
.
push
(
item
)
...
...
@@ -27,12 +31,14 @@ export default function(_this) {
},
{
INTERNATIONAL_LANGUAGE_SCORE
:
[]
}
)
return
Object
.
assign
({},
basicInfo
,
attachment
)
}
},
update
:
{
action
:
`
${
process
.
env
.
baseURL
}
/api/enrollment/v1.0/application-materials/submit/
${
process
.
env
.
projectId
}
`
,
beforeRequest
(
data
)
{
return
{
submission_stage
:
'INTERVIEW_APPLICATION'
}
const
base_info
=
{
language_score
:
data
.
language_score
}
return
{
base_info
,
submission_stage
:
'INTERVIEW_APPLICATION'
}
},
callback
()
{
this
.
form
.
options
.
disabled
=
true
...
...
@@ -52,7 +58,7 @@ export default function(_this) {
{
type
:
'v-input'
,
label
:
'语言成绩(填写示例:大学英语六级/550)'
,
model
:
'
id_number
'
,
model
:
'
language_score
'
,
attrs
:
{
placeholder
:
'请填写您的语言成绩'
},
rules
:
[{
required
:
true
,
message
:
'请填写您的语言成绩'
,
trigger
:
'blur'
}]
},
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论